P_EBWIP_WIPQtyDocument

DDL: P_EBWIP_WIPQTYDOCUMENT Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
R_EvtBsdMfgWIPDocument Document from
I_FiscalYearPeriodForCmpnyCode FiscalYearPeriodForCompanyCode inner
I_ProductCostCtrlgOrder OrderMaster inner

Parameters (2)

NameTypeDefault
P_KeyDate fins_fperiod_enddate
P_OrderID fis_order_number

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_UserContactCard _CreatedByUserContactCard $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (10)

KeyFieldSource TableSource FieldDescription
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]
;