P_JP_POBASEDGRLIST

DDL: P_JP_POBASEDGRLIST SQL: PJPPOBSDGRLIST Type: view COMPOSITE

Goods Receipt Document List(PO Based )

P_JP_POBASEDGRLIST is a Composite CDS View that provides data about "Goods Receipt Document List(PO Based )" in SAP S/4HANA. It reads from 2 data sources (I_ValuationArea, I_Plant) and exposes 6 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, PurchasingHistoryDocument, ReferenceDocumentItem. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_ValuationArea area inner
I_Plant plant inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PurchasingDocumentItem _PurchasingDocumentItem $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PJPPOBSDGRLIST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
EndUserText.label Goods Receipt Document List(PO Based ) view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_ValuationArea CompanyCode Receiver Company Code
KEY PurchasingDocument PO_History PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PO_History PurchasingDocumentItem Purchasing Doc. Item
KEY PurchasingHistoryDocument PO_History PurchasingHistoryDocument
KEY ReferenceDocumentItem
KEY PurchasingHistoryDocumentYear PO_History PurchasingHistoryDocumentYear

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_JP_POBASEDGRLIST.
-- 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.
-- SQL view name: PJPPOBSDGRLIST

CREATE VIEW P_JP_POBASEDGRLIST AS
SELECT
  area.CompanyCode AS CompanyCode,
  PO_History.PurchasingDocument AS PurchasingDocument,
  PO_History.PurchasingDocumentItem AS PurchasingDocumentItem,
  PO_History.PurchasingHistoryDocument AS PurchasingHistoryDocument,
  cast( concat('00',PO_History.PurchasingHistoryDocumentItem) as fis_awitem ) AS ReferenceDocumentItem,
  PO_History.PurchasingHistoryDocumentYear AS PurchasingHistoryDocumentYear
INNER JOIN I_Plant AS plant ON /* join condition not captured in parsed metadata */
INNER JOIN I_ValuationArea AS area ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem  -- association [1..1]
;