I_ACMTrdgContrBusForMntnContr

DDL: I_ACMTRDGCONTRBUSFORMNTNCONTR SQL: IACMTCBUSMNTNAPP Type: view BASIC

Trading Contract Business Details for Maintain Contract App

I_ACMTrdgContrBusForMntnContr is a Basic CDS View that provides data about "Trading Contract Business Details for Maintain Contract App" in SAP S/4HANA. It reads from 2 data sources (P_ContSubItem, I_ACMTrdgContrShadowItemDets) and exposes 20 fields with key field TradingContractNumber.

Data Sources (2)

SourceAliasJoin Type
P_ContSubItem Business from
I_ACMTrdgContrShadowItemDets Shadow inner

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IACMTCBUSMNTNAPP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Trading Contract Business Details for Maintain Contract App view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY TradingContractNumber P_ContSubItem TKONN Trading Contract
PurchaseOrderSupplier P_ContSubItem ELIFN Supplier
PaymentTerms P_ContSubItem ZTERM Terms of Payment
PurchasingOrganization P_ContSubItem EKORG Purchasing Org.
PurchasingGroup P_ContSubItem EKGRP Sub. purchasing grp
TradingContractCurrency P_ContSubItem WAERS_PURCH Currency
TrdgContrSalesIncotermsVersion P_ContSubItem INCOV_SD Inco. Version
TrdgContrSlsIncotermsLoc1Text P_ContSubItem INCO2_L_SD Inco. Location1
TrdgContrSlsIncotermsLoc2Text P_ContSubItem INCO3_L_SD Inco. Location2
TrdgContrPurgIncotermsVersion P_ContSubItem INCOV_MM Inco. Version
TrdgContrPurgIncotermsLoc1Text P_ContSubItem INCO2_L_MM Inco. Location1
PricingDocument P_ContSubItem KNUMV_MM Doc. Condition
ACMYourReference P_ContSubItem IHREZ Your Reference
ACMCustomerReference P_ContSubItem BSTKD PO Number
TrdgContrSalesPaymentTerms P_ContSubItem ZTERM_SALES PaytTermsSls
ACMPurgIncotermsPart1 P_ContSubItem INCO1_MM Incoterms Purch
ACMSlsIncotermsPart1 P_ContSubItem INCO1_SD Incoterms Sales
DocumentSide I_ACMTrdgContrShadowItemDets DocumentSide
INCO2_L_SDendasIncotermsLocation1
ZTERM_SALESendasAlternatePaymentTerm

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_ACMTrdgContrBusForMntnContr.
-- 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: IACMTCBUSMNTNAPP

CREATE VIEW I_ACMTrdgContrBusForMntnContr AS
SELECT
  Business.TKONN AS TradingContractNumber,
  Business.ELIFN AS PurchaseOrderSupplier,
  Business.ZTERM AS PaymentTerms,
  Business.EKORG AS PurchasingOrganization,
  Business.EKGRP AS PurchasingGroup,
  Business.WAERS_PURCH AS TradingContractCurrency,
  Business.INCOV_SD AS TrdgContrSalesIncotermsVersion,
  Business.INCO2_L_SD AS TrdgContrSlsIncotermsLoc1Text,
  Business.INCO3_L_SD AS TrdgContrSlsIncotermsLoc2Text,
  Business.INCOV_MM AS TrdgContrPurgIncotermsVersion,
  Business.INCO2_L_MM AS TrdgContrPurgIncotermsLoc1Text,
  Business.KNUMV_MM AS PricingDocument,
  Business.IHREZ AS ACMYourReference,
  Business.BSTKD AS ACMCustomerReference,
  Business.ZTERM_SALES AS TrdgContrSalesPaymentTerms,
  Business.INCO1_MM AS ACMPurgIncotermsPart1,
  Business.INCO1_SD AS ACMSlsIncotermsPart1,
  Shadow.DocumentSide AS DocumentSide,
  case Shadow.DocumentSide when 'M' then Business.INCO2_L_MM else Business.INCO2_L_SD end as IncotermsLocation1 AS INCO2_L_SDendasIncotermsLocation1,
  case Shadow.DocumentSide when 'M' then Business.ZTERM else Business.ZTERM_SALES end as AlternatePaymentTerm AS ZTERM_SALESendasAlternatePaymentTerm
FROM P_ContSubItem AS Business
INNER JOIN I_ACMTrdgContrShadowItemDets AS Shadow ON /* join condition not captured in parsed metadata */
;