R_TrdgDocBusinessDataBasic
Business Data of Trading Document
R_TrdgDocBusinessDataBasic is a Basic CDS View that provides data about "Business Data of Trading Document" in SAP S/4HANA. It reads from 1 data source (wbhd) and exposes 92 fields with key fields TradingDocument, TradingDocumentItem. It has 19 associations to related views. Part of development package VDM_LO_GT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wbhd | wbhd | from |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | R_TrdgDocPurgDelivAddrCat | _TrdgDocPurgDelivAddrCat | $projection.TrdgDocPurgDelivAddrCat = _TrdgDocPurgDelivAddrCat.TrdgDocPurgDelivAddrCat |
| [0..1] | R_TrdgDocPurgDocCat | _TrdgDocPurgDocCat | $projection.TrdgDocPurgDocCat = _TrdgDocPurgDocCat.PurchasingDocumentCategory |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_Currency | _Currency | $projection.TrdgDocPurgCurrency = _Currency.Currency |
| [0..1] | I_ExchangeRateType | _TrdgDocPurgExchangeRateType | $projection.TrdgDocPurgExchangeRateType = _TrdgDocPurgExchangeRateType.ExchangeRateType |
| [0..1] | I_IncotermsClassification | _PurgIncotermsClassification | $projection.PurgIncotermsClassification = _PurgIncotermsClassification.IncotermsClassification |
| [0..1] | I_IncotermsClassification | _SlsIncotermsClassification | $projection.SlsIncotermsClassification = _SlsIncotermsClassification.IncotermsClassification |
| [0..1] | I_ShippingInstruction | _ShippingInstruction | $projection.TrdgDocPurgShipgInstrn = _ShippingInstruction.ShippingInstruction |
| [0..1] | I_SupplierConfControlKey | _SupplierConfControlKey | $projection.SupplierConfirmationControlKey = _SupplierConfControlKey.SupplierConfirmationControlKey |
| [0..1] | I_PaymentGuaranteeProcedure | _PaymentGuaranteeProcedure | $projection.PaymentGuaranteeProcedure = _PaymentGuaranteeProcedure.PaymentGuaranteeProcedure |
| [0..1] | I_ShippingType | _ShippingType | $projection.ShippingType = _ShippingType.ShippingType |
| [0..1] | I_Plant | _SupplyingPlant | $projection.SupplyingPlant = _SupplyingPlant.Plant |
| [0..1] | I_PaymentTerms | _TrdgDocPurgPaymentTerms | $projection.TrdgDocPurgPaymentTerms = _TrdgDocPurgPaymentTerms.PaymentTerms |
| [0..1] | I_PaymentTerms | _TrdgDocSalesPaymentTerms | $projection.TrdgDocSalesPaymentTerms = _TrdgDocSalesPaymentTerms.PaymentTerms |
| [0..1] | I_IncotermsVersion | _TrdgDocPurgIncotermsVersion | $projection.TrdgDocPurgIncotermsVersion = _TrdgDocPurgIncotermsVersion.IncotermsVersion |
| [0..1] | I_IncotermsVersion | _TrdgDocSlsIncotermsVersion | $projection.TrdgDocSalesIncotermsVersion = _TrdgDocSlsIncotermsVersion.IncotermsVersion |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.compositionRoot | false | view | |
| ObjectModel.representativeKey | TradingDocument | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Analytics.dataExtraction.enabled | false | view | |
| Analytics.internalName | #LOCAL | view | |
| EndUserText.label | Business Data of Trading Document | view |
Fields (92)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TradingDocument | tkonn | Trading Contract | |
| KEY | TradingDocumentItem | tposn | Item Number | |
| PaymentGuaranteeProcedure | abssc | Paym.Guar.Proc. | ||
| DepreciationPercentage | akprz | Depreciation | ||
| SupplierQuotationExternalID | Quotation | |||
| PurchasingDocumentType | bsart | Stnd purch.ord. | ||
| SupplierConfirmationControlKey | Conf. Control | |||
| CustomerPurchaseOrderDate | Cust. Ref. Date | |||
| CustPurOrdDateByShipToParty | bstdk_e | Cust. Ref. Date | ||
| PurchaseOrderByCustomer | PO Number | |||
| PurchaseOrderByShipToParty | Cust. Reference | |||
| TrdgDocPurgDocCat | bstyp | Source doc.cat. | ||
| DownPaymentAmount | dpamt | Down Payment Amt | ||
| DownPaymentDueDate | dpdat | Due Date for DP | ||
| DownPaymentPercentageOfTotAmt | dppct | Down Payment % | ||
| DownPaymentType | dptyp | Down Payment | ||
| PurchasingDocumentOrderDate | Document Date | |||
| TrdgDocSlsReqdDeliveryDate | edatu_vbak | DelivDateSales | ||
| TrdgDocPurgReqdDeliveryDate | eindt | Initial Entry | ||
| PurchasingGroup | ekgrp | Sub. purchasing grp | ||
| PurchasingOrganization | ekorg | Purchasing Org. | ||
| Supplier | elifn | Supplier | ||
| CreationDate | erdat | Entered On | ||
| CreatedByUser | ernam | User Name | ||
| CreationTime | Time | |||
| TrdgDocPurgShipgInstrn | Shipping Instr. | |||
| TrdgDocPurgDelivAddrCat | Delivery Addr. | |||
| QuotationSubmissionDate | ihran | Quotation Date | ||
| TrdgDocPurgDocExtReference | Your Reference | |||
| PurgIncotermsClassification | inco1_mm | Incoterms Purch | ||
| SlsIncotermsClassification | inco1_sd | Incoterms Sales | ||
| TrdgDocPurgIncotermsLoc1Text | Inco. Location1 | |||
| TrdgDocSlsIncotermsLoc1Text | Inco. Location1 | |||
| PurgIncotermsTransferLocation | Incot2Purchasin | |||
| SlsIncotermsTransferLocation | inco2_sd | Incoterms2Sales | ||
| TrdgDocPurgIncotermsLoc2Text | Inco. Location2 | |||
| TrdgDocSlsIncotermsLoc2Text | Inco. Location2 | |||
| TrdgDocPurgIncotermsVersion | Inco. Version | |||
| TrdgDocSalesIncotermsVersion | Inco. Version | |||
| TrdgDocPurgPricingProcedure | Procedure | |||
| TrdgDocPurgValidityStartDate | Validity Start | |||
| TrdgDocPurgValidityEndDate | Validity End | |||
| FixedExchangeRateIsUsed | kufix | Fixed Exch.Rate | ||
| TrdgDocPurgExchangeRateType | Exch. Rate Type | |||
| IsOrderAcknRqd | kzabs_mm | Acknowl. Reqd. | ||
| OrderCombinationIsAllowed | kzazu | Order Combinat. | ||
| PurgDocOrderAcknNumber | labnr | Order Acknowl. | ||
| InternalFinancialDocument | lcnum | Financ.Doc.No. | ||
| TrdgDocPurgDeliveryDateType | Date type | |||
| SEPAMandate | mndid | Mandate Ref. | ||
| UnderlyingPurchaseOrderItem | posex_e | PO Item | ||
| TrdgDocMnlPOSplit | posplit | PO Split | ||
| TrdgDocSlsDeliveryDateType | Prop.date type | |||
| TrdgDocPurgPricingDate | Pricing Date | |||
| TrdgDocSalesPricingDate | Pricing Date | |||
| SupplyingPlant | reswk | Supplying Plant | ||
| RetentionPercentage | retpc | Retention % | ||
| SupplierPhoneNumber | Telephone | |||
| PaymentTermsName | termdes_mm | Desc. Paym.Term | ||
| TrdgDocPurgExchangeRate | Exchange Rate | |||
| CorrespncInternalReference | unsez_mm | Our Reference | ||
| TrdgDocPurgFixedValueDate | Valuation Date | |||
| TrdgDocSalesFixedValueDate | Fixed Val.Date | |||
| SupplierRespSalesPersonName | Salesperson | |||
| ShippingType | vsart | Shp.type: stage | ||
| TrdgDocPurgCurrency | Currency | |||
| IssuingPlant | Plant | |||
| TrdgDocSalesPaymentMethod | Pymt Meth. | |||
| TrdgDocPurgPaymentTerms | zterm | Terms of Payment | ||
| TrdgDocSalesPaymentTerms | zterm_sales | PaytTermsSls | ||
| TrdgDocPurgDocCndn | knumv_mm | Doc. Condition | ||
| TrdgDocPrcDetnExchRate | Exchange Rate | |||
| TrdgDocIsRlvtPoDProcg | POD-relevant | |||
| _TrdgDocPurgDelivAddrCat | _TrdgDocPurgDelivAddrCat | |||
| _TrdgDocPurgDocCat | _TrdgDocPurgDocCat | |||
| _CreatedByUser | _CreatedByUser | |||
| _Supplier | _Supplier | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _Currency | _Currency | |||
| _TrdgDocPurgExchangeRateType | _TrdgDocPurgExchangeRateType | |||
| _PurgIncotermsClassification | _PurgIncotermsClassification | |||
| _SlsIncotermsClassification | _SlsIncotermsClassification | |||
| _ShippingInstruction | _ShippingInstruction | |||
| _SupplierConfControlKey | _SupplierConfControlKey | |||
| _PaymentGuaranteeProcedure | _PaymentGuaranteeProcedure | |||
| _TrdgDocPurgPaymentTerms | _TrdgDocPurgPaymentTerms | |||
| _TrdgDocSalesPaymentTerms | _TrdgDocSalesPaymentTerms | |||
| _ShippingType | _ShippingType | |||
| _TrdgDocPurgIncotermsVersion | _TrdgDocPurgIncotermsVersion | |||
| _TrdgDocSlsIncotermsVersion | _TrdgDocSlsIncotermsVersion | |||
| _SupplyingPlant | _SupplyingPlant |
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 R_TrdgDocBusinessDataBasic.
-- 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 R_TrdgDocBusinessDataBasic AS
SELECT
tkonn AS TradingDocument,
tposn AS TradingDocumentItem,
abssc AS PaymentGuaranteeProcedure,
akprz AS DepreciationPercentage,
cast( angnr_mm as wb2_suplr_qtan preserving type ) AS SupplierQuotationExternalID,
bsart AS PurchasingDocumentType,
cast( bstae_mm as wb2_suplr_conf_ctrl preserving type ) AS SupplierConfirmationControlKey,
cast( bstdk as wb2_cust_purch_order_date preserving type ) AS CustomerPurchaseOrderDate,
bstdk_e AS CustPurOrdDateByShipToParty,
cast( bstkd as wb2_po_by_cust_extd preserving type ) AS PurchaseOrderByCustomer,
cast( bstkd_e as wb2_po_by_ship_to_party preserving type ) AS PurchaseOrderByShipToParty,
bstyp AS TrdgDocPurgDocCat,
dpamt AS DownPaymentAmount,
dpdat AS DownPaymentDueDate,
dppct AS DownPaymentPercentageOfTotAmt,
dptyp AS DownPaymentType,
cast( ebdat as wb2_purg_doc_dte preserving type ) AS PurchasingDocumentOrderDate,
edatu_vbak AS TrdgDocSlsReqdDeliveryDate,
eindt AS TrdgDocPurgReqdDeliveryDate,
ekgrp AS PurchasingGroup,
ekorg AS PurchasingOrganization,
elifn AS Supplier,
erdat AS CreationDate,
ernam AS CreatedByUser,
cast( erzet as wb2_created_at preserving type ) AS CreationTime,
cast( evers_mm as wb2_purg_shipg_instrn preserving type ) AS TrdgDocPurgShipgInstrn,
cast( hkla as wb2_purg_deliv_addr preserving type ) AS TrdgDocPurgDelivAddrCat,
ihran AS QuotationSubmissionDate,
cast( ihrez as wb2_purg_doc_ext_ref preserving type ) AS TrdgDocPurgDocExtReference,
inco1_mm AS PurgIncotermsClassification,
inco1_sd AS SlsIncotermsClassification,
cast( inco2_l_mm as wb2_inco1_loc_mm preserving type ) AS TrdgDocPurgIncotermsLoc1Text,
cast( inco2_l_sd as wb2_inco1_loc_sd preserving type ) AS TrdgDocSlsIncotermsLoc1Text,
cast( inco2_mm as wb2_purg_incoterms2 preserving type ) AS PurgIncotermsTransferLocation,
inco2_sd AS SlsIncotermsTransferLocation,
cast( inco3_l_mm as wb2_inco2_loc_mm preserving type ) AS TrdgDocPurgIncotermsLoc2Text,
cast( inco3_l_sd as wb2_inco2_loc_sd preserving type ) AS TrdgDocSlsIncotermsLoc2Text,
cast( incov_mm as wb2_inco1_version_mm preserving type ) AS TrdgDocPurgIncotermsVersion,
cast( incov_sd as wb2_inco1_version_sd preserving type ) AS TrdgDocSalesIncotermsVersion,
cast( kalsm_mm as wb2_purg_prcg_proced preserving type ) AS TrdgDocPurgPricingProcedure,
cast( kdatb_mm as wb2_purg_valdty_start_dte preserving type ) AS TrdgDocPurgValidityStartDate,
cast( kdate_mm as wb2_purg_valdty_end_dte preserving type ) AS TrdgDocPurgValidityEndDate,
kufix AS FixedExchangeRateIsUsed,
cast( kurst_mm as wb2_purg_exch_rate_type preserving type ) AS TrdgDocPurgExchangeRateType,
kzabs_mm AS IsOrderAcknRqd,
kzazu AS OrderCombinationIsAllowed,
labnr AS PurgDocOrderAcknNumber,
lcnum AS InternalFinancialDocument,
cast( lpein_int as wb2_purg_deliv_date_type preserving type ) AS TrdgDocPurgDeliveryDateType,
mndid AS SEPAMandate,
posex_e AS UnderlyingPurchaseOrderItem,
posplit AS TrdgDocMnlPOSplit,
cast( prgrs_vbak as wb2_sls_deliv_dte_type preserving type ) AS TrdgDocSlsDeliveryDateType,
cast( prsdt_mm as wb2_purch_pricing_date preserving type ) AS TrdgDocPurgPricingDate,
cast( prsdt_sd as wb2_sales_pricing_date preserving type ) AS TrdgDocSalesPricingDate,
reswk AS SupplyingPlant,
retpc AS RetentionPercentage,
cast( telf1_mm as wb2_suplr_tel preserving type ) AS SupplierPhoneNumber,
termdes_mm AS PaymentTermsName,
cast( tkrate_mm as wb2_purg_exch_rate_no_cnext preserving type ) AS TrdgDocPurgExchangeRate,
unsez_mm AS CorrespncInternalReference,
cast( valdt as wb2_purg_fixedval_date preserving type ) AS TrdgDocPurgFixedValueDate,
cast( valdtd as wb2_sls_fixedval_date preserving type ) AS TrdgDocSalesFixedValueDate,
cast( verkf_mm as wb2_suplr_resp_sls_person preserving type ) AS SupplierRespSalesPersonName,
vsart AS ShippingType,
cast( waers_purch as wb2_purg_currency preserving type ) AS TrdgDocPurgCurrency,
cast( werk_mm as wb2_issuing_plant preserving type ) AS IssuingPlant,
cast( zlsch as wb2_sls_payt_method preserving type ) AS TrdgDocSalesPaymentMethod,
zterm AS TrdgDocPurgPaymentTerms,
zterm_sales AS TrdgDocSalesPaymentTerms,
knumv_mm AS TrdgDocPurgDocCndn,
cast ( kursk_sd as wb2_sls_exchrate_prcdetn preserving type ) AS TrdgDocPrcDetnExchRate,
cast( podkz as wb2_rlvt_pod_procg preserving type ) AS TrdgDocIsRlvtPoDProcg
FROM wbhd
LEFT OUTER JOIN R_TrdgDocPurgDelivAddrCat AS _TrdgDocPurgDelivAddrCat ON TrdgDocPurgDelivAddrCat = _TrdgDocPurgDelivAddrCat.TrdgDocPurgDelivAddrCat -- association [0..1]
LEFT OUTER JOIN R_TrdgDocPurgDocCat AS _TrdgDocPurgDocCat ON TrdgDocPurgDocCat = _TrdgDocPurgDocCat.PurchasingDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TrdgDocPurgCurrency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_ExchangeRateType AS _TrdgDocPurgExchangeRateType ON TrdgDocPurgExchangeRateType = _TrdgDocPurgExchangeRateType.ExchangeRateType -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _PurgIncotermsClassification ON PurgIncotermsClassification = _PurgIncotermsClassification.IncotermsClassification -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _SlsIncotermsClassification ON SlsIncotermsClassification = _SlsIncotermsClassification.IncotermsClassification -- association [0..1]
LEFT OUTER JOIN I_ShippingInstruction AS _ShippingInstruction ON TrdgDocPurgShipgInstrn = _ShippingInstruction.ShippingInstruction -- association [0..1]
LEFT OUTER JOIN I_SupplierConfControlKey AS _SupplierConfControlKey ON SupplierConfirmationControlKey = _SupplierConfControlKey.SupplierConfirmationControlKey -- association [0..1]
LEFT OUTER JOIN I_PaymentGuaranteeProcedure AS _PaymentGuaranteeProcedure ON PaymentGuaranteeProcedure = _PaymentGuaranteeProcedure.PaymentGuaranteeProcedure -- association [0..1]
LEFT OUTER JOIN I_ShippingType AS _ShippingType ON ShippingType = _ShippingType.ShippingType -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_PaymentTerms AS _TrdgDocPurgPaymentTerms ON TrdgDocPurgPaymentTerms = _TrdgDocPurgPaymentTerms.PaymentTerms -- association [0..1]
LEFT OUTER JOIN I_PaymentTerms AS _TrdgDocSalesPaymentTerms ON TrdgDocSalesPaymentTerms = _TrdgDocSalesPaymentTerms.PaymentTerms -- association [0..1]
LEFT OUTER JOIN I_IncotermsVersion AS _TrdgDocPurgIncotermsVersion ON TrdgDocPurgIncotermsVersion = _TrdgDocPurgIncotermsVersion.IncotermsVersion -- association [0..1]
LEFT OUTER JOIN I_IncotermsVersion AS _TrdgDocSlsIncotermsVersion ON TrdgDocSalesIncotermsVersion = _TrdgDocSlsIncotermsVersion.IncotermsVersion -- association [0..1]
;
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