I_ContractSnapshot

DDL: I_CONTRACTSNAPSHOT SQL: ICNTRCTSNP Type: view COMPOSITE

Interface Layer: Manage Snapshot Appl

I_ContractSnapshot is a Composite CDS View that provides data about "Interface Layer: Manage Snapshot Appl" in SAP S/4HANA. It reads from 2 data sources (I_ContractSnapshotItemLevel, I_ContractSnapshotItemLevel) and exposes 90 fields with key fields ACMSnpshtDocumentID, ACMContractSnpshtID, ACMContractSnpshtDateTime, ACMSnapshotLevel, ACMContractSnpshtID. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ContractSnapshotItemLevel SnapshotItem from
I_ContractSnapshotItemLevel SnapshotItem union

Associations (4)

CardinalityTargetAliasCondition
[1..1] P_TradingContractOverview ContractOvw ContractOvw.TradingContractNumber = SnapshotHeader.ACMSnapshotID
[1..*] I_TradingContractItemOverview _ItemOverview SnapshotHeader.ACMSnapshotID = _ItemOverview.TradingContractNumber --
[1..*] C_ACMTrdgContrHdrPartDetails _TrdgContrHdrPartDetails SnapshotHeader.ACMSnapshotID = _TrdgContrHdrPartDetails.TradingContractNumber
[1..1] P_TradingContractOverview _ContractOvw _ContractOvw.TradingContractNumber = SnapshotItem.ACMSnapshotID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ICNTRCTSNP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Interface Layer: Manage Snapshot Appl view
VDM.viewType #COMPOSITE view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (90)

KeyFieldSource TableSource FieldDescription
KEY ACMSnpshtDocumentID Snapshot ID
KEY ACMContractSnpshtID Snapshot ID
KEY ACMContractSnpshtDateTime ACMContractSnpshtDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
KEY ACMSnapshotLevel
TradingContractItem Item Number
TradingContractExternalID TradingContractExternalID
ContractNum ACMSnapshotID Snapshot ID
ChangedBy SnapshotHeader ChangedBy User Name
ChangedByName SnapshotHeader ChangedByName Changed By
ACMSnpshtOutputProcStatus ACMSnpshtOutputProcStatus Output Processing
ACMTrdgContrIsSnpshtSgntrRlvt ACMSignatureRelevant Rel for Signature
ACMSignatureStatus ACMSignatureStatus Signature Status
ACMSnapshotLevelTxt
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
ACMTradingContractType ContractOvw TradingContractType
ACMTrdgContrTypeDesc ContractOvw TradingContractTypeName
ACMSnpshtCreatedByID ContractOvw TradingContractCreatedBy
ACMSnpshtCreatedByName ContractOvw TradingContractCreatedByName
TradingContrCreatedOnDate ContractOvw DocumentDate Journal Entry Date
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
TrdgContrPurgIncotermsLoc1Text ContractOvw TrdgContrPurgIncotermsLoc1Text
TrdgContrSlsIncotermsLoc1Text ContractOvw TrdgContrSlsIncotermsLoc1Text
TransactingCtpty _TrdgContrHdrPartDetails TransactingCtpty
MaterialDesc _ItemOverview MaterialDesc
Material _ItemOverview ContractMaterial
Commodity _ItemOverview ContractCommodityItem
Plant _ItemOverview ContractPlant
PlantName _ItemOverview PlantName Plant Name
ACMYourReference ContractOvw ACMYourReference
KEY ACMContractSnpshtID Snapshot ID
KEY ACMContractSnpshtDateTime I_ContractSnapshotItemLevel ACMContractSnpshtDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
KEY ACMSnapshotLevel
TradingContractItem I_ContractSnapshotItemLevel TradingContractItem Item Number
TradingContractExternalID I_ContractSnapshotItemLevel TradingContractExternalID
ContractNum ACMSnapshotID Snapshot ID
ChangedBy I_ContractSnapshotItemLevel ChangedBy User Name
ChangedByName I_ContractSnapshotItemLevel ChangedByName Changed By
ACMSnpshtOutputProcStatus ACMSnpshtOutputProcStatus Output Processing
ACMTrdgContrIsSnpshtSgntrRlvt ACMSignatureRelevant Rel for Signature
ACMSignatureStatus ACMSignatureStatus Signature Status
ACMSnapshotLevelTxt
ACMSnapshotFieldName ContractSnapshotAddIt ACMSnapshotFieldName
ACMSnapshotFieldNameDesc ContractSnapshotAddIt ACMSnapshotFieldNameDesc
ACMTrdgContrSnapshotFieldValue ContractSnapshotAddIt ACMTrdgContrSnapshotFieldValue
ACMTrdgContrSnpshtFldAddlVal ContractSnapshotAddIt ACMTrdgContrSnpshtFldAddlVal
ACMTrdgContrSnpshtFldValDesc ContractSnapshotAddIt ACMTrdgContrSnpshtFldValDesc
ACMTrdgContrSnpshtPrpsDesc ContractSnapshotAddIt ACMTrdgContrSnpshtPrpsDesc
CounterParty _ContractOvw Counterparty Supplier
ContractApplicationStatus _ContractOvw ContractStatus Paper Contr Status
ACMTradingContractType _ContractOvw TradingContractType
ACMTrdgContrTypeDesc _ContractOvw TradingContractTypeName
ACMSnpshtCreatedByID _ContractOvw TradingContractCreatedBy
ACMSnpshtCreatedByName _ContractOvw TradingContractCreatedByName
TradingContrCreatedOnDate _ContractOvw DocumentDate Journal Entry Date
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
TrdgContrPurgIncotermsLoc1Text _ContractOvw TrdgContrPurgIncotermsLoc1Text
TrdgContrSlsIncotermsLoc1Text _ContractOvw TrdgContrSlsIncotermsLoc1Text
TransactingCtpty _TrdgContrHdrPartDetails TransactingCtpty
MaterialDesc _ItemOverview MaterialDesc
Material _ItemOverview ContractMaterial
Commodity _ItemOverview ContractCommodityItem
Plant _ItemOverview ContractPlant
PlantName _ItemOverview PlantName Plant Name
ACMYourReference _ContractOvw ACMYourReference
ACMCustomerReference _ContractOvw ACMCustomerReference

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_ContractSnapshot.
-- 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: ICNTRCTSNP

