P_BSQPMSrvcOrdToPurOrd

DDL: P_BSQPMSRVCORDTOPURORD Type: view_entity COMPOSITE

Service order to Purchase order flow

P_BSQPMSrvcOrdToPurOrd is a Composite CDS View that provides data about "Service order to Purchase order flow" in SAP S/4HANA. It reads from 3 data sources (I_ServiceDocumentItemEnhcd, I_ServiceDocumentItemSuccssr_3, I_ServiceDocumentSuccessor) and exposes 6 fields with key fields PrecedingDocument, PrecedingDocumentItem.

Data Sources (3)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd ServiceDocument from
I_ServiceDocumentItemSuccssr_3 SrvcDocItmToPurOrdItm inner
I_ServiceDocumentSuccessor SrvcDocToPurOrd inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Service order to Purchase order flow view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PrecedingDocument I_ServiceDocumentItemEnhcd ServiceDocument Transaction ID
KEY PrecedingDocumentItem I_ServiceDocumentItemEnhcd ServiceDocumentItem Service Document
PrecedingDocumentCategory
SubsequentDocument I_ServiceDocumentSuccessor ServiceDocSuccessor Key
SubsequentDocumentItem I_ServiceDocumentItemSuccssr_3 ServiceDocumentItemSuccessor Object ID
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_BSQPMSrvcOrdToPurOrd.
-- 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_BSQPMSrvcOrdToPurOrd AS
SELECT
  ServiceDocument.ServiceDocument AS PrecedingDocument,
  ServiceDocument.ServiceDocumentItem AS PrecedingDocumentItem,
  'CSVO' AS PrecedingDocumentCategory,
  SrvcDocToPurOrd.ServiceDocSuccessor AS SubsequentDocument,
  SrvcDocItmToPurOrdItm.ServiceDocumentItemSuccessor AS SubsequentDocumentItem,
  'V' AS SubsequentDocumentCategory
FROM I_ServiceDocumentItemEnhcd AS ServiceDocument
INNER JOIN I_ServiceDocumentItemSuccssr_3 AS SrvcDocItmToPurOrdItm ON /* join condition not captured in parsed metadata */
INNER JOIN I_ServiceDocumentSuccessor AS SrvcDocToPurOrd ON /* join condition not captured in parsed metadata */
;