P_ACMTrdgContrHdrDet
Trading Contract Header
P_ACMTrdgContrHdrDet is a Composite CDS View that provides data about "Trading Contract Header" in SAP S/4HANA. It reads from 4 data sources (I_ContSubItem, I_ContSubItem, I_ACMTrdgContrShadowItemDets, I_ACMTrdgContrShadowItemDets) and exposes 63 fields with key field TradingContractNumber.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_ContSubItem | Business | inner |
| I_ContSubItem | Business | inner |
| I_ACMTrdgContrShadowItemDets | Shadow | inner |
| I_ACMTrdgContrShadowItemDets | Shadow | inner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ACMTRDGCONTHDRDT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Trading Contract Header | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingContractNumber | Header | tkonn | Trading Contract |
| TradingContractType | Header | tctyp | Contract Type | |
| ContractStatus | Header | btbsta | Only Copy Appr.TC | |
| ACMTrdgContrStatusCategory | Status | ACMTrdgContrStatusCategory | ||
| ACMContractCategory | ContractType | ACMContractCategory | ||
| TrdgContractCategory | ContractType | ACMTradingContractCategory | ||
| TradingContractCurrency | I_ContSubItem | TradingContractCurrency | Doc. Currency | |
| PaymentTerms | I_ContSubItem | TrdgContrPurgPaymentTerms | PaytTermsSls | |
| SalesOrganization | Header | vkorg | SD Sales Org. | |
| DistributionChannel | Header | vtweg | RefDistCh-Cust/Mat. | |
| Division | Header | spart | Source supplier | |
| PurchasingOrganization | I_ContSubItem | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_ContSubItem | PurchasingGroup | Purchasing Group | |
| TradingContractExternalID | Header | tkonn_ex | Ext. Identifier | |
| DocumentDate | Header | erdat | Entered On | |
| PersonResponsible | Header | tksachb | Pers. Respons. | |
| TradingContractCreatedBy | Header | ernam | User Name | |
| TradingContractChangedBy | Header | aenam | User Name | |
| TradingContractChangedOnDate | Header | aedat | Obsolete | |
| Counterparty | Counterparty | Counterparty | Supplier | |
| Incoterms | I_ContSubItem | ACMPurgIncotermsPart1 | Incoterms Sales | |
| IncotermsLocation1 | I_ContSubItem | TrdgContrPurgIncotermsLoc1Text | Inco. Location1 | |
| CompanyCode | Header | company_code | Company Code | |
| ACMTradingContractCurrency | TrdgContrHdrOthDet | ACMTradingContractCurrency | ||
| ACMBidValidTillDate | TrdgContrHdrOthDet | ACMBidValidTillDate | ||
| ACMYourReference | I_ContSubItem | ACMYourReference | Your Reference | |
| ACMCustomerReference | I_ContSubItem | ACMCustomerReference | PO Number | |
| ACMTrdgContrIsStatusClosed | TrdgContrHdrAddDets | ACMTrdgContrIsStatusClosed | ||
| TradingContractTradeOffice | TrdgContrHdrAddDets | TradingContractTradeOffice | ||
| TradingContractCreditSales | TrdgContrHdrAddDets | TradingContractCreditSales | ||
| ACMSignedStatus | TrdgContrHdrAddDets | ACMSignedStatus | ||
| tkonnasTradingContractNumber | ||||
| TradingContractType | Header | tctyp | Contract Type | |
| ContractStatus | Header | btbsta | Only Copy Appr.TC | |
| ACMTrdgContrStatusCategory | Status | ACMTrdgContrStatusCategory | ||
| ACMContractCategory | ContractType | ACMContractCategory | ||
| TrdgContractCategory | ContractType | ACMTradingContractCategory | ||
| TradingContractCurrency | Header | sdwrs | Doc. Currency | |
| PaymentTerms | I_ContSubItem | TrdgContrSalesPaymentTerms | PaytTermsSls | |
| SalesOrganization | Header | vkorg | SD Sales Org. | |
| DistributionChannel | Header | vtweg | RefDistCh-Cust/Mat. | |
| Division | Header | spart | Source supplier | |
| PurchasingOrganization | I_ContSubItem | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_ContSubItem | PurchasingGroup | Purchasing Group | |
| TradingContractExternalID | Header | tkonn_ex | Ext. Identifier | |
| DocumentDate | Header | erdat | Entered On | |
| PersonResponsible | Header | tksachb | Pers. Respons. | |
| TradingContractCreatedBy | Header | ernam | User Name | |
| TradingContractChangedBy | Header | aenam | User Name | |
| TradingContractChangedOnDate | Header | aedat | Obsolete | |
| Counterparty | Counterparty | Counterparty | Supplier | |
| Incoterms | I_ContSubItem | ACMSlsIncotermsPart1 | Incoterms Sales | |
| IncotermsLocation1 | I_ContSubItem | TrdgContrSlsIncotermsLoc1Text | Inco. Location1 | |
| CompanyCode | Header | company_code | Company Code | |
| ACMTradingContractCurrency | TrdgContrHdrOthDet | ACMTradingContractCurrency | ||
| ACMBidValidTillDate | TrdgContrHdrOthDet | ACMBidValidTillDate | ||
| ACMYourReference | I_ContSubItem | ACMYourReference | Your Reference | |
| ACMCustomerReference | I_ContSubItem | ACMCustomerReference | PO Number | |
| ACMTrdgContrIsStatusClosed | TrdgContrHdrAddDets | ACMTrdgContrIsStatusClosed | ||
| TradingContractTradeOffice | TrdgContrHdrAddDets | TradingContractTradeOffice | ||
| TradingContractCreditSales | TrdgContrHdrAddDets | TradingContractCreditSales | ||
| ACMSignedStatus | TrdgContrHdrAddDets | ACMSignedStatus | ||
| Side |
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_ACMTrdgContrHdrDet.
-- 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: ACMTRDGCONTHDRDT
CREATE VIEW P_ACMTrdgContrHdrDet AS
SELECT
Header.tkonn AS TradingContractNumber,
Header.tctyp AS TradingContractType,
Header.btbsta AS ContractStatus,
Status.ACMTrdgContrStatusCategory AS ACMTrdgContrStatusCategory,
ContractType.ACMContractCategory AS ACMContractCategory,
ContractType.ACMTradingContractCategory AS TrdgContractCategory,
Business.TradingContractCurrency AS TradingContractCurrency,
Business.TrdgContrPurgPaymentTerms AS PaymentTerms,
Header.vkorg AS SalesOrganization,
Header.vtweg AS DistributionChannel,
Header.spart AS Division,
Business.PurchasingOrganization AS PurchasingOrganization,
Business.PurchasingGroup AS PurchasingGroup,
Header.tkonn_ex AS TradingContractExternalID,
Header.erdat AS DocumentDate,
Header.tksachb AS PersonResponsible,
Header.ernam AS TradingContractCreatedBy,
Header.aenam AS TradingContractChangedBy,
Header.aedat AS TradingContractChangedOnDate,
Counterparty.Counterparty AS Counterparty,
Business.ACMPurgIncotermsPart1 AS Incoterms,
Business.TrdgContrPurgIncotermsLoc1Text AS IncotermsLocation1,
Header.company_code AS CompanyCode,
TrdgContrHdrOthDet.ACMTradingContractCurrency AS ACMTradingContractCurrency,
TrdgContrHdrOthDet.ACMBidValidTillDate AS ACMBidValidTillDate,
Business.ACMYourReference AS ACMYourReference,
Business.ACMCustomerReference AS ACMCustomerReference,
TrdgContrHdrAddDets.ACMTrdgContrIsStatusClosed AS ACMTrdgContrIsStatusClosed,
TrdgContrHdrAddDets.TradingContractTradeOffice AS TradingContractTradeOffice,
TrdgContrHdrAddDets.TradingContractCreditSales AS TradingContractCreditSales,
TrdgContrHdrAddDets.ACMSignedStatus AS ACMSignedStatus,
cast(Shadow.DocumentSide as wlf_pr_side) as Side AS tkonnasTradingContractNumber,
cast(Shadow.DocumentSide as wlf_pr_side) AS Side
INNER JOIN I_ContSubItem AS Business ON /* join condition not captured in parsed metadata */
INNER JOIN I_ACMTrdgContrShadowItemDets AS Shadow ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA