I_ACMTrdgContrItmExtn
Trading Contract Item
I_ACMTrdgContrItmExtn is a Composite CDS View that provides data about "Trading Contract Item" in SAP S/4HANA. It reads from 1 data source (I_ACMTradingContractItemData) and exposes 23 fields with key fields TradingContractNumber, TradingContractItem. It has 14 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ACMTradingContractItemData | Item | from |
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ACMContractCommoditySubitem | _CommodityItem | Item.TradingContractNumber = _CommodityItem.TradingContractNumber and Item.TradingContractItem = _CommodityItem.TradingContractItem |
| [1..1] | I_ACMMaterialMstrData | _Material | Item.ContractMaterial = _Material.Material |
| [1..1] | I_ACMTradingContractItemAddl | _ContractAdditionalItem | Item.TradingContractNumber = _ContractAdditionalItem.TradingContractNumber and Item.TradingContractItem = _ContractAdditionalItem.TradingContractItem |
| [*] | I_ACMTrdgContrItmPrcg | _PricingInfo | |
| [1] | I_ACMTrdgContrTol | _ToleranceInfo | |
| [*] | I_ACMTrdgContrOptntyInfo | _OptionalityInfo | |
| [1] | I_ACMContrPaytTrm | _DeferredPaymentInfo | |
| [*] | I_ACMTrdgContrPpaytDet | _PrepaymentInfo | |
| [*] | I_ACMTrdgContrQtyTypeInfo | _QuantityTypes | |
| [*] | I_ACMContrFeeDet | _FeeDetails | |
| [*] | I_ACMTrdgContrItmTxt | _TextDetails | |
| [*] | I_ACMContrItmUoMCnvrsnInfo | _ItemUoMCnvrsn | |
| [1] | I_ACMTrdgContrItmDlvDet | _ItemDelivDteDet | |
| [1] | I_ACMTrdgContrDPQSHdrDet | _DPQS | |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IACMTRCONTITMEXT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| EndUserText.label | Trading Contract Item | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingContractNumber | I_ACMTradingContractItemData | TradingContractNumber | Trading Contract |
| KEY | TradingContractItem | I_ACMTradingContractItemData | TradingContractItem | Item Number |
| TradingContractType | _ContractHeader | TradingContractType | ||
| ContractMaterial | I_ACMTradingContractItemData | ContractMaterial | ||
| ContractPlant | I_ACMTradingContractItemData | ContractPlant | ||
| Commodity | _Material | Commodity | Commodity Code | |
| ACMTrdgContrActualStartDate | _CommodityItem | TrdgContrCreditSalesFromDate | ||
| ActualStartDateTo | _CommodityItem | TrdgContractCreditSalesToDate | ||
| PricingApproach | _ContractAdditionalItem | PricingApproach | ||
| ValuationPoint | _ContractAdditionalItem | ValuationPoint | ||
| ContractStorageLocation | I_ACMTradingContractItemData | ContractStorageLocation | ||
| _ContractHeader | _ContractHeader | |||
| _PricingInfo | _PricingInfo | |||
| _ToleranceInfo | _ToleranceInfo | |||
| _OptionalityInfo | _OptionalityInfo | |||
| _DeferredPaymentInfo | _DeferredPaymentInfo | |||
| _PrepaymentInfo | _PrepaymentInfo | |||
| _QuantityTypes | _QuantityTypes | |||
| _FeeDetails | _FeeDetails | |||
| _TextDetails | _TextDetails | |||
| _ItemUoMCnvrsn | _ItemUoMCnvrsn | |||
| _ItemDelivDteDet | _ItemDelivDteDet | |||
| _DPQS | _DPQS |
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_ACMTrdgContrItmExtn.
-- 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: IACMTRCONTITMEXT
CREATE VIEW I_ACMTrdgContrItmExtn AS
SELECT
Item.TradingContractNumber AS TradingContractNumber,
Item.TradingContractItem AS TradingContractItem,
_ContractHeader.TradingContractType AS TradingContractType,
Item.ContractMaterial AS ContractMaterial,
Item.ContractPlant AS ContractPlant,
_Material.Commodity AS Commodity,
_CommodityItem.TrdgContrCreditSalesFromDate AS ACMTrdgContrActualStartDate,
_CommodityItem.TrdgContractCreditSalesToDate AS ActualStartDateTo,
_ContractAdditionalItem.PricingApproach AS PricingApproach,
_ContractAdditionalItem.ValuationPoint AS ValuationPoint,
Item.ContractStorageLocation AS ContractStorageLocation
FROM I_ACMTradingContractItemData AS Item
LEFT OUTER JOIN I_ACMContractCommoditySubitem AS _CommodityItem ON Item.TradingContractNumber = _CommodityItem.TradingContractNumber AND Item.TradingContractItem = _CommodityItem.TradingContractItem -- association [1..1]
LEFT OUTER JOIN I_ACMMaterialMstrData AS _Material ON Item.ContractMaterial = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_ACMTradingContractItemAddl AS _ContractAdditionalItem ON Item.TradingContractNumber = _ContractAdditionalItem.TradingContractNumber AND Item.TradingContractItem = _ContractAdditionalItem.TradingContractItem -- association [1..1]
LEFT OUTER JOIN I_ACMTrdgContrItmPrcg AS _PricingInfo ON /* condition not available in parsed metadata */ -- association [*]
LEFT OUTER JOIN I_ACMTrdgContrTol AS _ToleranceInfo ON /* condition not available in parsed metadata */ -- association [1]
LEFT OUTER JOIN I_ACMTrdgContrOptntyInfo AS _OptionalityInfo ON /* condition not available in parsed metadata */ -- association [*]
LEFT OUTER JOIN I_ACMContrPaytTrm AS _DeferredPaymentInfo ON /* condition not available in parsed metadata */ -- association [1]
LEFT OUTER JOIN I_ACMTrdgContrPpaytDet AS _PrepaymentInfo ON /* condition not available in parsed metadata */ -- association [*]
LEFT OUTER JOIN I_ACMTrdgContrQtyTypeInfo AS _QuantityTypes ON /* condition not available in parsed metadata */ -- association [*]
LEFT OUTER JOIN I_ACMContrFeeDet AS _FeeDetails ON /* condition not available in parsed metadata */ -- association [*]
LEFT OUTER JOIN I_ACMTrdgContrItmTxt AS _TextDetails ON /* condition not available in parsed metadata */ -- association [*]
LEFT OUTER JOIN I_ACMContrItmUoMCnvrsnInfo AS _ItemUoMCnvrsn ON /* condition not available in parsed metadata */ -- association [*]
LEFT OUTER JOIN I_ACMTrdgContrItmDlvDet AS _ItemDelivDteDet ON /* condition not available in parsed metadata */ -- association [1]
LEFT OUTER JOIN I_ACMTrdgContrDPQSHdrDet AS _DPQS ON /* condition not available in parsed metadata */ -- association [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