P_WhereUsdPrftCtrSlsDocItem

DDL: P_WHEREUSDPRFTCTRSLSDOCITEM Type: view_entity BASIC

P_WhereUsdPrftCtrSlsDocItem is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (tvak, vbap) and exposes 5 fields with key fields SalesDocument, SalesDocumentItem.

Data Sources (2)

SourceAliasJoin Type
tvak tvak inner
vbap vbap from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #BASIC view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument vbap vbeln SD Sched. Agmt
KEY SalesDocumentItem vbap posnr WBS Element
CreationDate vbap erdat Entered On
ControllingArea vbak kokrs Org. Value
ProfitCenter vbap prctr Profit Centers

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_WhereUsdPrftCtrSlsDocItem.
-- 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.

CREATE VIEW P_WhereUsdPrftCtrSlsDocItem AS
SELECT
  vbap.vbeln AS SalesDocument,
  vbap.posnr AS SalesDocumentItem,
  vbap.erdat AS CreationDate,
  vbak.kokrs AS ControllingArea,
  vbap.prctr AS ProfitCenter
FROM vbap
INNER JOIN tvak ON /* join condition not captured in parsed metadata */
;