C_ACMMntnContractSnapshot

DDL: C_ACMMNTNCONTRACTSNAPSHOT SQL: CACMCNTRCTSNAP Type: view CONSUMPTION

Trading Contract Snapshot Details

C_ACMMntnContractSnapshot is a Consumption CDS View that provides data about "Trading Contract Snapshot Details" in SAP S/4HANA. It reads from 1 data source (I_ACMContrSnpshtHeadItmDet) and exposes 67 fields with key fields ACMSnpshtDocumentID, ACMContractSnpshtID, ACMContractSnpshtDateTime, ACMSnapshotLevel. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ACMContrSnpshtHeadItmDet ContractSnapshot from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_ACMContractSnapshotAddlDet _ContractSnapshotAdd _ContractSnapshotAdd.ACMSnpshtDocumentID = ContractSnapshot.ContractNum and ( _ContractSnapshotAdd.TradingContractItem = ContractSnapshot.TradingContractItem or _ContractSnapshotAdd.TradingContractItem = '000000' ) and _ContractSnapshotAdd.TrdgContrSnpshtCrtedOnDateTime = ContractSnapshot.ACMContractSnpshtDateTime
[1..1] P_ACMTradingContractOverview ContractOvw ContractOvw.TradingContractNumber = ContractSnapshot.ContractNum --ACMSnapshotID
[1..*] I_TradingContractItemOverview _ItemOverview ContractSnapshot.ContractNum = _ItemOverview.TradingContractNumber
[1..*] I_ACMTrdgContractPartnerDets _TrdgContrHdrPartDetails ContractSnapshot.ContractNum = _TrdgContrHdrPartDetails.TradingContractNumber and _TrdgContrHdrPartDetails.TradingContractItem = '000000' and ( _TrdgContrHdrPartDetails.PartnerFunction = 'A4' or _TrdgContrHdrPartDetails.PartnerFunction = 'A3' )
[0..1] I_ContractSnapshotHeaderLevel _SnapshotHeader ContractSnapshot.ACMSnpshtDocumentID = _SnapshotHeader.ACMSnapshotID and ContractSnapshot.ACMContractSnpshtDateTime = _SnapshotHeader.ACMContractSnpshtDateTime
[0..1] I_ContractSnapshotItemLevel _SnapshotItem ContractSnapshot.ACMSnpshtDocumentID = _SnapshotItem.ACMSnapshotID and ContractSnapshot.ACMContractSnpshtDateTime = _SnapshotItem.ACMContractSnpshtDateTime and ContractSnapshot.TradingContractItem = _SnapshotItem.TradingContractItem

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CACMCNTRCTSNAP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
Search.searchable true view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
EndUserText.label Trading Contract Snapshot Details view

Fields (67)

