P_EBWIP_WIPQtyDocument
P_EBWIP_WIPQtyDocument is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (R_EvtBsdMfgWIPDocument, I_FiscalYearPeriodForCmpnyCode, I_ProductCostCtrlgOrder) and exposes 10 fields with key field ControllingDocument. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| R_EvtBsdMfgWIPDocument | Document | from |
| I_FiscalYearPeriodForCmpnyCode | FiscalYearPeriodForCompanyCode | inner |
| I_ProductCostCtrlgOrder | OrderMaster | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | fins_fperiod_enddate | |
| P_OrderID | fis_order_number |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UserContactCard | _CreatedByUserContactCard | $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingDocument | R_EvtBsdMfgWIPDocument | ControllingDocument | SD Document |
| ObjectInternalID | R_EvtBsdMfgWIPDocument | ObjectInternalID | Object number | |
| OrderID | R_EvtBsdMfgWIPDocument | OrderID | Order ID | |
| OrderItem | R_EvtBsdMfgWIPDocument | OrderItem | ||
| FiscalYear | R_EvtBsdMfgWIPDocument | FiscalYear | G/L Fiscal Year | |
| FiscalPeriod | R_EvtBsdMfgWIPDocument | FiscalPeriod | Tax period | |
| FiscalYearPeriod | ||||
| PostingDate | R_EvtBsdMfgWIPDocument | PostingDate | Posting Date for GR | |
| CreatedByUser | R_EvtBsdMfgWIPDocument | CreatedByUser | User Name | |
| _CreatedByUserContactCard | _CreatedByUserContactCard |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_EBWIP_WIPQtyDocument.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- Parameters: P_KeyDate : fins_fperiod_enddate, P_OrderID : fis_order_number
CREATE VIEW P_EBWIP_WIPQtyDocument AS
SELECT
Document.ControllingDocument AS ControllingDocument,
Document.ObjectInternalID AS ObjectInternalID,
Document.OrderID AS OrderID,
Document.OrderItem AS OrderItem,
Document.FiscalYear AS FiscalYear,
Document.FiscalPeriod AS FiscalPeriod,
cast(FiscalYearPeriodForCompanyCode.FiscalYearPeriod as fins_fyearperiod) AS FiscalYearPeriod,
Document.PostingDate AS PostingDate,
Document.CreatedByUser AS CreatedByUser
FROM R_EvtBsdMfgWIPDocument AS Document
INNER JOIN I_ProductCostCtrlgOrder AS OrderMaster ON /* join condition not captured in parsed metadata */
INNER JOIN I_FiscalYearPeriodForCmpnyCode AS FiscalYearPeriodForCompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUserContactCard ON CreatedByUser = _CreatedByUserContactCard.ContactCardID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA