I_TrdgContrPrvsnlSetldQtyDets
Provisionally Settled Qty Details
I_TrdgContrPrvsnlSetldQtyDets is a Composite CDS View that provides data about "Provisionally Settled Qty Details" in SAP S/4HANA. It reads from 1 data source (P_TrdgContrItmPrvsnlSetldQty) and exposes 12 fields with key fields ContractNum, ContractItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_TrdgContrItmPrvsnlSetldQty | StlQty | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_TrdgContrShadowData | _shdw | _shdw.ContractNum = StlQty.ContractNum and _shdw.ContractItem = StlQty.ContractItem |
| [0..1] | I_ACMTrdgContrDetmPaidInvc | _paidInvc | StlQty.SettlementUnitUUID = _paidInvc.SettlementUnitUUID and StlQty.ContractNum = _paidInvc.TradingContractNumber and StlQty.ContractItem = _paidInvc.TradingContractItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPROVSTLQTYDETS | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Provisionally Settled Qty Details | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ContractNum | P_TrdgContrItmPrvsnlSetldQty | ContractNum | |
| KEY | ContractItem | P_TrdgContrItmPrvsnlSetldQty | ContractItem | Purchase Contract Item |
| SettlementUnitUUID | P_TrdgContrItmPrvsnlSetldQty | SettlementUnitUUID | ||
| SettlementGroupId | P_TrdgContrItmPrvsnlSetldQty | SettlementGroupId | ||
| SettlmtDoc | P_TrdgContrItmPrvsnlSetldQty | SettlmtDoc | Settlement Doc. | |
| SettlmtDocYear | P_TrdgContrItmPrvsnlSetldQty | SettlmtDocYear | ||
| SettlmtCat | P_TrdgContrItmPrvsnlSetldQty | SettlmtCat | Settl. Category | |
| SettlementType | P_TrdgContrItmPrvsnlSetldQty | SettlementType | Settlement Type | |
| ReferenceApplicationDocument | P_TrdgContrItmPrvsnlSetldQty | ReferenceApplicationDocument | Ref Preceeding Doc | |
| ReferenceApplicationItem | P_TrdgContrItmPrvsnlSetldQty | ReferenceApplicationItem | ||
| TrdgContractItemUnitOfMeasure | _shdw | item_uom | ItemUoM | |
| SettlmtQuantityendasACMPaidQty |
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_TrdgContrPrvsnlSetldQtyDets.
-- 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: IPROVSTLQTYDETS
CREATE VIEW I_TrdgContrPrvsnlSetldQtyDets AS
SELECT
StlQty.ContractNum AS ContractNum,
StlQty.ContractItem AS ContractItem,
StlQty.SettlementUnitUUID AS SettlementUnitUUID,
StlQty.SettlementGroupId AS SettlementGroupId,
StlQty.SettlmtDoc AS SettlmtDoc,
StlQty.SettlmtDocYear AS SettlmtDocYear,
StlQty.SettlmtCat AS SettlmtCat,
StlQty.SettlementType AS SettlementType,
StlQty.ReferenceApplicationDocument AS ReferenceApplicationDocument,
StlQty.ReferenceApplicationItem AS ReferenceApplicationItem,
_shdw.item_uom AS TrdgContractItemUnitOfMeasure,
case when _paidInvc.SettlmtQuantity is null or _paidInvc.SettlmtQuantity = 0 then 0 when StlQty.SettlementType = 'S' and _shdw.Numerator = 0 then 0 when StlQty.SettlementType = 'S' and _shdw.Numerator <> 0 and _paidInvc.SettlmtQuantity is not null and _paidInvc.SettlmtQuantity is not initial then division( ( _paidInvc.SettlmtQuantity * _shdw.Denominator ),_shdw.Numerator,9 ) else _paidInvc.SettlmtQuantity end as ACMPaidQty AS SettlmtQuantityendasACMPaidQty
FROM P_TrdgContrItmPrvsnlSetldQty AS StlQty
LEFT OUTER JOIN P_TrdgContrShadowData AS _shdw ON _shdw.ContractNum = StlQty.ContractNum AND _shdw.ContractItem = StlQty.ContractItem -- association [0..*]
LEFT OUTER JOIN I_ACMTrdgContrDetmPaidInvc AS _paidInvc ON StlQty.SettlementUnitUUID = _paidInvc.SettlementUnitUUID AND StlQty.ContractNum = _paidInvc.TradingContractNumber AND StlQty.ContractItem = _paidInvc.TradingContractItem -- 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