I_SalesDocItmSubsqntProcFlow

DDL: I_SALESDOCITMSUBSQNTPROCFLOW Type: view_entity COMPOSITE Package: VDM_SD_SLS

Subsequent Process Flow of Sls Doc Item

I_SalesDocItmSubsqntProcFlow (Composite)

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

Sales

I_SalesDocItmSubsqntProcFlow is a Composite CDS View that provides data about "Subsequent Process Flow of Sls Doc Item" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentItemBasic, I_SDDocumentMultiLevelProcFlow) and exposes 19 fields with key fields SalesDocument, SalesDocumentItem. It has 2 associations to related views. Part of development package VDM_SD_SLS.

SAP Help Documentation

CategorySD Documents and Sales Documents
Purpose
This CDS view provides the prerequisites for answering questions about the subsequent items of a sales document item (that is, the process flow). Example business questions could include: Which subsequent items does my sales document item have? What's the document category of the subsequent item of my sales document item? 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 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 SubsequentDocumentCategory Category of the subsequent document SubsequentDocument ID of the subsequent document SubsequentDocumentItem Number of the subsequent item ProcessFlowLevel Process flow level of the subsequent document

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessSales
Application ComponentSD-SLS-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSales for SAP S/4HANA Cloud Public Edition
Description This CDS view provides the prerequisites for answering questions about the subsequent items of a sales document item (that is, the process flow). Example business questions could include:<ul> <li> <p>Which subsequent items does my sales document item have?</p> </li> <li> <p>What's the document category of the subsequent item of my sales document item?</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 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

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentItemBasic SalesDocumentItem inner
I_SDDocumentMultiLevelProcFlow SubsequentProcFlowItem from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
EndUserText.label Subsequent Process Flow of Sls 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 (19)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SDDocumentMultiLevelProcFlow PrecedingDocument Preceding sales and distribution document
KEY SalesDocumentItem I_SDDocumentMultiLevelProcFlow PrecedingDocumentItem Preceding Item of an SD Document
SDDocumentCategory I_SDDocumentMultiLevelProcFlow PrecedingDocumentCategory SD Document Category of Reference SD Document
SubsequentDocument I_SDDocumentMultiLevelProcFlow SubsequentDocument Subsequent Sales and Distribution Document
SubsequentDocumentItem I_SDDocumentMultiLevelProcFlow SubsequentDocumentItem Subsequent Item of an SD Document
SubsequentDocumentCategory I_SDDocumentMultiLevelProcFlow SubsequentDocumentCategory Document Category of Subsequent Document
ProcessFlowLevel I_SDDocumentMultiLevelProcFlow ProcessFlowLevel Level of the document flow record
SubsqntDocItmPrecdgDocument _SDDocMultiLevelProcFlow PrecedingDocument Preceding sales and distribution document
SubsqntDocItmPrecdgDocItem _SDDocMultiLevelProcFlow PrecedingDocumentItem Preceding Item of an SD Document
SubsqntDocItmPrecdgDocCategory _SDDocMultiLevelProcFlow PrecedingDocumentCategory SD Document Category of Reference SD Document
CreationDate I_SDDocumentMultiLevelProcFlow CreationDate Record Creation Date
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_SalesDocItmSubsqntProcFlow.
-- 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_SalesDocItmSubsqntProcFlow AS
SELECT
  SubsequentProcFlowItem.PrecedingDocument AS SalesDocument,
  SubsequentProcFlowItem.PrecedingDocumentItem AS SalesDocumentItem,
  SubsequentProcFlowItem.PrecedingDocumentCategory AS SDDocumentCategory,
  SubsequentProcFlowItem.SubsequentDocument AS SubsequentDocument,
  SubsequentProcFlowItem.SubsequentDocumentItem AS SubsequentDocumentItem,
  SubsequentProcFlowItem.SubsequentDocumentCategory AS SubsequentDocumentCategory,
  SubsequentProcFlowItem.ProcessFlowLevel AS ProcessFlowLevel,
  _SDDocMultiLevelProcFlow.PrecedingDocument AS SubsqntDocItmPrecdgDocument,
  _SDDocMultiLevelProcFlow.PrecedingDocumentItem AS SubsqntDocItmPrecdgDocItem,
  _SDDocMultiLevelProcFlow.PrecedingDocumentCategory AS SubsqntDocItmPrecdgDocCategory,
  SubsequentProcFlowItem.CreationDate AS CreationDate,
  SubsequentProcFlowItem.CreationTime AS CreationTime,
  SubsequentProcFlowItem.LastChangeDate AS LastChangeDate,
  SalesDocumentItem.SalesDocumentType AS SalesDocumentType,
  SalesDocumentItem.SalesOrganization AS SalesOrganization,
  SalesDocumentItem.DistributionChannel AS DistributionChannel,
  SalesDocumentItem.OrganizationDivision AS OrganizationDivision
FROM I_SDDocumentMultiLevelProcFlow AS SubsequentProcFlowItem
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]
;