P_CntrlProcmtMtrgPurReqnExtRef

DDL: P_CNTRLPROCMTMTRGPURREQNEXTREF Type: view_entity COMPOSITE Package: APPL_PROC_HUB_AUDIT

CP: Private View for External Reference of Central Pur Reqn

P_CntrlProcmtMtrgPurReqnExtRef is a Composite CDS View that provides data about "CP: Private View for External Reference of Central Pur Reqn" in SAP S/4HANA. It reads from 1 data source (I_ExternalRefForPurgDoc) and exposes 5 fields with key fields PurchasingDocument, PurchasingDocumentItem, ExtSourceSystem. Part of development package APPL_PROC_HUB_AUDIT.

Data Sources (1)

SourceAliasJoin Type
I_ExternalRefForPurgDoc I_ExternalRefForPurgDoc from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument Purch. Doc. ID
KEY PurchasingDocumentItem
KEY ExtSourceSystem Ext. Ref. System
PurchaseRequisition Ext. Reference ID
PurchaseRequisitionItem

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_CntrlProcmtMtrgPurReqnExtRef.
-- 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_CntrlProcmtMtrgPurReqnExtRef AS
SELECT
  cast( PurchasingDocumentUniqueID as abap.char( 10 ) ) AS PurchasingDocument,
  cast( right( PurchasingDocumentUniqueID, 5 ) as abap.char( 5 ) ) AS PurchasingDocumentItem,
  cast( PurgDocExternalSystem as abap.char( 10 ) ) AS ExtSourceSystem,
  cast( PurgDocExternalReference as abap.char( 10 ) ) AS PurchaseRequisition,
  cast( right( PurgDocExternalReference, 5 ) as abap.char( 5 ) ) AS PurchaseRequisitionItem
FROM I_ExternalRefForPurgDoc
;