C_ACMContractSnapshot

DDL: C_ACMCONTRACTSNAPSHOT SQL: CACMCNTRCTSNP Type: view CONSUMPTION

ACM Trading Contract Snapshot

C_ACMContractSnapshot is a Consumption CDS View that provides data about "ACM Trading Contract Snapshot" in SAP S/4HANA. It reads from 1 data source (C_ACMMntnContractSnapshot) and exposes 93 fields with key fields TradingContractNumber, TrdgContrSnpshtCrtedOnDateTime, ACMTrdgContrSnpshtLevel, ACMContractSnpshtID. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
C_ACMMntnContractSnapshot ContractSnapshot from

Associations (9)

CardinalityTargetAliasCondition
[0..1] C_ACMSnapshotProcessingStsVH _OutputProcessingStatus $projection.ACMTrdgContrOutpProcgStsVal = _OutputProcessingStatus.ACMSnpshtOutputProcStatus
[0..1] C_SnapshotSignatureStatusVH _SignatureStatus $projection.ACMSignatureStatus = _SignatureStatus.ACMSignatureStatus
[1..1] C_ContractApplicationStatusVH _ContractApplicationStatus $projection.ContractApplicationStatus = _ContractApplicationStatus.ContractApplicationStatus
[0..1] P_TradingContractCounterparty _CounterParty $projection.Counterparty = _CounterParty.Counterparty
[0..1] I_ACMCompanyCodeStdVH _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] P_TradingContractCounterparty _TransCounterparty $projection.TransactingCtpty = _TransCounterparty.Counterparty
[0..1] I_ACMContractSnapshotNote _note $projection.ACMSnpshtDocumentID = _note.ACMSnapshotID
[0..1] I_CreditSaleValueHelp _CreditSale $projection.TradingContractCreditSales = _CreditSale.ACMDomainValue
[0..1] I_VehicleContractValueHelp _signedStatus $projection.ACMSignedStatus = _signedStatus.DomainValue

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CACMCNTRCTSNP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
Search.searchable true view
EndUserText.label ACM Trading Contract Snapshot 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

Fields (93)

