P_SalesContractProcessFlow0
Contract process flow level 0
P_SalesContractProcessFlow0 is a Composite CDS View that provides data about "Contract process flow level 0" in SAP S/4HANA. It reads from 2 data sources (I_SalesContract, I_SalesContractItem) and exposes 17 fields with key fields SalesContract, SalesContractItem, SDDocumentCategory. It has 2 associations to related views. Part of development package ODATA_SD_CONTRACT.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesContract | _SalesContract | inner |
| I_SalesContractItem | SalesContractItem | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_SalesContract | vbeln_von |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_Currency | _StatisticsCurrency | $projection.StatisticsCurrency = _StatisticsCurrency.Currency |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | PSLSCONTRPROCF0 | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Contract process flow level 0 | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesContract | I_SalesContractItem | SalesContract | Sales Document |
| KEY | SalesContractItem | I_SalesContractItem | SalesContractItem | Item |
| KEY | SDDocumentCategory | |||
| QuantityInBaseUnit | I_SalesContractItem | TargetQuantity | Target Quantity | |
| BaseUnit | I_SalesContractItem | TargetQuantityUnit | Target Qty UoM | |
| NetAmount | I_SalesContractItem | NetAmount | Stated Amount | |
| StatisticsCurrency | I_SalesContractItem | TransactionCurrency | Transaction Currency | |
| SDProcessStatusDesc | ||||
| FiscalYear | ||||
| CompanyCode | ||||
| MaterialDocumentYear | ||||
| SemanticObject | ||||
| SDDocumentCategoryName | ||||
| CreationDate | I_SalesContract | CreationDate | Time Stamp | |
| CreationTime | I_SalesContract | CreationTime | Time of Change | |
| _BaseUnit | _BaseUnit | |||
| _StatisticsCurrency | _StatisticsCurrency |
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_SalesContractProcessFlow0.
-- 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: PSLSCONTRPROCF0
-- Parameters: P_SalesContract : vbeln_von
CREATE VIEW P_SalesContractProcessFlow0 AS
SELECT
SalesContractItem.SalesContract AS SalesContract,
SalesContractItem.SalesContractItem AS SalesContractItem,
cast( 'G' as vbtypl ) AS SDDocumentCategory,
SalesContractItem.TargetQuantity AS QuantityInBaseUnit,
SalesContractItem.TargetQuantityUnit AS BaseUnit,
SalesContractItem.NetAmount AS NetAmount,
SalesContractItem.TransactionCurrency AS StatisticsCurrency,
cast( '' as status_bez ) AS SDProcessStatusDesc,
cast( '0000' as gjahr ) AS FiscalYear,
cast( '' as bukrs ) AS CompanyCode,
cast( '0000' as mjahr ) AS MaterialDocumentYear,
cast( 'SalesContract' as bpf_sem_obj ) AS SemanticObject,
_SDDocumentCategory._Text[1:Language=$session.system_language].SDDocumentCategoryName AS SDDocumentCategoryName,
_SalesContract.CreationDate AS CreationDate,
_SalesContract.CreationTime AS CreationTime
FROM I_SalesContractItem AS SalesContractItem
INNER JOIN I_SalesContract AS _SalesContract ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Currency AS _StatisticsCurrency ON StatisticsCurrency = _StatisticsCurrency.Currency -- association [0..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