I_ACMTrdgContrBizDet

DDL: I_ACMTRDGCONTRBIZDET SQL: IACMCTRBUSDETS Type: view COMPOSITE

ACM Contract Business Details Approval

I_ACMTrdgContrBizDet is a Composite CDS View that provides data about "ACM Contract Business Details Approval" in SAP S/4HANA. It reads from 2 data sources (I_ACMContractBusiness, I_ACMTrdgContrShadowItemDets) and exposes 22 fields with key field TradingContractNumber. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ACMContractBusiness Business from
I_ACMTrdgContrShadowItemDets Shadow inner

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_IncotermsClassificationText _IncoDescmm _IncoDescmm.IncotermsClassification = Business.ACMPurgIncotermsPart1 and _IncoDescmm.Language = $session.system_language
[1..1] I_IncotermsClassificationText _IncoDescsd _IncoDescsd.IncotermsClassification = Business.ACMSlsIncotermsPart1 and _IncoDescsd.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IACMCTRBUSDETS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label ACM Contract Business Details Approval view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY TradingContractNumber I_ACMContractBusiness TradingContractNumber Trading Contract
PurchaseOrderSupplier I_ACMContractBusiness PurchaseOrderSupplier Supplier
PurchasingOrganization I_ACMContractBusiness PurchasingOrganization Purchasing Organization
PurchasingGroup I_ACMContractBusiness PurchasingGroup Purchasing Group
TradingContractCurrency I_ACMContractBusiness TradingContractCurrency Currency
TrdgContrSalesIncotermsVersion I_ACMContractBusiness TrdgContrSalesIncotermsVersion Inco. Version
TrdgContrSlsIncotermsLoc1Text I_ACMContractBusiness TrdgContrSlsIncotermsLoc1Text Inco. Location1
TrdgContrSlsIncotermsLoc2Text I_ACMContractBusiness TrdgContrSlsIncotermsLoc2Text Inco. Location2
TrdgContrPurgIncotermsVersion I_ACMContractBusiness TrdgContrPurgIncotermsVersion Inco. Version
TrdgContrPurgIncotermsLoc1Text I_ACMContractBusiness TrdgContrPurgIncotermsLoc1Text Inco. Location1
PricingDocument I_ACMContractBusiness PricingDocument Document Condition
ACMPurgIncotermsPart1 I_ACMContractBusiness ACMPurgIncotermsPart1 Incoterms Purch
ACMSlsIncotermsPart1 I_ACMContractBusiness ACMSlsIncotermsPart1 Incoterms Sales
TrdgContrPurgPaymentTerms I_ACMContractBusiness TrdgContrPurgPaymentTerms Terms of Payment
TrdgContrSalesPaymentTerms I_ACMContractBusiness TrdgContrSalesPaymentTerms PaytTermsSls
ACMSupplyingPlant I_ACMContractBusiness ACMSupplyingPlant Supplying Plant
ACMYourReference I_ACMContractBusiness ACMYourReference Your Reference
ACMCustomerReference I_ACMContractBusiness ACMCustomerReference PO Number
PurchasingOrganizationName PurchasingOrganizationName PurchasingOrganizationName Purch. Org. Name
PurchasingGroupName PurchasingGroupName PurchasingGroupName Purchasing Grp. Name
DocumentSide I_ACMTrdgContrShadowItemDets DocumentSide
ACMCustomerReferenceendasACMReferencePO

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_ACMTrdgContrBizDet.
-- 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: IACMCTRBUSDETS

CREATE VIEW I_ACMTrdgContrBizDet AS
SELECT
  Business.TradingContractNumber AS TradingContractNumber,
  Business.PurchaseOrderSupplier AS PurchaseOrderSupplier,
  Business.PurchasingOrganization AS PurchasingOrganization,
  Business.PurchasingGroup AS PurchasingGroup,
  Business.TradingContractCurrency AS TradingContractCurrency,
  Business.TrdgContrSalesIncotermsVersion AS TrdgContrSalesIncotermsVersion,
  Business.TrdgContrSlsIncotermsLoc1Text AS TrdgContrSlsIncotermsLoc1Text,
  Business.TrdgContrSlsIncotermsLoc2Text AS TrdgContrSlsIncotermsLoc2Text,
  Business.TrdgContrPurgIncotermsVersion AS TrdgContrPurgIncotermsVersion,
  Business.TrdgContrPurgIncotermsLoc1Text AS TrdgContrPurgIncotermsLoc1Text,
  Business.PricingDocument AS PricingDocument,
  Business.ACMPurgIncotermsPart1 AS ACMPurgIncotermsPart1,
  Business.ACMSlsIncotermsPart1 AS ACMSlsIncotermsPart1,
  Business.TrdgContrPurgPaymentTerms AS TrdgContrPurgPaymentTerms,
  Business.TrdgContrSalesPaymentTerms AS TrdgContrSalesPaymentTerms,
  Business.ACMSupplyingPlant AS ACMSupplyingPlant,
  Business.ACMYourReference AS ACMYourReference,
  Business.ACMCustomerReference AS ACMCustomerReference,
  PurchasingOrganizationName.PurchasingOrganizationName AS PurchasingOrganizationName,
  PurchasingGroupName.PurchasingGroupName AS PurchasingGroupName,
  Shadow.DocumentSide AS DocumentSide,
  case Shadow.DocumentSide when 'M' then Business.ACMYourReference else Business.ACMCustomerReference end as ACMReferencePO AS ACMCustomerReferenceendasACMReferencePO
FROM I_ACMContractBusiness AS Business
INNER JOIN I_ACMTrdgContrShadowItemDets AS Shadow ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_IncotermsClassificationText AS _IncoDescmm ON _IncoDescmm.IncotermsClassification = Business.ACMPurgIncotermsPart1 AND _IncoDescmm.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_IncotermsClassificationText AS _IncoDescsd ON _IncoDescsd.IncotermsClassification = Business.ACMSlsIncotermsPart1 AND _IncoDescsd.Language = $session.system_language  -- association [1..1]
;