I_TrdgContrItmFnlSetldQtyDets
Full Finally Settled Qty Details
I_TrdgContrItmFnlSetldQtyDets is a Composite CDS View that provides data about "Full Finally Settled Qty Details" in SAP S/4HANA. It reads from 1 data source (P_TrdgContrItmFnlSetldQtyDets) and exposes 10 fields with key fields ContractNum, ContractItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_TrdgContrItmFnlSetldQtyDets | StlQty | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_TrdgContrShadowData | _shdw | StlQty.ContractNum = _shdw.ContractNum and StlQty.ContractItem = _shdw.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 | IFULLFNLSTLQTY | 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 | Full Finally Settled Qty Details | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ContractNum | P_TrdgContrItmFnlSetldQtyDets | ContractNum | |
| KEY | ContractItem | P_TrdgContrItmFnlSetldQtyDets | ContractItem | Purchase Contract Item |
| SettlementUnitUUID | P_TrdgContrItmFnlSetldQtyDets | SettlementUnitUUID | ||
| SettlementGroupId | P_TrdgContrItmFnlSetldQtyDets | SettlementGroupId | ||
| SettlmtDoc | P_TrdgContrItmFnlSetldQtyDets | SettlmtDoc | Settlement Doc. | |
| SettlmtDocYear | P_TrdgContrItmFnlSetldQtyDets | SettlmtDocYear | ||
| SettlmtCat | P_TrdgContrItmFnlSetldQtyDets | SettlmtCat | Settl. Category | |
| SettlementType | P_TrdgContrItmFnlSetldQtyDets | SettlementType | Settlement Type | |
| 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_TrdgContrItmFnlSetldQtyDets.
-- 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: IFULLFNLSTLQTY
CREATE VIEW I_TrdgContrItmFnlSetldQtyDets 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,
_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_TrdgContrItmFnlSetldQtyDets AS StlQty
LEFT OUTER JOIN P_TrdgContrShadowData AS _shdw ON StlQty.ContractNum = _shdw.ContractNum AND StlQty.ContractItem = _shdw.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