I_ACMTrdgContrPrcLotDet

DDL: I_ACMTRDGCONTRPRCLOTDET Type: view COMPOSITE

Interface Layer for Trdg Contr Prc lot det

I_ACMTrdgContrPrcLotDet is a Composite CDS View that provides data about "Interface Layer for Trdg Contr Prc lot det" in SAP S/4HANA. It reads from 3 data sources (I_ACMTrdgContrHdrForPrcgOvw, I_ACMTrdgContrItemForPrcgOvw, I_ACMMntnContrPrcgAspect) and exposes 63 fields with key fields TradingContractNumber, TradingContractItem.

Data Sources (3)

SourceAliasJoin Type
I_ACMTrdgContrHdrForPrcgOvw Header inner
I_ACMTrdgContrItemForPrcgOvw Item inner
I_ACMMntnContrPrcgAspect PricingAspect from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IACMTRCPRCLOTDET view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
EndUserText.label Interface Layer for Trdg Contr Prc lot det view

Fields (63)

KeyFieldSource TableSource FieldDescription
KEY TradingContractNumber I_ACMTrdgContrHdrForPrcgOvw TradingContractNumber Trading Contract
KEY TradingContractItem I_ACMTrdgContrItemForPrcgOvw TradingContractItem Item Number
TradingContractType I_ACMTrdgContrHdrForPrcgOvw TradingContractType
TradingContractTypeName I_ACMTrdgContrHdrForPrcgOvw TradingContractTypeName
ContractStatus I_ACMTrdgContrHdrForPrcgOvw ContractStatus Paper Contr Status
TrdgContrApplStsName I_ACMTrdgContrHdrForPrcgOvw TrdgContrApplStsName
SalesOrganization I_ACMTrdgContrHdrForPrcgOvw SalesOrganization Sales Organization
DistributionChannel I_ACMTrdgContrHdrForPrcgOvw DistributionChannel RefDistCh-Cust/Mat.
Division I_ACMTrdgContrHdrForPrcgOvw Division Internal Division ID
PurchasingOrganization I_ACMTrdgContrHdrForPrcgOvw PurchasingOrganization Purchasing Organization
PurchasingGroup I_ACMTrdgContrHdrForPrcgOvw PurchasingGroup Purchasing Group
TradingContractExternalID I_ACMTrdgContrHdrForPrcgOvw TradingContractExternalID
DocumentDate I_ACMTrdgContrHdrForPrcgOvw DocumentDate Journal Entry Date
TradingContrCreatedOnDate I_ACMTrdgContrHdrForPrcgOvw TradingContrCreatedOnDate
PersonResponsible I_ACMTrdgContrHdrForPrcgOvw PersonResponsible Person Responsible
TradingContractCreatedBy I_ACMTrdgContrHdrForPrcgOvw TradingContractCreatedBy
TradingContractChangedBy I_ACMTrdgContrHdrForPrcgOvw TradingContractChangedBy
ACMPurgIncotermsPart1 I_ACMTrdgContrHdrForPrcgOvw ACMPurgIncotermsPart1
ACMSlsIncotermsPart1 I_ACMTrdgContrHdrForPrcgOvw ACMSlsIncotermsPart1
ACMTrdgContrStatusCategory I_ACMTrdgContrHdrForPrcgOvw ACMTrdgContrStatusCategory
ACMContractStatusIsPosRelevant I_ACMTrdgContrHdrForPrcgOvw ACMContractStatusIsPosRelevant
TrdgContrPurgIncotermsLoc1Text I_ACMTrdgContrHdrForPrcgOvw TrdgContrPurgIncotermsLoc1Text
TrdgContrSlsIncotermsLoc1Text I_ACMTrdgContrHdrForPrcgOvw TrdgContrSlsIncotermsLoc1Text
AlternatePaymentTerm I_ACMTrdgContrHdrForPrcgOvw AlternatePaymentTerm
CompanyCode I_ACMTrdgContrHdrForPrcgOvw CompanyCode Receiver Company Code
ACMYourReference I_ACMTrdgContrHdrForPrcgOvw ACMYourReference
ACMCustomerReference I_ACMTrdgContrHdrForPrcgOvw ACMCustomerReference
TrdgContrGoodsSupplier I_ACMTrdgContrHdrForPrcgOvw TrdgContrGoodsSupplier
PurchaseOrderSupplier I_ACMTrdgContrHdrForPrcgOvw PurchaseOrderSupplier
PricingDocument I_ACMTrdgContrHdrForPrcgOvw PricingDocument Document Condition
Side
ContractPlant I_ACMTrdgContrItemForPrcgOvw ContractPlant
ContractMaterial
Material I_ACMTrdgContrItemForPrcgOvw ContractMaterial
PricingApproach I_ACMTrdgContrItemForPrcgOvw PricingApproach
ACMSlsIncotermsPart1endasIncoterms
CmmdtyDealDetEffectiveFromDate I_ACMTrdgContrItemForPrcgOvw CmmdtyDealDetEffectiveFromDate
CmmdtyDealDetEffectiveToDate I_ACMTrdgContrItemForPrcgOvw CmmdtyDealDetEffectiveToDate
ACMPrcgIntendedPrcType I_ACMTrdgContrItemForPrcgOvw ACMPrcgIntendedPrcType
ACMPricingItemQuantity I_ACMTrdgContrItemForPrcgOvw ACMPricingItemQuantity
TrdgContractItemUnitOfMeasure I_ACMTrdgContrItemForPrcgOvw TrdgContractItemUnitOfMeasure
ValuationPoint I_ACMTrdgContrItemForPrcgOvw ValuationPoint
ACMPrcgCmmdtyOrdSubAccountID I_ACMTrdgContrItemForPrcgOvw ACMPrcgCmmdtyOrdSubAccountID
ACMTrdgContrSubAccountName I_ACMTrdgContrItemForPrcgOvw ACMTrdgContrSubAccountName
ContractTradeUnit I_ACMMntnContrPrcgAspect ContractTradeUnit
ContractTradeQuantity I_ACMMntnContrPrcgAspect ContractTradeQuantity
ACMPrcgCndnFlatPrice
PricingConditionTerm PriceFixation ACMConditionTermNumber
ACMPrcgCndnTotalNonHedgePrice I_ACMMntnContrPrcgAspect ACMPrcgCndnFlatPrice
ACMPrcgCndnBasisPrcasACMPrcgCndnBasisPrc
MaturityKeyDateendasMaturityKeyDate
DerivativeContractMaturityCode
CommodityProductSymbol PriceFixation CommodityProductSymbol Product Symbol
CmmdtyMaturityMonthYear
UnitOfMeasure I_ACMMntnContrPrcgAspect ContractTradeUnit
Quantity I_ACMMntnContrPrcgAspect ContractTradeQuantity
ACMTrdgContrPrcgStatusText I_ACMMntnContrPrcgAspect ACMTrdgContrPrcgStatusText Short Description
TrdgContrPrcgAspectSrceLotID I_ACMMntnContrPrcgAspect TrdgContrPrcgAspectSrceLotID Short Description
ACMFormulaUoM PriceFixation ACMFormulaUoM
ACMPricingRate PriceFixation ACMPricingRate
ConditionTermUnit PriceFixation ConditionTermUnit
ACMIsOverfillPricingLot I_ACMMntnContrPrcgAspect ACMIsOverfillPricingLot
ACMPricingAspect I_ACMMntnContrPrcgAspect ACMPricingAspect

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_ACMTrdgContrPrcLotDet.
-- 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.

