C_ACMMntnContractSnapshot
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ACMContrSnpshtHeadItmDet | ContractSnapshot | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |
| TrdgContrReltdSide | ContractOvw | Side | Side | |
| CreationDescription | 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 | |
| ACMSystemTimeZoneToDate | _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 | |
| TripEvtActualStartDate | _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 TrdgContrReltdSide,
ContractOvw.DocumentSide AS CreationDescription,
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 ACMSystemTimeZoneToDate,
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 TripEvtActualStartDate,
_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]
;
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