KeyFieldSource TableSource FieldDescription
KEY TradingContractNumber ACMSnpshtDocumentID
KEY TrdgContrSnpshtCrtedOnDateTime ACMContractSnpshtDateTime
KEY ACMTrdgContrSnpshtLevel ACMSnapshotLevel
KEY ACMContractSnpshtID ACMContractSnpshtID
TradingContractItem TradingContractItem Item Number
ACMSnpshtDocumentID ACMSnpshtDocumentID
TradingContractExternalID TradingContractExternalID
ContractNum ContractNum
ACMContractSnpshtDateTime ACMContractSnpshtDateTime
ACMSnapshotLevel ACMSnapshotLevel
ACMSnapshotID ACMContractSnpshtID
ContractApplicationStatus ContractApplicationStatus Paper Contr Status
ContractSide ContractSide Side
ContractDocumentSide ContractDocumentSide
ACMContractApplStatusTxt _ContractApplicationStatus ACMContractApplStatusTxt
Counterparty Counterparty Supplier
ACMTrdgContrCtptyFullName _CounterParty CustomerName Name of Customer
ACMCounterpartyFullName _CounterParty CounterpartyFullName
ACMCounterpartyFirstName _CounterParty ACMCounterpartyFirstName
ACMCounterpartyLastName _CounterParty ACMCounterpartyLastName
IsBusinessPurposeCompleted _CounterParty IsBusinessPurposeCompleted Purpose Completed
AuthorizationGroup _CounterParty AuthorizationGroup AuthorizGroup
TransactingCtpty TransactingCtpty
ACMTrdgContrTransCtptyDesc _TransCounterparty CounterpartyFullName
ACMTransCounterpartyFirstName _TransCounterparty ACMCounterpartyFirstName
ACMTransCounterpartyLastName _TransCounterparty ACMCounterpartyLastName
ACMTransCounterpartyFullName _TransCounterparty CounterpartyFullName
ACMTrdgContrOutpProcgStsVal ACMSnpshtOutputProcStatus
ACMTrdgContrOutpProcgStsDesc _OutputProcessingStatus ProcessingStatusDesc
ACMTrdgContrIsSnpshtSgntrRlvt ACMTrdgContrIsSnpshtSgntrRlvt
ACMRelevantForSignatureTxt ACMRelevantForSignatureTxt
ACMSignatureStatus ACMSignatureStatus
ACMTrdgContrSgntrStsText _SignatureStatus ACMTrdgContrSgntrStsText
ACMTradingContractType ACMTradingContractType
ACMSignedStatus ACMSignedStatus Signed Status
ACMTargetTrdgContrType ACMTargetTrdgContrType Target Contract Type
ACMTargetTrdgContrTypeName ACMTargetTrdgContrTypeName
ACMTrdgContrQuotesValidDate ACMTrdgContrQuotesValidDate Valid Till Date
ACMVehContrIndVal ACMVehContrIndVal Vehicle Contract
TradingContractCreditSales TradingContractCreditSales
ACMCreditSaleText _CreditSale HCMDomainValueText
ACMTrdgContrSnpshtPrpsDesc ACMTrdgContrSnpshtPrpsDesc
ACMSnapshotFieldName ACMSnapshotFieldName
ACMSnapshotFieldNameDesc ACMSnapshotFieldNameDesc
ACMTrdgContrSnapshotFieldValue ACMTrdgContrSnapshotFieldValue
ACMTrdgContrSnpshtFldAddlVal ACMTrdgContrSnpshtFldAddlVal
ACMTrdgContrSnpshtFldValDesc ACMTrdgContrSnpshtFldValDesc
ACMTrdgContrTypeDesc ACMTrdgContrTypeDesc
ACMSnpshtCreatedByID ACMSnpshtCreatedByID
ACMSnpshtCreatedByName ACMSnpshtCreatedByName
ACMSnpshtChangedByID ACMSnpshtChangedByID User Name
ACMSnpshtLastChangedOnDate ACMSnpshtLastChangedOnDate
ACMSnpshtChangedByName ACMSnpshtChangedByName Changed By
TradingContrCreatedOnDate TradingContrCreatedOnDate
DocumentDate DocumentDate Journal Entry Date
TradingContractCurrency TradingContractCurrency
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CompanyCode CompanyCodeName Company Name
SalesOrganization SalesOrganization Sales Organization
SalesOrganizationName SalesOrganizationName Sales Organization Description
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
DistributionChannelName DistributionChannelName
Division Division Internal Division ID
ACMDivisionName ACMDivisionName
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName PurchasingOrganizationName Purch. Org. Name
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName PurchasingGroupName Purchasing Grp. Name
TrdgContrPurgIncotermsLoc1Text TrdgContrPurgIncotermsLoc1Text
TrdgContrSlsIncotermsLoc1Text TrdgContrSlsIncotermsLoc1Text
ACMTrdgContrSnpshtLevelDesc ACMSnapshotLevelTxt
Material Material Vehicle Model
MaterialName MaterialDesc
Commodity Commodity Commodity Code
CommodityName CommodityName
Plant Plant Valuation Area
PlantName PlantName Plant Name
ActualStartDateFrom ActualStartDateFrom
ActualStartDateTo ActualStartDateTo
ACMSnapshotFieldIsEditable
ACMTrdgContrSnpshtFldIsAuthzd
ACMTrdgContrSnapshotNoteText
ACMTrdgContrSnpshtNoteLongTxt _note ACMTrdgContrSnapshotNoteText
ACMTrdgContrSnpshtCndnTotalVal
ACMCustomerReference ACMCustomerReference
ACMYourReference ACMYourReference
Incoterms Incoterms Incoterms
IncotermsClassificationName IncotermsClassificationName Incoterms Classification Description
IncotermsLocation1 IncotermsLocation1 Incoterm Location
PersonResponsible PersonResponsible Person Responsible
PersonResponsibleName PersonResponsibleName Person Resp.
_OutputProcessingStatus _OutputProcessingStatus
_SignatureStatus _SignatureStatus

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_ACMContractSnapshot.
-- 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: CACMCNTRCTSNP