CREATE VIEW I_ACMTrdgContrPrcLotDet AS
SELECT
  Header.TradingContractNumber AS TradingContractNumber,
  Item.TradingContractItem AS TradingContractItem,
  Header.TradingContractType AS TradingContractType,
  Header.TradingContractTypeName AS TradingContractTypeName,
  Header.ContractStatus AS ContractStatus,
  Header.TrdgContrApplStsName AS TrdgContrApplStsName,
  Header.SalesOrganization AS SalesOrganization,
  Header.DistributionChannel AS DistributionChannel,
  Header.Division AS Division,
  Header.PurchasingOrganization AS PurchasingOrganization,
  Header.PurchasingGroup AS PurchasingGroup,
  Header.TradingContractExternalID AS TradingContractExternalID,
  Header.DocumentDate AS DocumentDate,
  Header.TradingContrCreatedOnDate AS TradingContrCreatedOnDate,
  Header.PersonResponsible AS PersonResponsible,
  Header.TradingContractCreatedBy AS TradingContractCreatedBy,
  Header.TradingContractChangedBy AS TradingContractChangedBy,
  Header.ACMPurgIncotermsPart1 AS ACMPurgIncotermsPart1,
  Header.ACMSlsIncotermsPart1 AS ACMSlsIncotermsPart1,
  Header.ACMTrdgContrStatusCategory AS ACMTrdgContrStatusCategory,
  Header.ACMContractStatusIsPosRelevant AS ACMContractStatusIsPosRelevant,
  Header.TrdgContrPurgIncotermsLoc1Text AS TrdgContrPurgIncotermsLoc1Text,
  Header.TrdgContrSlsIncotermsLoc1Text AS TrdgContrSlsIncotermsLoc1Text,
  Header.AlternatePaymentTerm AS AlternatePaymentTerm,
  Header.CompanyCode AS CompanyCode,
  Header.ACMYourReference AS ACMYourReference,
  Header.ACMCustomerReference AS ACMCustomerReference,
  Header.TrdgContrGoodsSupplier AS TrdgContrGoodsSupplier,
  Header.PurchaseOrderSupplier AS PurchaseOrderSupplier,
  Header.PricingDocument AS PricingDocument,
  Item.ContractPlant AS ContractPlant,
  ltrim( Item.ContractMaterial,'0' ) AS ContractMaterial,
  Item.ContractMaterial AS Material,
  Item.PricingApproach AS PricingApproach,
  case Item.Side when 'M' then Header.ACMPurgIncotermsPart1 else Header.ACMSlsIncotermsPart1 end as Incoterms AS ACMSlsIncotermsPart1endasIncoterms,
  Item.CmmdtyDealDetEffectiveFromDate AS CmmdtyDealDetEffectiveFromDate,
  Item.CmmdtyDealDetEffectiveToDate AS CmmdtyDealDetEffectiveToDate,
  Item.ACMPrcgIntendedPrcType AS ACMPrcgIntendedPrcType,
  Item.ACMPricingItemQuantity AS ACMPricingItemQuantity,
  Item.TrdgContractItemUnitOfMeasure AS TrdgContractItemUnitOfMeasure,
  Item.ValuationPoint AS ValuationPoint,
  Item.ACMPrcgCmmdtyOrdSubAccountID AS ACMPrcgCmmdtyOrdSubAccountID,
  Item.ACMTrdgContrSubAccountName AS ACMTrdgContrSubAccountName,
  PricingAspect.ContractTradeUnit AS ContractTradeUnit,
  PricingAspect.ContractTradeQuantity AS ContractTradeQuantity,
  PriceFixation.ACMConditionTermNumber AS PricingConditionTerm,
  PricingAspect.ACMPrcgCndnFlatPrice AS ACMPrcgCndnTotalNonHedgePrice,
  case PricingAspect.ACMPricingAspect when 'NONE' then PricingAspect.MaturityKeyDate else PriceFixation.MaturityKeyDate end as MaturityKeyDate AS MaturityKeyDateendasMaturityKeyDate,
  cast(PriceFixation.DerivativeContractMaturityCode as tba_contract_code ) AS DerivativeContractMaturityCode,
  PriceFixation.CommodityProductSymbol AS CommodityProductSymbol,
  cast( substring(PriceFixation.MaturityKeyDate, 1, 4) as cmmfdof_aif_maturity_mon_yr ) AS CmmdtyMaturityMonthYear,
  PricingAspect.ContractTradeUnit AS UnitOfMeasure,
  PricingAspect.ContractTradeQuantity AS Quantity,
  PricingAspect.ACMTrdgContrPrcgStatusText AS ACMTrdgContrPrcgStatusText,
  PricingAspect.TrdgContrPrcgAspectSrceLotID AS TrdgContrPrcgAspectSrceLotID,
  PriceFixation.ACMFormulaUoM AS ACMFormulaUoM,
  PriceFixation.ACMPricingRate AS ACMPricingRate,
  PriceFixation.ConditionTermUnit AS ConditionTermUnit,
  PricingAspect.ACMIsOverfillPricingLot AS ACMIsOverfillPricingLot,
  PricingAspect.ACMPricingAspect AS ACMPricingAspect
FROM I_ACMMntnContrPrcgAspect AS PricingAspect
INNER JOIN I_ACMTrdgContrItemForPrcgOvw AS Item ON /* join condition not captured in parsed metadata */
INNER JOIN I_ACMTrdgContrHdrForPrcgOvw AS Header ON /* join condition not captured in parsed metadata */
;