I_SalesDocItmPrecdgProcFlow
Preceding Process Flow of Sales Doc Item
I_SalesDocItmPrecdgProcFlow (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sales
I_SalesDocItmPrecdgProcFlow is a Composite CDS View that provides data about "Preceding Process Flow of Sales Doc Item" in SAP S/4HANA. It reads from 2 data sources (I_SDDocumentMultiLevelProcFlow, I_SalesDocumentItemBasic) and exposes 17 fields with key fields SalesDocument, SalesDocumentItem, DocRelationshipUUID. It has 2 associations to related views.
SAP Help Documentation
| Category | SD Documents and Sales Documents |
|---|
This CDS view provides the prerequisites for answering questions about the preceding items of a sales document item (that is, the process flow). Example business questions could include: Which preceding items does my sales document item have? What's the document category of the preceding item of my sales document item? Which process flow level is this preceding document on? The process flow level describes the degree of separation between a document and its preceding documents. For example, if you have a sales order that references a sales quotation, it works as follows: For the sales quotation (which is the direct predecessor of a sales order), the value would be 00 . For a sales inquiry, the value would be 01 . When was the preceding item 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 PrecedingDocumentCategory Category of the preceding document PrecedingDocument ID of the preceding document PrecedingDocumentItem Number of the preceding item ProcessFlowLevel Process flow level of the preceding 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 preceding items of a sales document item (that is, the process flow). Example business questions could include:<ul> <li><p>Which preceding items does my sales document item have?</p></li> <li><p>What's the document category of the preceding item of my sales document item?</p></li> <li><p>Which process flow level is this preceding document on? The process flow level describes the degree of separation between a document and its preceding documents. For example, if you have a sales order that references a sales quotation, it works as follows: For the sales quotation (which is the direct predecessor of a sales order), the value would be 00. For a sales inquiry, the value would be 01.</p></li> <li><p>When was the preceding item 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_SDDocumentMultiLevelProcFlow | PrecedingProcFlowItem | from |
| I_SalesDocumentItemBasic | SalesDocumentItem | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SalesDocument | _SalesDocument | $projection.SalesDocument = _SalesDocument.SalesDocument |
| [1..1] | I_SalesDocumentItem | _SalesDocumentItem | $projection.SalesDocument = _SalesDocumentItem.SalesDocument and $projection.SalesDocumentItem = _SalesDocumentItem.SalesDocumentItem |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Preceding Process Flow of Sales Doc Item | 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 (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | I_SDDocumentMultiLevelProcFlow | SubsequentDocument | Subsequent Sales and Distribution Document |
| KEY | SalesDocumentItem | I_SDDocumentMultiLevelProcFlow | SubsequentDocumentItem | Subsequent Item of an SD Document |
| KEY | DocRelationshipUUID | I_SDDocumentMultiLevelProcFlow | DocRelationshipUUID | SD Unique Document Relationship Identification |
| SDDocumentCategory | I_SDDocumentMultiLevelProcFlow | SubsequentDocumentCategory | Document Category of Subsequent Document | |
| PrecedingDocument | I_SDDocumentMultiLevelProcFlow | PrecedingDocument | Preceding sales and distribution document | |
| PrecedingDocumentItem | I_SDDocumentMultiLevelProcFlow | PrecedingDocumentItem | Preceding Item of an SD Document | |
| PrecedingDocumentCategory | 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_SalesDocumentItemBasic | SalesDocumentType | Sales Document Type | |
| SalesOrganization | I_SalesDocumentItemBasic | SalesOrganization | Sales Organization | |
| DistributionChannel | I_SalesDocumentItemBasic | DistributionChannel | Distribution Channel | |
| OrganizationDivision | I_SalesDocumentItemBasic | OrganizationDivision | Org. Division | |
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem |
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_SalesDocItmPrecdgProcFlow.
-- 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_SalesDocItmPrecdgProcFlow AS
SELECT
PrecedingProcFlowItem.SubsequentDocument AS SalesDocument,
PrecedingProcFlowItem.SubsequentDocumentItem AS SalesDocumentItem,
PrecedingProcFlowItem.DocRelationshipUUID AS DocRelationshipUUID,
PrecedingProcFlowItem.SubsequentDocumentCategory AS SDDocumentCategory,
PrecedingProcFlowItem.PrecedingDocument AS PrecedingDocument,
PrecedingProcFlowItem.PrecedingDocumentItem AS PrecedingDocumentItem,
PrecedingProcFlowItem.PrecedingDocumentCategory AS PrecedingDocumentCategory,
PrecedingProcFlowItem.ProcessFlowLevel AS ProcessFlowLevel,
PrecedingProcFlowItem.CreationDate AS CreationDate,
PrecedingProcFlowItem.CreationTime AS CreationTime,
PrecedingProcFlowItem.LastChangeDate AS LastChangeDate,
SalesDocumentItem.SalesDocumentType AS SalesDocumentType,
SalesDocumentItem.SalesOrganization AS SalesOrganization,
SalesDocumentItem.DistributionChannel AS DistributionChannel,
SalesDocumentItem.OrganizationDivision AS OrganizationDivision
FROM I_SDDocumentMultiLevelProcFlow AS PrecedingProcFlowItem
INNER JOIN I_SalesDocumentItemBasic AS SalesDocumentItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesDocument AS _SalesDocument ON SalesDocument = _SalesDocument.SalesDocument -- association [1..1]
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesDocumentItem ON SalesDocument = _SalesDocumentItem.SalesDocument AND SalesDocumentItem = _SalesDocumentItem.SalesDocumentItem -- 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