CREATE VIEW C_ACMContractSnapshot AS
SELECT
  ACMSnpshtDocumentID AS TradingContractNumber,
  ACMContractSnpshtDateTime AS TrdgContrSnpshtCrtedOnDateTime,
  ACMSnapshotLevel AS ACMTrdgContrSnpshtLevel,
  ACMContractSnpshtID,
  TradingContractItem,
  ACMSnpshtDocumentID,
  TradingContractExternalID,
  ContractNum,
  ACMContractSnpshtDateTime,
  ACMSnapshotLevel,
  ACMContractSnpshtID AS ACMSnapshotID,
  ContractApplicationStatus,
  ContractSide,
  ContractDocumentSide,
  _ContractApplicationStatus.ACMContractApplStatusTxt AS ACMContractApplStatusTxt,
  Counterparty,
  _CounterParty.CustomerName AS ACMTrdgContrCtptyFullName,
  _CounterParty.CounterpartyFullName AS ACMCounterpartyFullName,
  _CounterParty.ACMCounterpartyFirstName AS ACMCounterpartyFirstName,
  _CounterParty.ACMCounterpartyLastName AS ACMCounterpartyLastName,
  _CounterParty.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  _CounterParty.AuthorizationGroup AS AuthorizationGroup,
  TransactingCtpty,
  _TransCounterparty.CounterpartyFullName AS ACMTrdgContrTransCtptyDesc,
  _TransCounterparty.ACMCounterpartyFirstName AS ACMTransCounterpartyFirstName,
  _TransCounterparty.ACMCounterpartyLastName AS ACMTransCounterpartyLastName,
  _TransCounterparty.CounterpartyFullName AS ACMTransCounterpartyFullName,
  ACMSnpshtOutputProcStatus AS ACMTrdgContrOutpProcgStsVal,
  _OutputProcessingStatus.ProcessingStatusDesc AS ACMTrdgContrOutpProcgStsDesc,
  ACMTrdgContrIsSnpshtSgntrRlvt,
  ACMRelevantForSignatureTxt,
  ACMSignatureStatus,
  _SignatureStatus.ACMTrdgContrSgntrStsText AS ACMTrdgContrSgntrStsText,
  ACMTradingContractType,
  ACMSignedStatus,
  ACMTargetTrdgContrType,
  ACMTargetTrdgContrTypeName,
  ACMTrdgContrQuotesValidDate,
  ACMVehContrIndVal,
  TradingContractCreditSales,
  _CreditSale.HCMDomainValueText AS ACMCreditSaleText,
  ACMTrdgContrSnpshtPrpsDesc,
  ACMSnapshotFieldName,
  ACMSnapshotFieldNameDesc,
  ACMTrdgContrSnapshotFieldValue,
  ACMTrdgContrSnpshtFldAddlVal,
  ACMTrdgContrSnpshtFldValDesc,
  ACMTrdgContrTypeDesc,
  ACMSnpshtCreatedByID,
  ACMSnpshtCreatedByName,
  ACMSnpshtChangedByID,
  ACMSnpshtLastChangedOnDate,
  ACMSnpshtChangedByName,
  TradingContrCreatedOnDate,
  DocumentDate,
  TradingContractCurrency,
  CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  SalesOrganization,
  SalesOrganizationName,
  DistributionChannel,
  DistributionChannelName,
  Division,
  ACMDivisionName,
  PurchasingOrganization,
  PurchasingOrganizationName,
  PurchasingGroup,
  PurchasingGroupName,
  TrdgContrPurgIncotermsLoc1Text,
  TrdgContrSlsIncotermsLoc1Text,
  ACMSnapshotLevelTxt AS ACMTrdgContrSnpshtLevelDesc,
  Material,
  MaterialDesc AS MaterialName,
  Commodity,
  CommodityName,
  Plant,
  PlantName,
  ActualStartDateFrom,
  ActualStartDateTo,
  cast( ' ' as /accgo/e_snpshot_edit_ind ) AS ACMSnapshotFieldIsEditable,
  cast( ' ' as /accgo/e_snpshot_edit_ind ) AS ACMTrdgContrSnpshtFldIsAuthzd,
  cast( ' ' as /accgo/e_snapshot_note ) AS ACMTrdgContrSnapshotNoteText,
  _note.ACMTrdgContrSnapshotNoteText AS ACMTrdgContrSnpshtNoteLongTxt,
  cast(1 as abap.int4) AS ACMTrdgContrSnpshtCndnTotalVal,
  ACMCustomerReference,
  ACMYourReference,
  Incoterms,
  IncotermsClassificationName,
  IncotermsLocation1,
  PersonResponsible,
  PersonResponsibleName
FROM C_ACMMntnContractSnapshot AS ContractSnapshot
LEFT OUTER JOIN C_ACMSnapshotProcessingStsVH AS _OutputProcessingStatus ON ACMTrdgContrOutpProcgStsVal = _OutputProcessingStatus.ACMSnpshtOutputProcStatus  -- association [0..1]
LEFT OUTER JOIN C_SnapshotSignatureStatusVH AS _SignatureStatus ON ACMSignatureStatus = _SignatureStatus.ACMSignatureStatus  -- association [0..1]
LEFT OUTER JOIN C_ContractApplicationStatusVH AS _ContractApplicationStatus ON ContractApplicationStatus = _ContractApplicationStatus.ContractApplicationStatus  -- association [1..1]
LEFT OUTER JOIN P_TradingContractCounterparty AS _CounterParty ON Counterparty = _CounterParty.Counterparty  -- association [0..1]
LEFT OUTER JOIN I_ACMCompanyCodeStdVH AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN P_TradingContractCounterparty AS _TransCounterparty ON TransactingCtpty = _TransCounterparty.Counterparty  -- association [0..1]
LEFT OUTER JOIN I_ACMContractSnapshotNote AS _note ON ACMSnpshtDocumentID = _note.ACMSnapshotID  -- association [0..1]
LEFT OUTER JOIN I_CreditSaleValueHelp AS _CreditSale ON TradingContractCreditSales = _CreditSale.ACMDomainValue  -- association [0..1]
LEFT OUTER JOIN I_VehicleContractValueHelp AS _signedStatus ON ACMSignedStatus = _signedStatus.DomainValue  -- association [0..1]
;