I_SalesDocumentSubsqntProcFlow

DDL: I_SALESDOCUMENTSUBSQNTPROCFLOW Type: view_entity COMPOSITE

Subsequent Process Flow of Sales Doc

I_SalesDocumentSubsqntProcFlow (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sales

I_SalesDocumentSubsqntProcFlow is a Composite CDS View that provides data about "Subsequent Process Flow of Sales Doc" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentBasic, I_SDDocumentMultiLevelProcFlow) and exposes 14 fields with key fields SalesDocument, DocRelationshipUUID. It has 1 association to related views.

SAP Help Documentation

CategorySD Documents and Sales Documents
Purpose
This CDS view provides the prerequisites for answering questions about the subsequent documents of a sales document (that is, the process flow). Example business questions could include: Which subsequent documents does my sales document have? What's the category of the subsequent document of my sales document? Which process flow level is this subsequent document on? The process flow level describes the degree of separation between a document and its subsequent documents. For example, for a delivery document (which is the direct successor of a sales order), the value would be 00 . For a billing document, the value would be 01 . When was the subsequent document created? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations You have authorizations to access the relevant sales document types. You have authorizations to access the relevant sales areas.

Structure
Further important fields Important fields in this view include the following: Field Name Description SubsequentDocumentCategory Category of the subsequent document SubsequentDocument ID of the subsequent document ProcessFlowLevel Process flow level of the subsequent document

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSales
Application ComponentSD-SLS
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageSales for SAP S/4HANA Cloud Private Edition
Description This CDS view provides the prerequisites for answering questions about the subsequent documents of a sales document (that is, the process flow). Example business questions could include:<ul> <li><p>Which subsequent documents does my sales document have?</p></li> <li><p>What's the category of the subsequent document of my sales document?</p></li> <li><p>Which process flow level is this subsequent document on? The process flow level describes the degree of separation between a document and its subsequent documents. For example, for a delivery document (which is the direct successor of a sales order), the value would be 00. For a billing document, the value would be 01.</p></li> <li><p>When was the subsequent document created?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentBasic SalesDocument inner
I_SDDocumentMultiLevelProcFlow SubsequentProcFlow from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_SalesDocument _SalesDocument _SalesDocument.SalesDocument = $projection.SalesDocument

Annotations (8)

NameValueLevelField
EndUserText.label Subsequent Process Flow of Sales Doc view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SDDocumentMultiLevelProcFlow PrecedingDocument Preceding sales and distribution document
KEY DocRelationshipUUID I_SDDocumentMultiLevelProcFlow DocRelationshipUUID SD Unique Document Relationship Identification
SubsequentDocument I_SDDocumentMultiLevelProcFlow SubsequentDocument Subsequent Sales and Distribution Document
SubsequentDocumentCategory I_SDDocumentMultiLevelProcFlow SubsequentDocumentCategory Document Category of Subsequent Document
SDDocumentCategory I_SDDocumentMultiLevelProcFlow PrecedingDocumentCategory Document Category of Preceding SD Document
ProcessFlowLevel I_SDDocumentMultiLevelProcFlow ProcessFlowLevel Level of the document flow record
CreationDate I_SDDocumentMultiLevelProcFlow CreationDate Record Created On
CreationTime I_SDDocumentMultiLevelProcFlow CreationTime Time of Change
LastChangeDate I_SDDocumentMultiLevelProcFlow LastChangeDate Last Changed On
SalesDocumentType I_SalesDocumentBasic SalesDocumentType Sales Document Type
SalesOrganization I_SalesDocumentBasic SalesOrganization Sales Organization
DistributionChannel I_SalesDocumentBasic DistributionChannel Distribution Channel
OrganizationDivision I_SalesDocumentBasic OrganizationDivision Org. Division
_SalesDocument _SalesDocument

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 I_SalesDocumentSubsqntProcFlow.
-- 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 I_SalesDocumentSubsqntProcFlow AS
SELECT
  SubsequentProcFlow.PrecedingDocument AS SalesDocument,
  SubsequentProcFlow.DocRelationshipUUID AS DocRelationshipUUID,
  SubsequentProcFlow.SubsequentDocument AS SubsequentDocument,
  SubsequentProcFlow.SubsequentDocumentCategory AS SubsequentDocumentCategory,
  SubsequentProcFlow.PrecedingDocumentCategory AS SDDocumentCategory,
  SubsequentProcFlow.ProcessFlowLevel AS ProcessFlowLevel,
  SubsequentProcFlow.CreationDate AS CreationDate,
  SubsequentProcFlow.CreationTime AS CreationTime,
  SubsequentProcFlow.LastChangeDate AS LastChangeDate,
  SalesDocument.SalesDocumentType AS SalesDocumentType,
  SalesDocument.SalesOrganization AS SalesOrganization,
  SalesDocument.DistributionChannel AS DistributionChannel,
  SalesDocument.OrganizationDivision AS OrganizationDivision
FROM I_SDDocumentMultiLevelProcFlow AS SubsequentProcFlow
INNER JOIN I_SalesDocumentBasic AS SalesDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesDocument AS _SalesDocument ON _SalesDocument.SalesDocument = SalesDocument  -- association [1..1]
;