I_ACMTrdgContrMnlSelection
Interface layer of Trading Contracts for manual selection
I_ACMTrdgContrMnlSelection is a Composite CDS View that provides data about "Interface layer of Trading Contracts for manual selection" in SAP S/4HANA. It reads from 6 data sources and exposes 23 fields with key fields TradingContractNumber, TradingContractItem, TrdgContrCommoditySubitem.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_ACMContractCommoditySubitem | CommoditySubitem | inner |
| I_ACMTradingContractData | ContractHeader | from |
| I_ACMTradingContractItemData | ContractItem | inner |
| I_ACMTradingContractStatus | ContractStatus | inner |
| P_TradingContractCounterparty | Counterparty | inner |
| P_GenericDomainVH | P_GenericDomainVH | left_outer |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITCMANUALSEL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.supportedCapabilities | #CDS_MODELING_DATA_SOURCE | view | |
| EndUserText.label | Interface layer of Trading Contracts for manual selection | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingContractNumber | I_ACMTradingContractData | ContractNum | Trading Contract |
| KEY | TradingContractItem | I_ACMContractCommoditySubitem | TradingContractItem | Item Number |
| KEY | TrdgContrCommoditySubitem | I_ACMContractCommoditySubitem | TrdgContrCommoditySubitem | Com. item num. |
| ContractStatus | I_ACMTradingContractData | ContractStatus | Paper Contr Status | |
| TrdgContrApplStsName | I_ACMTradingContractStatus | TrdgContrApplStsName | ||
| TradingContractType | I_ACMTradingContractData | TradingContractType | Contract Type | |
| TradingContractCreatedBy | I_ACMTradingContractData | TradingContractCreatedBy | User Name | |
| SalesOrganization | I_ACMTradingContractData | SalesOrganization | Sales Organization | |
| DistributionChannel | I_ACMTradingContractData | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | I_ACMTradingContractData | Division | Internal Division ID | |
| Side | I_ACMContractCommoditySubitem | Side | Side | |
| CustomerNumendasCounterparty | ||||
| CustomerName | P_TradingContractCounterparty | CustomerName | Name of Customer | |
| ACMTradingContractSideText | sidetext | DomainText | Short Description | |
| ContractMaterialendasContractMaterial | ||||
| ContractPlant | I_ACMTradingContractItemData | ContractPlant | ||
| ContractStorageLocation | I_ACMTradingContractItemData | ContractStorageLocation | ||
| TrdgContrSalesQuantity | I_ACMTradingContractItemData | TrdgContrSalesQuantity | ||
| BaseUnitofMeasureendasBaseUnit | ||||
| TradingContractItemQuantity | I_ACMContractCommoditySubitem | ACMPricingCancellationQuantity | Value | |
| TrdgContractItemUnitOfMeasure | I_ACMContractCommoditySubitem | TrdgContractItemUnitOfMeasure | UoM | |
| ActualStartDateFrom | I_ACMContractCommoditySubitem | TrdgContrCreditSalesFromDate | Validity Start Date | |
| ActualStartDateTo | I_ACMContractCommoditySubitem | TrdgContractCreditSalesToDate | Validity End Date |
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_ACMTrdgContrMnlSelection.
-- 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: ITCMANUALSEL
CREATE VIEW I_ACMTrdgContrMnlSelection AS
SELECT
ContractHeader.ContractNum AS TradingContractNumber,
CommoditySubitem.TradingContractItem AS TradingContractItem,
CommoditySubitem.TrdgContrCommoditySubitem AS TrdgContrCommoditySubitem,
ContractHeader.ContractStatus AS ContractStatus,
ContractStatus.TrdgContrApplStsName AS TrdgContrApplStsName,
ContractHeader.TradingContractType AS TradingContractType,
ContractHeader.TradingContractCreatedBy AS TradingContractCreatedBy,
ContractHeader.SalesOrganization AS SalesOrganization,
ContractHeader.DistributionChannel AS DistributionChannel,
ContractHeader.Division AS Division,
CommoditySubitem.Side AS Side,
case CommoditySubitem.Side when 'M' then CommoditySubitem.ACMSettlementDocReferenceParty when 'V' then CommoditySubitem.CustomerNum else CommoditySubitem.CustomerNum end as Counterparty AS CustomerNumendasCounterparty,
Counterparty.CustomerName AS CustomerName,
sidetext.DomainText AS ACMTradingContractSideText,
case when CommoditySubitem.ContractMaterial is initial then ContractItem.ContractMaterial else CommoditySubitem.ContractMaterial end as ContractMaterial AS ContractMaterialendasContractMaterial,
ContractItem.ContractPlant AS ContractPlant,
ContractItem.ContractStorageLocation AS ContractStorageLocation,
ContractItem.TrdgContrSalesQuantity AS TrdgContrSalesQuantity,
case when CommoditySubitem.BaseUnitofMeasure is initial then ContractItem.BaseUnit else CommoditySubitem.BaseUnitofMeasure end as BaseUnit AS BaseUnitofMeasureendasBaseUnit,
CommoditySubitem.ACMPricingCancellationQuantity AS TradingContractItemQuantity,
CommoditySubitem.TrdgContractItemUnitOfMeasure AS TrdgContractItemUnitOfMeasure,
CommoditySubitem.TrdgContrCreditSalesFromDate AS ActualStartDateFrom,
CommoditySubitem.TrdgContractCreditSalesToDate AS ActualStartDateTo
FROM I_ACMTradingContractData AS ContractHeader
INNER JOIN I_ACMTradingContractStatus AS ContractStatus ON /* join condition not captured in parsed metadata */
INNER JOIN I_ACMTradingContractItemData AS ContractItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_ACMContractCommoditySubitem AS CommoditySubitem ON /* join condition not captured in parsed metadata */
INNER JOIN P_TradingContractCounterparty AS Counterparty ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_GenericDomainVH ON /* join condition not captured in parsed metadata */
;
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