P_ACMContractBusinessDets

DDL: P_ACMCONTRACTBUSINESSDETS SQL: PACMCTRBUSNDET Type: view BASIC

ACM Contract Business details

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

Data Sources (2)

SourceAliasJoin Type
P_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 (11)

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

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY TradingContractNumber P_ACMContractBusiness TradingContractNumber Trading Contract
PurchaseOrderSupplier P_ACMContractBusiness PurchaseOrderSupplier Supplier
PurchasingOrganization P_ACMContractBusiness PurchasingOrganization Purchasing Organization
PurchasingGroup P_ACMContractBusiness PurchasingGroup Purchasing Group
TradingContractCurrency P_ACMContractBusiness TradingContractCurrency Currency
TrdgContrSalesIncotermsVersion P_ACMContractBusiness TrdgContrSalesIncotermsVersion Inco. Version
TrdgContrSlsIncotermsLoc1Text P_ACMContractBusiness TrdgContrSlsIncotermsLoc1Text Inco. Location1
TrdgContrSlsIncotermsLoc2Text P_ACMContractBusiness TrdgContrSlsIncotermsLoc2Text Inco. Location2
TrdgContrPurgIncotermsVersion P_ACMContractBusiness TrdgContrPurgIncotermsVersion Inco. Version
TrdgContrPurgIncotermsLoc1Text P_ACMContractBusiness TrdgContrPurgIncotermsLoc1Text Inco. Location1
PricingDocument P_ACMContractBusiness PricingDocument Document Condition
ACMPurgIncotermsPart1 P_ACMContractBusiness ACMPurgIncotermsPart1 Incoterms Purch
ACMSlsIncotermsPart1 P_ACMContractBusiness ACMSlsIncotermsPart1 Incoterms Sales
TrdgContrPurgPaymentTerms P_ACMContractBusiness TrdgContrPurgPaymentTerms Terms of Payment
TrdgContrSalesPaymentTerms P_ACMContractBusiness TrdgContrSalesPaymentTerms PaytTermsSls
ACMSupplyingPlant P_ACMContractBusiness ACMSupplyingPlant Supplying Plant
ACMYourReference P_ACMContractBusiness ACMYourReference Your Reference
ACMCustomerReference P_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 P_ACMContractBusinessDets.
-- 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: PACMCTRBUSNDET

CREATE VIEW P_ACMContractBusinessDets 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 P_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]
;