I_SalesDocumentSubsqntProcFlow
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
| Category | SD Documents and Sales Documents |
|---|
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
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sales |
| Application Component | SD-SLS |
| Capabilities | Data Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities |
| Package | Sales 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentBasic | SalesDocument | inner |
| I_SDDocumentMultiLevelProcFlow | SubsequentProcFlow | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SalesDocument | _SalesDocument | _SalesDocument.SalesDocument = $projection.SalesDocument |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA