P_LogcDocPurchase

DDL: P_LOGCDOCPURCHASE Type: view_entity CONSUMPTION

P_LogcDocPurchase is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocument) and exposes 8 fields with key field PurchasingDocument.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocument I_PurchasingDocument from

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument Purchasing Document
ProdCmplncLogsDocumentCategory
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentOrigin PurchasingDocumentOrigin Status

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_LogcDocPurchase.
-- 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_LogcDocPurchase AS
SELECT
  PurchasingDocument,
  cast ('PO' as ehfnd_log_doc_category) AS ProdCmplncLogsDocumentCategory,
  PurchasingDocumentType,
  PurchasingOrganization,
  PurchasingGroup,
  IsEndOfPurposeBlocked,
  PurchasingDocumentCategory,
  PurchasingDocumentOrigin
FROM I_PurchasingDocument
;