P_SDDocumentPurchOrdProcFlow

DDL: P_SDDOCUMENTPURCHORDPROCFLOW SQL: PSDPOPROCFLW Type: view COMPOSITE Package: VDM_SD_SOF

Process FLow for Sales Order and Purchase Order Relationship

P_SDDocumentPurchOrdProcFlow is a Composite CDS View that provides data about "Process FLow for Sales Order and Purchase Order Relationship" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentMultiLevelProcFlow) and exposes 9 fields with key field DocRelationshipUUID. Part of development package VDM_SD_SOF.

Data Sources (1)

SourceAliasJoin Type
I_SDDocumentMultiLevelProcFlow I_SDDocumentMultiLevelProcFlow from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSDPOPROCFLW view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY DocRelationshipUUID DocRelationshipUUID SM Doc Rel UUID
PrecedingDocument PrecedingDocument SD Document
PrecedingDocumentItem PrecedingDocumentItem Item
PrecedingDocumentCategory PrecedingDocumentCategory Prec.Doc.Categ.
SubsequentDocument SubsequentDocument SD Sched. Agmt
SubsequentDocumentItem
Original SubsequentDocumentItem Subsequent Item
SubsequentDocumentCategory SubsequentDocumentCategory Subs.Doc.Categ.
ProcessFlowLevel ProcessFlowLevel Level Number

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_SDDocumentPurchOrdProcFlow.
-- 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: PSDPOPROCFLW

CREATE VIEW P_SDDocumentPurchOrdProcFlow AS
SELECT
  DocRelationshipUUID,
  PrecedingDocument,
  PrecedingDocumentItem,
  PrecedingDocumentCategory,
  SubsequentDocument,
  cast(substring(SubsequentDocumentItem,2,5) as ebelp) AS SubsequentDocumentItem,
  SubsequentDocumentItem AS Original,
  SubsequentDocumentCategory,
  ProcessFlowLevel
FROM I_SDDocumentMultiLevelProcFlow
;