P_BSQPMPurOrdToSuplrInvc

DDL: P_BSQPMPURORDTOSUPLRINVC Type: view_entity COMPOSITE

Purchase Order to Supplier Invoice

P_BSQPMPurOrdToSuplrInvc is a Composite CDS View that provides data about "Purchase Order to Supplier Invoice" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderHistoryBasic) and exposes 6 fields.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrderHistoryBasic PurchaseOrderHistory from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Purchase Order to Supplier Invoice view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (6)

KeyFieldSource TableSource FieldDescription
PrecedingDocument I_PurchaseOrderHistoryBasic PurchaseOrder Purchasing Document
PrecedingDocumentItem
PrecedingDocumentCategory
SubsequentDocument I_PurchaseOrderHistoryBasic PurchasingHistoryDocument
SubsequentDocumentItem
SubsequentDocumentCategory

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_BSQPMPurOrdToSuplrInvc.
-- 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_BSQPMPurOrdToSuplrInvc AS
SELECT
  PurchaseOrderHistory.PurchaseOrder AS PrecedingDocument,
  cast( PurchaseOrderHistory.PurchaseOrderItem as char6 ) AS PrecedingDocumentItem,
  'V' AS PrecedingDocumentCategory,
  PurchaseOrderHistory.PurchasingHistoryDocument AS SubsequentDocument,
  cast( PurchaseOrderHistory.PurchasingHistoryDocumentItem as char6 ) AS SubsequentDocumentItem,
  'SI' AS SubsequentDocumentCategory
FROM I_PurchaseOrderHistoryBasic AS PurchaseOrderHistory
;