CREATE VIEW I_ContractSnapshot AS
SELECT
  cast( ACMSnapshotID as tkonn ) AS ACMSnpshtDocumentID,
  cast( ACMSnapshotID as tkonn ) AS ACMContractSnpshtID,
  ACMContractSnpshtDateTime,
  cast( 'H' as /accgo/e_cntrct_snp_level preserving type ) AS ACMSnapshotLevel,
  cast( '000000' as tposn ) AS TradingContractItem,
  TradingContractExternalID,
  ACMSnapshotID AS ContractNum,
  SnapshotHeader.ChangedBy AS ChangedBy,
  SnapshotHeader.ChangedByName AS ChangedByName,
  ACMSnpshtOutputProcStatus,
  ACMSignatureRelevant AS ACMTrdgContrIsSnpshtSgntrRlvt,
  ACMSignatureStatus,
  cast('Header' as /accgo/e_snapshot_lvl_txt ) AS ACMSnapshotLevelTxt,
  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.TradingContractType AS ACMTradingContractType,
  ContractOvw.TradingContractTypeName AS ACMTrdgContrTypeDesc,
  ContractOvw.TradingContractCreatedBy AS ACMSnpshtCreatedByID,
  ContractOvw.TradingContractCreatedByName AS ACMSnpshtCreatedByName,
  ContractOvw.DocumentDate AS TradingContrCreatedOnDate,
  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.TrdgContrPurgIncotermsLoc1Text AS TrdgContrPurgIncotermsLoc1Text,
  ContractOvw.TrdgContrSlsIncotermsLoc1Text AS TrdgContrSlsIncotermsLoc1Text,
  _TrdgContrHdrPartDetails.TransactingCtpty AS TransactingCtpty,
  _ItemOverview.MaterialDesc AS MaterialDesc,
  _ItemOverview.ContractMaterial AS Material,
  _ItemOverview.ContractCommodityItem AS Commodity,
  _ItemOverview.ContractPlant AS Plant,
  _ItemOverview.PlantName AS PlantName,
  ContractOvw.ACMYourReference AS ACMYourReference,
  _ContractOvw.ACMCustomerReference AS ACMCustomerReference
FROM I_ContractSnapshotItemLevel AS SnapshotItem
LEFT OUTER JOIN P_TradingContractOverview AS ContractOvw ON ContractOvw.TradingContractNumber = SnapshotHeader.ACMSnapshotID  -- association [1..1]
LEFT OUTER JOIN I_TradingContractItemOverview AS _ItemOverview ON SnapshotHeader.ACMSnapshotID = _ItemOverview.TradingContractNumber  -- association [1..*]
LEFT OUTER JOIN C_ACMTrdgContrHdrPartDetails AS _TrdgContrHdrPartDetails ON SnapshotHeader.ACMSnapshotID = _TrdgContrHdrPartDetails.TradingContractNumber  -- association [1..*]
LEFT OUTER JOIN P_TradingContractOverview AS _ContractOvw ON _ContractOvw.TradingContractNumber = SnapshotItem.ACMSnapshotID  -- association [1..1]
-- UNION with additional select branch(es): I_ContractSnapshotItemLevel
;