KeyFieldSource TableSource FieldDescription
KEY ACMSnpshtDocumentID I_ACMContrSnpshtHeadItmDet ACMSnpshtDocumentID
KEY ACMContractSnpshtID ACMContractSnpshtID
KEY ACMContractSnpshtDateTime ACMContractSnpshtDateTime
KEY ACMSnapshotLevel ACMSnapshotLevel
TradingContractItem I_ACMContrSnpshtHeadItmDet TradingContractItem Item Number
TradingContractExternalID TradingContractExternalID
ContractNum
ACMSnpshtOutputProcStatus ACMSnpshtOutputProcStatus
ACMTrdgContrIsSnpshtSgntrRlvt ACMTrdgContrIsSnpshtSgntrRlvt
ACMSignatureStatus ACMSignatureStatus
ACMSnapshotLevelTxt ACMSnapshotLevelTxt
ACMRelevantForSignatureTxt ACMRelevantForSignatureTxt
ACMSnapshotFieldName _ContractSnapshotAdd ACMSnapshotFieldName
ACMSnapshotFieldNameDesc _ContractSnapshotAdd ACMSnapshotFieldNameDesc
ACMTrdgContrSnapshotFieldValue _ContractSnapshotAdd ACMTrdgContrSnapshotFieldValue
ACMTrdgContrSnpshtFldAddlVal _ContractSnapshotAdd ACMTrdgContrSnpshtFldAddlVal
ACMTrdgContrSnpshtFldValDesc _ContractSnapshotAdd ACMTrdgContrSnpshtFldValDesc
ACMTrdgContrSnpshtPrpsDesc _ContractSnapshotAdd ACMTrdgContrSnpshtPrpsDesc
Counterparty ContractOvw Counterparty Supplier
ContractApplicationStatus ContractOvw ContractStatus Paper Contr Status
ContractSide ContractOvw Side Side
ContractDocumentSide ContractOvw DocumentSide
ACMTradingContractType ContractOvw TradingContractType
ACMTrdgContrTypeDesc ContractOvw TradingContractTypeName
ACMSnpshtCreatedByID ContractOvw TradingContractCreatedBy
ACMSnpshtCreatedByName ContractOvw TradingContractCreatedByName
ACMVehContrIndVal ContractOvw ACMVehContrIndVal
ACMSnpshtChangedByID _SnapshotHeader ChangedBy User Name
ACMSnpshtChangedByName _SnapshotHeader ChangedByName Changed By
ACMSnpshtLastChangedOnDate _SnapshotHeader ACMSystemTimeZoneToDate
TradingContrCreatedOnDate ContractOvw TradingContrCreatedOnDate
DocumentDate ContractOvw DocumentDate Journal Entry Date
TradingContractCurrency ContractOvw TradingContractCurrency
SalesOrganization ContractOvw SalesOrganization Sales Organization
SalesOrganizationName ContractOvw SalesOrgDescr
DistributionChannel ContractOvw DistributionChannel RefDistCh-Cust/Mat.
DistributionChannelName ContractOvw DistributionChannelDescr
Division ContractOvw Division Internal Division ID
ACMDivisionName ContractOvw SalesDivisionDescr
PurchasingOrganization ContractOvw PurchasingOrganization Purchasing Organization
PurchasingOrganizationName ContractOvw ekotx Description
PurchasingGroup ContractOvw PurchasingGroup Purchasing Group
PurchasingGroupName ContractOvw eknam Description
CompanyCode ContractOvw CompanyCode Receiver Company Code
TradingContractCreditSales ContractOvw TradingContractCreditSales
ACMSignedStatus ContractOvw ACMSignedStatus
ACMTargetTrdgContrType ContractOvw ACMTargetTrdgContrType
ACMTargetTrdgContrTypeName ContractOvw ACMTargetTrdgContrTypeName
ACMTrdgContrQuotesValidDate ContractOvw ACMTrdgContrQuotesValidDate
TrdgContrPurgIncotermsLoc1Text ContractOvw TrdgContrPurgIncotermsLoc1Text
TrdgContrSlsIncotermsLoc1Text ContractOvw TrdgContrSlsIncotermsLoc1Text
TransactingCtpty _TrdgContrHdrPartDetails TransactingCtpty
MaterialDesc _ItemOverview MaterialDesc
Material _ItemOverview ContractMaterial
Commodity _ItemOverview ContractCommodityItem
CommodityName _ItemOverview CommodityName
Plant _ItemOverview ContractPlant
PlantName _ItemOverview PlantName Plant Name
ActualStartDateFrom _ItemOverview ActualStartDateFrom
ActualStartDateTo _ItemOverview ActualStartDateTo
Incoterms ContractOvw Incoterms Incoterms
IncotermsClassificationName ContractOvw IncotermsClassificationName Incoterms Classification Description
IncotermsLocation1 ContractOvw IncotermsLocation1 Inco. Location1
ACMYourReference ContractOvw ACMYourReference
ACMCustomerReference ContractOvw ACMCustomerReference
PersonResponsible ContractOvw PersonResponsible Person Responsible
PersonResponsibleName ContractOvw PersonResponsibleName Person Resp.

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 C_ACMMntnContractSnapshot.
-- 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: CACMCNTRCTSNAP

