I_ACMTrdgContrItmDelivDteDet

DDL: I_ACMTRDGCONTRITMDELIVDTEDET SQL: ITRDGCNTRITMDLDT Type: view COMPOSITE

Contract Delivery Date Calculation

I_ACMTrdgContrItmDelivDteDet is a Composite CDS View that provides data about "Contract Delivery Date Calculation" in SAP S/4HANA. It reads from 1 data source (I_ACMTradingContractItemData) and exposes 9 fields with key fields TradingContractNumber, TradingContractItem. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ACMTradingContractItemData Item from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_ACMTrdgContrOptntyDets _OptionalityInfo Item.TradingContractNumber = _OptionalityInfo.TradingContractNumber and Item.TradingContractItem = _OptionalityInfo.TradingContractItem and _OptionalityInfo.ACMContractOptionsID = '08'
[1..1] I_ACMContractCommoditySubitem _CommodityItem Item.TradingContractNumber = _CommodityItem.TradingContractNumber and Item.TradingContractItem = _CommodityItem.TradingContractItem
[1..1] I_ACMTrdgContrHdr _ContractHeader $projection.TradingContractNumber = _ContractHeader.TradingContractNumber

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ITRDGCNTRITMDLDT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK 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 #PUBLIC_LOCAL_API view
EndUserText.label Contract Delivery Date Calculation view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY TradingContractNumber TradingContractNumber Trading Contract
KEY TradingContractItem TradingContractItem Item Number
ContractMaterial ContractMaterial
ContractPlant ContractPlant
ACMTrdgContrActualStartDate _CommodityItem TrdgContrCreditSalesFromDate
ActualStartDateTo _CommodityItem TrdgContractCreditSalesToDate
ACMContractOptionsValue _OptionalityInfo ACMContractOptionsValue
_ContractItem _ContractItem
_ContractHeader _ContractHeader

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_ACMTrdgContrItmDelivDteDet.
-- 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: ITRDGCNTRITMDLDT

CREATE VIEW I_ACMTrdgContrItmDelivDteDet AS
SELECT
  TradingContractNumber,
  TradingContractItem,
  ContractMaterial,
  ContractPlant,
  _CommodityItem.TrdgContrCreditSalesFromDate AS ACMTrdgContrActualStartDate,
  _CommodityItem.TrdgContractCreditSalesToDate AS ActualStartDateTo,
  _OptionalityInfo.ACMContractOptionsValue AS ACMContractOptionsValue
FROM I_ACMTradingContractItemData AS Item
LEFT OUTER JOIN I_ACMTrdgContrOptntyDets AS _OptionalityInfo ON Item.TradingContractNumber = _OptionalityInfo.TradingContractNumber AND Item.TradingContractItem = _OptionalityInfo.TradingContractItem AND _OptionalityInfo.ACMContractOptionsID = '08'  -- association [0..1]
LEFT OUTER JOIN I_ACMContractCommoditySubitem AS _CommodityItem ON Item.TradingContractNumber = _CommodityItem.TradingContractNumber AND Item.TradingContractItem = _CommodityItem.TradingContractItem  -- association [1..1]
LEFT OUTER JOIN I_ACMTrdgContrHdr AS _ContractHeader ON TradingContractNumber = _ContractHeader.TradingContractNumber  -- association [1..1]
;