I_TrdgContr
Trading Contract
I_TrdgContr is a Composite CDS View that provides data about "Trading Contract" in SAP S/4HANA. It reads from 1 data source (R_TrdgContr) and exposes 228 fields with key field TradingContract. It has 8 associations to related views.
SAP Help Documentation
| Category | Global Trade Management |
|---|
Purpose
This CDS view contains information about trading contracts and their associated header entities. This CDS view provides the data to answer the following business questions: Who are the business partners on header level? What are the sales pricing conditions on header level? What are the purchasing pricing conditions on header level? What are the release status for follow-on document generation and the application status of the trading contract? What are the custom fields at header and item level? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: W_WBHK_TCT (Trading Contract: Authorization for Trading Contract Type) W_WBHK_ORG (Trading Contract: Authorization for Organizational Data) V_KNA1_BRG (Customer: Account Authorization for Sales Areas) F_LFA1_BEK (Vendor: Account Authorization)
Structure
Fields Used for Filtering The main filters are as follows: TradingContract : This field is used to filter for the number of a trading contract. TradingContractReleaseStatus : This field is used to filter for the release status for follow-on document generation of a trading contract. TrdgContrApplicationStatus : This field is used to filter for the application status of a trading contract.
Constraints
This CDS view only provides information about the trading contract header. Data for sales and purchasing pricing details on item level can be retrieved from the Trading Contract Item view.
This CDS view contains information about trading contracts and their associated header entities. This CDS view provides the data to answer the following business questions: Who are the business partners on header level? What are the sales pricing conditions on header level? What are the purchasing pricing conditions on header level? What are the release status for follow-on document generation and the application status of the trading contract? What are the custom fields at header and item level? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: W_WBHK_TCT (Trading Contract: Authorization for Trading Contract Type) W_WBHK_ORG (Trading Contract: Authorization for Organizational Data) V_KNA1_BRG (Customer: Account Authorization for Sales Areas) F_LFA1_BEK (Vendor: Account Authorization)
Structure
Fields Used for Filtering The main filters are as follows: TradingContract : This field is used to filter for the number of a trading contract. TradingContractReleaseStatus : This field is used to filter for the release status for follow-on document generation of a trading contract. TrdgContrApplicationStatus : This field is used to filter for the application status of a trading contract.
Constraints
This CDS view only provides information about the trading contract header. Data for sales and purchasing pricing details on item level can be retrieved from the Trading Contract Item view.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_TrdgContr | TrdgContr | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TrdgContrPartner | _TrdgContrPartner | $projection.TradingContract = _TrdgContrPartner.TradingContract |
| [0..*] | I_TrdgContrSlsPrcgElmnt | _TrdgContrSlsPrcgElmnt | $projection.TradingContract = _TrdgContrSlsPrcgElmnt.TradingContract |
| [0..*] | I_TrdgContrPurgPrcgElmnt | _TrdgContrPurgPrcgElmnt | $projection.TradingContract = _TrdgContrPurgPrcgElmnt.TradingContract |
| [0..*] | I_TrdgContrItem | _TrdgContrItem | $projection.TradingContract = _TrdgContrItem.TradingContract |
| [0..1] | I_TrdgDocApplicationStatus | _TrdgContrApplStatus | $projection.TrdgContrApplicationStatus = _TrdgContrApplStatus.TrdgDocApplicationStatus |
| [0..1] | E_TradingDocument | _TrdgDocExtension | $projection.TradingContract = _TrdgDocExtension.TradingDocument |
| [1..1] | E_TradingDocumentBusinessData | _TrdgDocBusinessDataExtension | $projection.TradingContract = _TrdgDocBusinessDataExtension.TradingDocument and _TrdgDocBusinessDataExtension.TradingDocumentItem = '000000' and _TrdgDocBusinessDataExtension.TradingDocumentSubItem = '000000' |
| [0..*] | I_TrdgContrDocumentFlow | _TrdgContrDocumentFlow | $projection.TradingContract = _TrdgContrDocumentFlow.tradingcontract |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Trading Contract | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | TradingContract | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (228)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingContract | TradingContract | ||
| TradingContractType | TradingContractType | |||
| TradingContractCategory | TradingContractCategory | |||
| TrdgContrBusProcessCategory | TrdgContrBusProcessCategory | |||
| TradingContractPurpose | TradingContractPurpose | |||
| TrdgContrApplicationStatus | TrdgContrApplicationStatus | |||
| SalesDocumentType | SalesDocumentType | Sales Doc. Type | ||
| SalesDocumentCondition | SalesDocumentCondition | |||
| CreatedByUser | CreatedByUser | User Name | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| TrdgContrPersonResponsible | TrdgContrPersonResponsible | |||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangeTime | LastChangeTime | Time changed | ||
| TrdgContrDate | TrdgContrDate | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Grp 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Grp 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Grp 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Grp 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Grp 5 | ||
| CreditControlArea | CreditControlArea | Credit Control Area | ||
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| SalesDocumentDate | SalesDocumentDate | Document Date | ||
| SalesOrderReason | SalesOrderReason | |||
| SDDocumentCollectiveNumber | SDDocumentCollectiveNumber | |||
| CustomerPurchaseOrderType | CustomerPurchaseOrderType | |||
| CustomerPurchaseOrderSuplmnt | CustomerPurchaseOrderSuplmnt | |||
| BindingPeriodValidityStartDate | BindingPeriodValidityStartDate | |||
| BindingPeriodValidityEndDate | BindingPeriodValidityEndDate | Binding Period | ||
| TrdgContrSlsValidityStartDate | TrdgContrSlsValidityStartDate | |||
| TrdgContrSlsValidityEndDate | TrdgContrSlsValidityEndDate | |||
| TrdgContrProdUsgeCat | TrdgContrProdUsgeCat | |||
| ForeignTrade | ForeignTrade | |||
| TrdgContrSlsPersonName | TrdgContrSlsPersonName | |||
| PhoneNumber1 | PhoneNumber1 | Telephone 1 | ||
| TrdgContrSlsNrOfFollowUps | TrdgContrSlsNrOfFollowUps | |||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| TradingContractCurrency | TradingContractCurrency | |||
| TrdgContrTotalNetAmount | TrdgContrTotalNetAmount | |||
| TradingContractExchangeRate | TradingContractExchangeRate | |||
| TrdgContrExchangeRateType | TrdgContrExchangeRateType | |||
| TrdgContrExchangeRateDate | TrdgContrExchangeRateDate | |||
| TradingContractSalesCurrency | TradingContractSalesCurrency | |||
| TrdgContrSalesExchangeRate | TrdgContrSalesExchangeRate | |||
| TrdgContrSalesExchangeRateType | TrdgContrSalesExchangeRateType | |||
| TrdgContrSalesPricingDate | TrdgContrSalesPricingDate | |||
| TrdgContrSalesPricingProcedure | TrdgContrSalesPricingProcedure | |||
| CustomerTaxClassification1 | CustomerTaxClassification1 | |||
| CustomerTaxClassification2 | CustomerTaxClassification2 | |||
| CustomerTaxClassification3 | CustomerTaxClassification3 | |||
| CustomerTaxClassification4 | CustomerTaxClassification4 | |||
| CustomerTaxClassification5 | CustomerTaxClassification5 | |||
| CustomerTaxClassification6 | CustomerTaxClassification6 | |||
| CustomerTaxClassification7 | CustomerTaxClassification7 | |||
| CustomerTaxClassification8 | CustomerTaxClassification8 | |||
| CustomerTaxClassification9 | CustomerTaxClassification9 | |||
| TaxDepartureCountry | TaxDepartureCountry | Tx Dep Ctry/Reg | ||
| VATRegistrationCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| CompleteDeliveryIsDefined | CompleteDeliveryIsDefined | Complete Dlv. | ||
| DeliveryBlockReason | DeliveryBlockReason | Delivery Block | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| HeaderBillingBlockReason | HeaderBillingBlockReason | Billing Block | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CustomerCreditAccount | CustomerCreditAccount | |||
| CustomerCreditGroup | CustomerCreditGroup | |||
| CreditRepresentativeGroup | CreditRepresentativeGroup | |||
| CustomerRiskCategory | CustomerRiskCategory | |||
| ControllingAreaCurrency | ControllingAreaCurrency | |||
| CreditBlockReleaseDate | CreditBlockReleaseDate | |||
| NextCreditCheckDate | NextCreditCheckDate | |||
| NextShippingDate | NextShippingDate | |||
| ReleasedCreditAmount | ReleasedCreditAmount | Credit Value | ||
| TrdgContrAddlExpnsBlkRsn | TrdgContrAddlExpnsBlkRsn | |||
| TrdgContrSuplrBillgBlkRsn | TrdgContrSuplrBillgBlkRsn | |||
| AccountingExchangeRate | AccountingExchangeRate | Exch.Rate Acct. | ||
| TrdgContrSlsExternalReference | TrdgContrSlsExternalReference | |||
| TradingContractIsComplete | TradingContractIsComplete | |||
| LastCustomerContactDate | LastCustomerContactDate | |||
| TrdgContrQuantityIsComplete | TrdgContrQuantityIsComplete | |||
| TradingContractReleaseStatus | TradingContractReleaseStatus | |||
| TradingContractExtID | TradingContractExtID | |||
| TrdgContrSrceDocType | TrdgContrSrceDocType | |||
| TradingContractGoodsReceiver | TradingContractGoodsReceiver | |||
| IsEUTriangularDeal | IsEUTriangularDeal | Is EU Triangular Deal | ||
| TrdgContrHdrIsExtended | TrdgContrHdrIsExtended | |||
| TrdgContrSuccessorArchived | TrdgContrSuccessorArchived | |||
| TrdgContrHasCnsldtdItem | TrdgContrHasCnsldtdItem | |||
| TrdgContrVarContrSettlmt | TrdgContrVarContrSettlmt | |||
| TrdgContrBatDetnProcedure | TrdgContrBatDetnProcedure | |||
| TrdgContrProcessingStatus | TrdgContrProcessingStatus | |||
| TrdgContrProcessingLastAction | TrdgContrProcessingLastAction | |||
| TrdgContrProcgLastSequence | TrdgContrProcgLastSequence | |||
| TradingProcessVariantType | TradingProcessVariantType | |||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| TrdgContrPricingType | TrdgContrPricingType | |||
| TrdgContrLastChangedCategory | TrdgContrLastChangedCategory | |||
| Supplier | Supplier | Supplier | ||
| BPSupplierName | _Supplier | BPSupplierName | Supplier Name | |
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingDocumentOrderDate | PurchasingDocumentOrderDate | PO Date | ||
| TrdgContrPurgReqdDeliveryDate | TrdgContrPurgReqdDeliveryDate | |||
| TrdgContrPurgDeliveryDateType | TrdgContrPurgDeliveryDateType | |||
| TrdgContrSlsReqdDeliveryDate | TrdgContrSlsReqdDeliveryDate | |||
| TrdgContrSlsDeliveryDateType | TrdgContrSlsDeliveryDateType | |||
| TrdgContrPurgCurrency | TrdgContrPurgCurrency | |||
| TrdgContrPurgExchangeRate | TrdgContrPurgExchangeRate | |||
| TrdgContrPurgExchangeRateType | TrdgContrPurgExchangeRateType | |||
| TrdgContrPurgPaymentTerms | TrdgContrPurgPaymentTerms | |||
| TrdgContrSalesPaymentTerms | TrdgContrSalesPaymentTerms | |||
| TrdgContrSalesFixedValueDate | TrdgContrSalesFixedValueDate | |||
| TrdgContrPurgFixedValueDate | TrdgContrPurgFixedValueDate | |||
| TrdgContrPurgPricingDate | TrdgContrPurgPricingDate | |||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| TrdgContrPurgIncotermsVersion | TrdgContrPurgIncotermsVersion | |||
| TrdgContrPurgIncotermsLoc1Text | TrdgContrPurgIncotermsLoc1Text | |||
| TrdgContrPurgIncotermsLoc2Text | TrdgContrPurgIncotermsLoc2Text | |||
| TrdgContrSalesIncotermsVersion | TrdgContrSalesIncotermsVersion | |||
| TrdgContrSlsIncotermsLoc1Text | TrdgContrSlsIncotermsLoc1Text | |||
| TrdgContrSlsIncotermsLoc2Text | TrdgContrSlsIncotermsLoc2Text | |||
| QuotationSubmissionDate | QuotationSubmissionDate | Quotation Date | ||
| TrdgContrSalesPaymentMethod | TrdgContrSalesPaymentMethod | |||
| TrdgContrPurgValidityStartDate | TrdgContrPurgValidityStartDate | |||
| TrdgContrPurgValidityEndDate | TrdgContrPurgValidityEndDate | |||
| SupplierQuotationExternalID | SupplierQuotationExternalID | Quotation | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Telephone | ||
| CorrespncInternalReference | CorrespncInternalReference | Our Reference | ||
| TrdgContrPurgDocExtReference | TrdgContrPurgDocExtReference | |||
| InternalFinancialDocument | InternalFinancialDocument | |||
| DepreciationPercentage | DepreciationPercentage | |||
| FixedExchangeRateIsUsed | FixedExchangeRateIsUsed | Fixed exch.rate | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| ShippingType | ShippingType | Shipping Type | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | Purchase Order Date | ||
| TrdgContrPurgPricingProcedure | TrdgContrPurgPricingProcedure | |||
| DownPaymentType | DownPaymentType | Down Payment | ||
| DownPaymentPercentageOfTotAmt | DownPaymentPercentageOfTotAmt | Down Payment % | ||
| DownPaymentAmount | DownPaymentAmount | Downpayment | ||
| DownPaymentDueDate | DownPaymentDueDate | Due Date for DP | ||
| TrdgContrPurgDocCndn | TrdgContrPurgDocCndn | |||
| SlsIncotermsClassification | SlsIncotermsClassification | |||
| PurgIncotermsClassification | PurgIncotermsClassification | |||
| TrdgContrPurgDelivAddrCat | TrdgContrPurgDelivAddrCat | |||
| PaymentGuaranteeProcedure | PaymentGuaranteeProcedure | |||
| TrdgContrPOByCustomer | TrdgContrPOByCustomer | |||
| PaymentTermsName | PaymentTermsName | Description | ||
| PurgIncotermsTransferLocation | PurgIncotermsTransferLocation | |||
| SlsIncotermsTransferLocation | SlsIncotermsTransferLocation | |||
| PurchaseOrderByShipToParty | PurchaseOrderByShipToParty | |||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| TrdgContrRelStsCritlty | TrdgContrRelStsCritlty | |||
| CustomerName | _SoldToParty | CustomerName | Name of Customer | |
| BPCustomerName | _SoldToParty | BPCustomerName | Name of Customer | |
| TrdgContrPurgShipgInstrn | TrdgContrPurgShipgInstrn | |||
| SupplierConfirmationControlKey | SupplierConfirmationControlKey | Conf. Control | ||
| TrdgContrMnlPOSplit | TrdgContrMnlPOSplit | |||
| UnderlyingPurchaseOrderItem | UnderlyingPurchaseOrderItem | PO Item | ||
| _AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | |||
| _AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | |||
| _AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | |||
| _AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | |||
| _AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | |||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _ControllingAreaCurrency | _ControllingAreaCurrency | |||
| _CreatedByUser | _CreatedByUser | |||
| _CreditControlArea | _CreditControlArea | |||
| _Currency | _Currency | |||
| _CustomerCreditAccount | _CustomerCreditAccount | |||
| _CustomerPurchaseOrderType | _CustomerPurchaseOrderType | |||
| _CustomerSalesArea | _CustomerSalesArea | |||
| _DeliveryBlockReason | _DeliveryBlockReason | |||
| _DistributionChannel | _DistributionChannel | |||
| _HeaderBillingBlockReason | _HeaderBillingBlockReason | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _MatlUsageIndicator | _MatlUsageIndicator | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _PaymentGuaranteeProcedure | _PaymentGuaranteeProcedure | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurgIncotermsClassification | _PurgIncotermsClassification | |||
| _SalesArea | _SalesArea | |||
| _SalesDocumentType | _SalesDocumentType | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOffice | _SalesOffice | |||
| _SalesOrderReason | _SalesOrderReason | |||
| _SalesOrderType | _SalesOrderType | |||
| _SalesOrganization | _SalesOrganization | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _ShippingCondition | _ShippingCondition | |||
| _ShippingType | _ShippingType | |||
| _SlsIncotermsClassification | _SlsIncotermsClassification | |||
| _SoldToParty | _SoldToParty | |||
| _Supplier | _Supplier | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _TaxDepartureCountry | _TaxDepartureCountry | |||
| _TradingContractCurrency | _TradingContractCurrency | |||
| _TrdgContrExchangeRateType | _TrdgContrExchangeRateType | |||
| _TrdgContrItem | _TrdgContrItem | |||
| _TrdgContrPurgExchangeRateType | _TrdgContrPurgExchangeRateType | |||
| _TrdgContrPurgIncotermsVersion | _TrdgContrPurgIncotermsVersion | |||
| _TrdgContrPurgPaymentTerms | _TrdgContrPurgPaymentTerms | |||
| _TrdgContrPurgPrcgElmnt | _TrdgContrPurgPrcgElmnt | |||
| _TrdgContrReleaseStatus | _TrdgContrReleaseStatus | |||
| _TrdgContrApplStatus | _TrdgContrApplStatus | |||
| _TrdgContrSalesCurrency | _TrdgContrSalesCurrency | |||
| _TrdgContrSalesPaymentTerms | _TrdgContrSalesPaymentTerms | |||
| _TrdgContrSlsExchangeRateType | _TrdgContrSlsExchangeRateType | |||
| _TrdgContrSlsIncotermsVersion | _TrdgContrSlsIncotermsVersion | |||
| _TrdgContrSlsPricingProcedure | _TrdgContrSlsPricingProcedure | |||
| _TrdgContrAddlExpnsBlkRsn | _TrdgContrAddlExpnsBlkRsn | |||
| _TrdgContrSuplrBillgBlkRsn | _TrdgContrSuplrBillgBlkRsn | |||
| _TrdgContrSlsPrcgElmnt | _TrdgContrSlsPrcgElmnt | |||
| _TrdgContrPartner | _TrdgContrPartner | |||
| _VATRegistrationCountry | _VATRegistrationCountry | |||
| _WBSElementInternalID | _WBSElementInternalID | |||
| _TrdgContrDocumentFlow | _TrdgContrDocumentFlow |
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_TrdgContr.
-- 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.
CREATE VIEW I_TrdgContr AS
SELECT
TradingContract,
TradingContractType,
TradingContractCategory,
TrdgContrBusProcessCategory,
TradingContractPurpose,
TrdgContrApplicationStatus,
SalesDocumentType,
SalesDocumentCondition,
CreatedByUser,
LastChangedByUser,
TrdgContrPersonResponsible,
CreationDate,
CreationTime,
LastChangeDate,
LastChangeTime,
TrdgContrDate,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
SalesGroup,
SalesOffice,
SoldToParty,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
CreditControlArea,
SDDocumentCategory,
SalesDocumentDate,
SalesOrderReason,
SDDocumentCollectiveNumber,
CustomerPurchaseOrderType,
CustomerPurchaseOrderSuplmnt,
BindingPeriodValidityStartDate,
BindingPeriodValidityEndDate,
TrdgContrSlsValidityStartDate,
TrdgContrSlsValidityEndDate,
TrdgContrProdUsgeCat,
ForeignTrade,
TrdgContrSlsPersonName,
PhoneNumber1,
TrdgContrSlsNrOfFollowUps,
DocumentReferenceID,
TradingContractCurrency,
TrdgContrTotalNetAmount,
TradingContractExchangeRate,
TrdgContrExchangeRateType,
TrdgContrExchangeRateDate,
TradingContractSalesCurrency,
TrdgContrSalesExchangeRate,
TrdgContrSalesExchangeRateType,
TrdgContrSalesPricingDate,
TrdgContrSalesPricingProcedure,
CustomerTaxClassification1,
CustomerTaxClassification2,
CustomerTaxClassification3,
CustomerTaxClassification4,
CustomerTaxClassification5,
CustomerTaxClassification6,
CustomerTaxClassification7,
CustomerTaxClassification8,
CustomerTaxClassification9,
TaxDepartureCountry,
VATRegistrationCountry,
ShippingCondition,
CompleteDeliveryIsDefined,
DeliveryBlockReason,
CompanyCode,
HeaderBillingBlockReason,
ControllingArea,
CustomerCreditAccount,
CustomerCreditGroup,
CreditRepresentativeGroup,
CustomerRiskCategory,
ControllingAreaCurrency,
CreditBlockReleaseDate,
NextCreditCheckDate,
NextShippingDate,
ReleasedCreditAmount,
TrdgContrAddlExpnsBlkRsn,
TrdgContrSuplrBillgBlkRsn,
AccountingExchangeRate,
TrdgContrSlsExternalReference,
TradingContractIsComplete,
LastCustomerContactDate,
TrdgContrQuantityIsComplete,
TradingContractReleaseStatus,
TradingContractExtID,
TrdgContrSrceDocType,
TradingContractGoodsReceiver,
IsEUTriangularDeal,
TrdgContrHdrIsExtended,
TrdgContrSuccessorArchived,
TrdgContrHasCnsldtdItem,
TrdgContrVarContrSettlmt,
TrdgContrBatDetnProcedure,
TrdgContrProcessingStatus,
TrdgContrProcessingLastAction,
TrdgContrProcgLastSequence,
TradingProcessVariantType,
WBSElementInternalID,
TrdgContrPricingType,
TrdgContrLastChangedCategory,
Supplier,
_Supplier.BPSupplierName AS BPSupplierName,
PurchasingOrganization,
PurchasingGroup,
PurchasingDocumentOrderDate,
TrdgContrPurgReqdDeliveryDate,
TrdgContrPurgDeliveryDateType,
TrdgContrSlsReqdDeliveryDate,
TrdgContrSlsDeliveryDateType,
TrdgContrPurgCurrency,
TrdgContrPurgExchangeRate,
TrdgContrPurgExchangeRateType,
TrdgContrPurgPaymentTerms,
TrdgContrSalesPaymentTerms,
TrdgContrSalesFixedValueDate,
TrdgContrPurgFixedValueDate,
TrdgContrPurgPricingDate,
SupplyingPlant,
TrdgContrPurgIncotermsVersion,
TrdgContrPurgIncotermsLoc1Text,
TrdgContrPurgIncotermsLoc2Text,
TrdgContrSalesIncotermsVersion,
TrdgContrSlsIncotermsLoc1Text,
TrdgContrSlsIncotermsLoc2Text,
QuotationSubmissionDate,
TrdgContrSalesPaymentMethod,
TrdgContrPurgValidityStartDate,
TrdgContrPurgValidityEndDate,
SupplierQuotationExternalID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
CorrespncInternalReference,
TrdgContrPurgDocExtReference,
InternalFinancialDocument,
DepreciationPercentage,
FixedExchangeRateIsUsed,
PurchasingDocumentType,
ShippingType,
PurchaseOrderByCustomer,
CustomerPurchaseOrderDate,
TrdgContrPurgPricingProcedure,
DownPaymentType,
DownPaymentPercentageOfTotAmt,
DownPaymentAmount,
DownPaymentDueDate,
TrdgContrPurgDocCndn,
SlsIncotermsClassification,
PurgIncotermsClassification,
TrdgContrPurgDelivAddrCat,
PaymentGuaranteeProcedure,
TrdgContrPOByCustomer,
PaymentTermsName,
PurgIncotermsTransferLocation,
SlsIncotermsTransferLocation,
PurchaseOrderByShipToParty,
CreationDateTime,
LastChangeDateTime,
TrdgContrRelStsCritlty,
_SoldToParty.CustomerName AS CustomerName,
_SoldToParty.BPCustomerName AS BPCustomerName,
TrdgContrPurgShipgInstrn,
SupplierConfirmationControlKey,
TrdgContrMnlPOSplit,
UnderlyingPurchaseOrderItem
FROM R_TrdgContr AS TrdgContr
LEFT OUTER JOIN I_TrdgContrPartner AS _TrdgContrPartner ON TradingContract = _TrdgContrPartner.TradingContract -- association [0..*]
LEFT OUTER JOIN I_TrdgContrSlsPrcgElmnt AS _TrdgContrSlsPrcgElmnt ON TradingContract = _TrdgContrSlsPrcgElmnt.TradingContract -- association [0..*]
LEFT OUTER JOIN I_TrdgContrPurgPrcgElmnt AS _TrdgContrPurgPrcgElmnt ON TradingContract = _TrdgContrPurgPrcgElmnt.TradingContract -- association [0..*]
LEFT OUTER JOIN I_TrdgContrItem AS _TrdgContrItem ON TradingContract = _TrdgContrItem.TradingContract -- association [0..*]
LEFT OUTER JOIN I_TrdgDocApplicationStatus AS _TrdgContrApplStatus ON TrdgContrApplicationStatus = _TrdgContrApplStatus.TrdgDocApplicationStatus -- association [0..1]
LEFT OUTER JOIN E_TradingDocument AS _TrdgDocExtension ON TradingContract = _TrdgDocExtension.TradingDocument -- association [0..1]
LEFT OUTER JOIN E_TradingDocumentBusinessData AS _TrdgDocBusinessDataExtension ON TradingContract = _TrdgDocBusinessDataExtension.TradingDocument AND _TrdgDocBusinessDataExtension.TradingDocumentItem = '000000' AND _TrdgDocBusinessDataExtension.TradingDocumentSubItem = '000000' -- association [1..1]
LEFT OUTER JOIN I_TrdgContrDocumentFlow AS _TrdgContrDocumentFlow ON TradingContract = _TrdgContrDocumentFlow.tradingcontract -- association [0..*]
;
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