CREATE VIEW C_ACMMntnContractSnapshot AS
SELECT
  ContractSnapshot.ACMSnpshtDocumentID AS ACMSnpshtDocumentID,
  ACMContractSnpshtID,
  ACMContractSnpshtDateTime,
  ACMSnapshotLevel,
  ContractSnapshot.TradingContractItem AS TradingContractItem,
  TradingContractExternalID,
  cast(ContractNum as tkonn ) AS ContractNum,
  ACMSnpshtOutputProcStatus,
  ACMTrdgContrIsSnpshtSgntrRlvt,
  ACMSignatureStatus,
  ACMSnapshotLevelTxt,
  ACMRelevantForSignatureTxt,
  _ContractSnapshotAdd.ACMSnapshotFieldName AS ACMSnapshotFieldName,
  _ContractSnapshotAdd.ACMSnapshotFieldNameDesc AS ACMSnapshotFieldNameDesc,
  _ContractSnapshotAdd.ACMTrdgContrSnapshotFieldValue AS ACMTrdgContrSnapshotFieldValue,
  _ContractSnapshotAdd.ACMTrdgContrSnpshtFldAddlVal AS ACMTrdgContrSnpshtFldAddlVal,
  _ContractSnapshotAdd.ACMTrdgContrSnpshtFldValDesc AS ACMTrdgContrSnpshtFldValDesc,
  _ContractSnapshotAdd.ACMTrdgContrSnpshtPrpsDesc AS ACMTrdgContrSnpshtPrpsDesc,
  ContractOvw.Counterparty AS Counterparty,
  ContractOvw.ContractStatus AS ContractApplicationStatus,
  ContractOvw.Side AS ContractSide,
  ContractOvw.DocumentSide AS ContractDocumentSide,
  ContractOvw.TradingContractType AS ACMTradingContractType,
  ContractOvw.TradingContractTypeName AS ACMTrdgContrTypeDesc,
  ContractOvw.TradingContractCreatedBy AS ACMSnpshtCreatedByID,
  ContractOvw.TradingContractCreatedByName AS ACMSnpshtCreatedByName,
  ContractOvw.ACMVehContrIndVal AS ACMVehContrIndVal,
  _SnapshotHeader.ChangedBy AS ACMSnpshtChangedByID,
  _SnapshotHeader.ChangedByName AS ACMSnpshtChangedByName,
  _SnapshotHeader.ACMSystemTimeZoneToDate AS ACMSnpshtLastChangedOnDate,
  ContractOvw.TradingContrCreatedOnDate AS TradingContrCreatedOnDate,
  ContractOvw.DocumentDate AS DocumentDate,
  ContractOvw.TradingContractCurrency AS TradingContractCurrency,
  ContractOvw.SalesOrganization AS SalesOrganization,
  ContractOvw.SalesOrgDescr AS SalesOrganizationName,
  ContractOvw.DistributionChannel AS DistributionChannel,
  ContractOvw.DistributionChannelDescr AS DistributionChannelName,
  ContractOvw.Division AS Division,
  ContractOvw.SalesDivisionDescr AS ACMDivisionName,
  ContractOvw.PurchasingOrganization AS PurchasingOrganization,
  ContractOvw.ekotx AS PurchasingOrganizationName,
  ContractOvw.PurchasingGroup AS PurchasingGroup,
  ContractOvw.eknam AS PurchasingGroupName,
  ContractOvw.CompanyCode AS CompanyCode,
  ContractOvw.TradingContractCreditSales AS TradingContractCreditSales,
  ContractOvw.ACMSignedStatus AS ACMSignedStatus,
  ContractOvw.ACMTargetTrdgContrType AS ACMTargetTrdgContrType,
  ContractOvw.ACMTargetTrdgContrTypeName AS ACMTargetTrdgContrTypeName,
  ContractOvw.ACMTrdgContrQuotesValidDate AS ACMTrdgContrQuotesValidDate,
  ContractOvw.TrdgContrPurgIncotermsLoc1Text AS TrdgContrPurgIncotermsLoc1Text,
  ContractOvw.TrdgContrSlsIncotermsLoc1Text AS TrdgContrSlsIncotermsLoc1Text,
  _TrdgContrHdrPartDetails.TransactingCtpty AS TransactingCtpty,
  _ItemOverview.MaterialDesc AS MaterialDesc,
  _ItemOverview.ContractMaterial AS Material,
  _ItemOverview.ContractCommodityItem AS Commodity,
  _ItemOverview.CommodityName AS CommodityName,
  _ItemOverview.ContractPlant AS Plant,
  _ItemOverview.PlantName AS PlantName,
  _ItemOverview.ActualStartDateFrom AS ActualStartDateFrom,
  _ItemOverview.ActualStartDateTo AS ActualStartDateTo,
  ContractOvw.Incoterms AS Incoterms,
  ContractOvw.IncotermsClassificationName AS IncotermsClassificationName,
  ContractOvw.IncotermsLocation1 AS IncotermsLocation1,
  ContractOvw.ACMYourReference AS ACMYourReference,
  ContractOvw.ACMCustomerReference AS ACMCustomerReference,
  ContractOvw.PersonResponsible AS PersonResponsible,
  ContractOvw.PersonResponsibleName AS PersonResponsibleName
FROM I_ACMContrSnpshtHeadItmDet AS ContractSnapshot
LEFT OUTER JOIN I_ACMContractSnapshotAddlDet AS _ContractSnapshotAdd ON _ContractSnapshotAdd.ACMSnpshtDocumentID = ContractSnapshot.ContractNum AND ( _ContractSnapshotAdd.TradingContractItem = ContractSnapshot.TradingContractItem OR _ContractSnapshotAdd.TradingContractItem = '000000' ) AND _ContractSnapshotAdd.TrdgContrSnpshtCrtedOnDateTime = ContractSnapshot.ACMContractSnpshtDateTime  -- association [0..*]
LEFT OUTER JOIN P_ACMTradingContractOverview AS ContractOvw ON ContractOvw.TradingContractNumber = ContractSnapshot.ContractNum  -- association [1..1]
LEFT OUTER JOIN I_TradingContractItemOverview AS _ItemOverview ON ContractSnapshot.ContractNum = _ItemOverview.TradingContractNumber  -- association [1..*]
LEFT OUTER JOIN I_ACMTrdgContractPartnerDets AS _TrdgContrHdrPartDetails ON ContractSnapshot.ContractNum = _TrdgContrHdrPartDetails.TradingContractNumber AND _TrdgContrHdrPartDetails.TradingContractItem = '000000' AND ( _TrdgContrHdrPartDetails.PartnerFunction = 'A4' OR _TrdgContrHdrPartDetails.PartnerFunction = 'A3' )  -- association [1..*]
LEFT OUTER JOIN I_ContractSnapshotHeaderLevel AS _SnapshotHeader ON ContractSnapshot.ACMSnpshtDocumentID = _SnapshotHeader.ACMSnapshotID AND ContractSnapshot.ACMContractSnpshtDateTime = _SnapshotHeader.ACMContractSnpshtDateTime  -- association [0..1]
LEFT OUTER JOIN I_ContractSnapshotItemLevel AS _SnapshotItem ON ContractSnapshot.ACMSnpshtDocumentID = _SnapshotItem.ACMSnapshotID AND ContractSnapshot.ACMContractSnpshtDateTime = _SnapshotItem.ACMContractSnpshtDateTime AND ContractSnapshot.TradingContractItem = _SnapshotItem.TradingContractItem  -- association [0..1]
;