I_RFM_SalesDocument
Sales Document Basic
I_RFM_SalesDocument is a Basic CDS View (Dimension) that provides data about "Sales Document Basic" in SAP S/4HANA. It reads from 1 data source (vbak) and exposes 117 fields with key field SalesDocument. It has 47 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vbak | vbak | from |
Associations (47)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SDDocumentCompletePartners | _PartFuncMarkFor | $projection.SalesDocument = _PartFuncMarkFor.SDDocument and _PartFuncMarkFor.SDDocumentItem = '000000' and _PartFuncMarkFor.PartnerFunction = 'MF' |
| [0..*] | I_RFM_SalesDocumentItem | _ItemBasic | $projection.SalesDocument = _ItemBasic.SalesDocument |
| [0..1] | I_SDDocumentCategory | _SDDocumentCategory | $projection.SDDocumentCategory = _SDDocumentCategory.SDDocumentCategory |
| [0..1] | I_SalesDocumentType | _SalesDocumentType | $projection.SalesDocumentType = _SalesDocumentType.SalesDocumentType |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | I_DistributionChannel | _DistributionChannel | $projection.DistributionChannel = _DistributionChannel.DistributionChannel |
| [0..1] | I_Division | _OrganizationDivision | $projection.OrganizationDivision = _OrganizationDivision.Division |
| [0..1] | I_SalesGroup | _SalesGroup | $projection.SalesGroup = _SalesGroup.SalesGroup |
| [0..1] | I_SalesOffice | _SalesOffice | $projection.SalesOffice = _SalesOffice.SalesOffice |
| [0..1] | I_Customer | _SoldToParty | $projection.SoldToParty = _SoldToParty.Customer |
| [0..1] | I_Customer | _ShipToParty | $projection.ShipToParty = _ShipToParty.Customer |
| [0..1] | I_AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | $projection.AdditionalCustomerGroup1 = _AdditionalCustomerGroup1.AdditionalCustomerGroup1 |
| [0..1] | I_AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | $projection.AdditionalCustomerGroup2 = _AdditionalCustomerGroup2.AdditionalCustomerGroup2 |
| [0..1] | I_AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | $projection.AdditionalCustomerGroup3 = _AdditionalCustomerGroup3.AdditionalCustomerGroup3 |
| [0..1] | I_AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | $projection.AdditionalCustomerGroup4 = _AdditionalCustomerGroup4.AdditionalCustomerGroup4 |
| [0..1] | I_AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | $projection.AdditionalCustomerGroup5 = _AdditionalCustomerGroup5.AdditionalCustomerGroup5 |
| [0..1] | I_SDDocumentReason | _SDDocumentReason | $projection.SDDocumentReason = _SDDocumentReason.SDDocumentReason |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_ShippingCondition | _ShippingCondition | $projection.ShippingCondition = _ShippingCondition.ShippingCondition |
| [0..1] | I_DeliveryBlockReason | _DeliveryBlockReason | $projection.DeliveryBlockReason = _DeliveryBlockReason.DeliveryBlockReason |
| [0..1] | I_BillingBlockReason | _HeaderBillingBlockReason | $projection.HeaderBillingBlockReason = _HeaderBillingBlockReason.BillingBlockReason |
| [0..*] | I_EngagementProjectItem | _EngagementProjectItem | $projection.SalesDocument = _EngagementProjectItem.EngagementProjectItem and _EngagementProjectItem.EngagementProjectItemType = '0SOH' |
| [0..1] | I_SalesArea | _SalesArea | $projection.SalesOrganization = _SalesArea.SalesOrganization and $projection.DistributionChannel = _SalesArea.DistributionChannel and $projection.OrganizationDivision = _SalesArea.Division |
| [0..1] | I_OverallSDDocumentRjcnStatus | _OverallSDDocumentRejectionSts | $projection.OverallSDDocumentRejectionSts = _OverallSDDocumentRejectionSts.OverallSDDocumentRejectionSts |
| [0..1] | I_TotalBlockStatus | _TotalBlockStatus | $projection.TotalBlockStatus = _TotalBlockStatus.TotalBlockStatus |
| [0..1] | I_OverallTotalDeliveryStatus | _OverallTotalDeliveryStatus | $projection.OverallTotalDeliveryStatus = _OverallTotalDeliveryStatus.OverallTotalDeliveryStatus |
| [0..1] | I_TotalCreditCheckStatus | _TotalCreditCheckStatus | $projection.TotalCreditCheckStatus = _TotalCreditCheckStatus.TotalCreditCheckStatus |
| [0..1] | I_OverallSDProcessStatus | _OverallSDProcessStatus | $projection.OverallSDProcessStatus = _OverallSDProcessStatus.OverallSDProcessStatus |
| [0..1] | I_HdrGenIncompletionStatus | _HdrGeneralIncompletionStatus | $projection.HdrGeneralIncompletionStatus = _HdrGeneralIncompletionStatus.HdrGeneralIncompletionStatus |
| [0..1] | I_OvrlItmGenIncompletionSts | _OvrlItmGeneralIncompletionSts | $projection.OvrlItmGeneralIncompletionSts = _OvrlItmGeneralIncompletionSts.OvrlItmGeneralIncompletionSts |
| [0..1] | I_SalesDistrict | _SalesDistrict | $projection.SalesDistrict = _SalesDistrict.SalesDistrict |
| [0..1] | I_CustomerGroup | _CustomerGroup | $projection.CustomerGroup = _CustomerGroup.CustomerGroup |
| [0..1] | I_CustomerPaymentTerms | _CustomerPaymentTerms | $projection.CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms |
| [0..1] | I_IncotermsClassification | _IncotermsClassification | $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification |
| [0..*] | I_CreditControlAreaText | _CreditControlAreaText | $projection.CreditControlArea = _CreditControlAreaText.CreditControlArea |
| [0..1] | I_CreditControlArea | _CreditControlArea | $projection.CreditControlArea = _CreditControlArea.CreditControlArea |
| [0..1] | I_ShippingType | _ShippingType | $projection.ShippingType = _ShippingType.ShippingType |
| [0..1] | I_CustomerPurchaseOrderType | _CustomerPurchaseOrderType | $projection.CustomerPurchaseOrderType = _CustomerPurchaseOrderType.CustomerPurchaseOrderType |
| [0..1] | I_HdrBillgIncompletionStatus | _HeaderBillgIncompletionStatus | $projection.HeaderBillgIncompletionStatus = _HeaderBillgIncompletionStatus.HeaderBillgIncompletionStatus |
| [0..1] | I_OvrlItmBillgIncompltnSts | _OvrlItmBillingIncompletionSts | $projection.OvrlItmBillingIncompletionSts = _OvrlItmBillingIncompletionSts.OvrlItmBillingIncompletionSts |
| [0..1] | I_OvrlItmDelivIncompletionSts | _OvrlItmDelivIncompletionSts | $projection.OvrlItmDelivIncompletionSts = _OvrlItmDelivIncompletionSts.OvrlItmDelivIncompletionSts |
| [0..1] | I_OverallPrcIncompletionSts | _OverallPricingIncompletionSts | $projection.OverallPricingIncompletionSts = _OverallPricingIncompletionSts.OverallPricingIncompletionSts |
| [0..1] | I_HdrDelivIncompletionStatus | _HeaderDelivIncompletionStatus | $projection.HeaderDelivIncompletionStatus = _HeaderDelivIncompletionStatus.HeaderDelivIncompletionStatus |
| [0..1] | I_CustomerPriceGroup | _CustomerPriceGroup | $projection.CustomerPriceGroup = _CustomerPriceGroup.CustomerPriceGroup |
| [0..1] | I_ContactPersonStdDepartment | _ContactPersonStdDepartment | $projection.DepartmentClassificationByCust = _ContactPersonStdDepartment.ContactPersonStdDepartment association[0..1] to I_RetailAddlCustGrp6 as _RetailAddlCustGrp6 on $projection.RetailAdditionalCustomerGrp6 = _RetailAddlCustGrp6.RetailAdditionalCustomerGrp6 and $projection.SalesOrganization = _RetailAddlCustGrp6.SalesOrganization association[0..1] to I_RetailAddlCustGrp7 as _RetailAddlCustGrp7 on $projection.RetailAdditionalCustomerGrp7 = _RetailAddlCustGrp7.RetailAdditionalCustomerGrp7 and $projection.SalesOrganization = _RetailAddlCustGrp7.SalesOrganization association[0..1] to I_RetailAddlCustGrp8 as _RetailAddlCustGrp8 on $projection.RetailAdditionalCustomerGrp8 = _RetailAddlCustGrp8.RetailAdditionalCustomerGrp8 and $projection.SalesOrganization = _RetailAddlCustGrp8.SalesOrganization association[0..1] to I_RetailAddlCustGrp9 as _RetailAddlCustGrp9 on $projection.RetailAdditionalCustomerGrp9 = _RetailAddlCustGrp9.RetailAdditionalCustomerGrp9 and $projection.SalesOrganization = _RetailAddlCustGrp9.SalesOrganization association[0..1] to I_RetailAddlCustGrp10 as _RetailAddlCustGrp10 on $projection.RetailAdditionalCustomerGrp10 = _RetailAddlCustGrp10.RetailAdditionalCustomerGrp10 and $projection.SalesOrganization = _RetailAddlCustGrp10.SalesOrganization |
| [0..1] | I_OverallOrdReltdBillgStatus | _OverallOrdReltdBillgStatus | $projection.OverallOrdReltdBillgStatus = _OverallOrdReltdBillgStatus.OverallOrdReltdBillgStatus |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Sales Document Basic | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IRFMSALESDOC | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.representativeKey | SalesDocument | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Metadata.allowExtensions | true | view |
Fields (117)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | vbak | vbeln | SD Sched. Agmt |
| SDDocumentCategory | vbak | vbtyp | TSW Det.Doc typ | |
| SalesDocumentType | vbak | auart | Sales Doc. Type | |
| SoldToParty | vbak | kunnr | Stock customer | |
| ShipToParty | vbpa | kunnr | Stock customer | |
| SalesOrganization | vbak | vkorg | SD Sales Org. | |
| DistributionChannel | vbak | vtweg | RefDistCh-Cust/Mat. | |
| OrganizationDivision | vbak | spart | Source supplier | |
| SalesGroup | vbak | vkgrp | Sales Group | |
| SalesOffice | vbak | vkbur | Sales Office | |
| SalesDistrict | vbkd | bzirk | Sales District | |
| RequestedDeliveryDate | ||||
| ShippingType | vbkd | vsart | Shp.type: stage | |
| ShippingCondition | vbak | vsbed | Shipping Conditions | |
| IncotermsClassification | vbkd | inco1 | Incoterms | |
| IncotermsLocation1 | vbkd | inco2_l | Inco. Location1 | |
| CreatedByUser | vbak | ernam | User Name | |
| CreationDate | vbak | erdat | Entered On | |
| FashionCancelDate | vbak | fsh_candate | Cancel Date | |
| CustomerGroup | vbkd | kdgrp | Customer group | |
| AdditionalCustomerGroup1 | vbak | kvgr1 | Customer Grp 1 | |
| AdditionalCustomerGroup2 | vbak | kvgr2 | Customer Grp 2 | |
| AdditionalCustomerGroup3 | vbak | kvgr3 | Customer Grp 3 | |
| AdditionalCustomerGroup4 | vbak | kvgr4 | Customer Grp 4 | |
| AdditionalCustomerGroup5 | vbak | kvgr5 | Customer Grp 5 | |
| RetailAdditionalCustomerGrp6 | fsh_kvgr6 | Customer Grp 6 | ||
| RetailAdditionalCustomerGrp7 | fsh_kvgr7 | Customer Grp 7 | ||
| RetailAdditionalCustomerGrp8 | fsh_kvgr8 | Customer Grp 8 | ||
| RetailAdditionalCustomerGrp9 | fsh_kvgr9 | Customer Grp 9 | ||
| RetailAdditionalCustomerGrp10 | fsh_kvgr10 | Customer Grp 10 | ||
| CustomerConditionGroup1 | vbkd | kdkg1 | Condition grp 1 | |
| CustomerConditionGroup2 | vbkd | kdkg2 | Condition grp 2 | |
| CustomerConditionGroup3 | vbkd | kdkg3 | Condition grp 3 | |
| CustomerConditionGroup4 | vbkd | kdkg4 | Condition grp 4 | |
| CustomerConditionGroup5 | vbkd | kdkg5 | Condition grp 5 | |
| DepartmentClassificationByCust | vbkd | abtnr | Department | |
| SalesDocumentDate | vbak | audat | Trans. Period End | |
| CreditControlArea | vbak | kkber | Cred.Contr.Area | |
| DeliveryBlockReason | vbak | lifsk | Delivery Block | |
| HeaderBillingBlockReason | vbak | faksk | Billing Block | |
| OverallOrdReltdBillgStatus | vbak | fksak | Ord.Rel.BillgSt | |
| BillingDocumentDate | vbkd | fkdat | Sett. Date | |
| TotalNetAmount | vbak | netwr | Value | |
| TransactionCurrency | vbak | waerk | Doc. Currency | |
| PricingDate | vbkd | prsdt | Pricing Date | |
| CustomerPriceGroup | vbkd | konda | CustPrice Group | |
| SDDocumentReason | vbak | augru | Sales Document Reason | |
| CustomerPurchaseOrderType | vbak | bsark | Pur. Ord. Type | |
| CustomerPurchaseOrderDate | vbak | bstdk | Cust. Ref. Date | |
| PurchaseOrderByCustomer | vbkd | bstkd | PO Number | |
| CustomerPaymentTerms | vbkd | zterm | Terms of Payment | |
| OverallSDProcessStatus | vbak | gbstk | Overall Status | |
| HdrGeneralIncompletionStatus | vbak | uvall | Overall Header | |
| OvrlItmGeneralIncompletionSts | vbak | uvals | All Items | |
| OverallSDDocumentRejectionSts | vbak | abstk | Rejection Sts | |
| OverallTotalDeliveryStatus | vbak | lfgsk | Ovrl Deliv. Sts | |
| TotalCreditCheckStatus | vbak | cmgst | OverallCredStat | |
| TotalBlockStatus | vbak | spstg | Ovrl Block Sts | |
| HeaderBillgIncompletionStatus | vbak | uvfak | Billing Doc. | |
| OvrlItmBillingIncompletionSts | vbak | uvfas | Billg–All Items | |
| OverallPricingIncompletionSts | vbak | uvprs | Pricing – Item | |
| HeaderDelivIncompletionStatus | vbak | uvvlk | Delivery – Item | |
| OvrlItmDelivIncompletionSts | vbak | uvvls | Deliv–All Itms | |
| AgrmtValdtyStartDate | vbak | guebg | Valid From | |
| AgrmtValdtyEndDate | vbak | gueen | Valid To | |
| _ItemBasic | _ItemBasic | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _SalesDocumentType | _SalesDocumentType | |||
| _CreatedByUser | _CreatedByUser | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOffice | _SalesOffice | |||
| _SoldToParty | _SoldToParty | |||
| _CustomerGroup | _CustomerGroup | |||
| _AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | |||
| _AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | |||
| _AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | |||
| _AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | |||
| _AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | |||
| _SDDocumentReason | _SDDocumentReason | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _ShippingCondition | _ShippingCondition | |||
| _DeliveryBlockReason | _DeliveryBlockReason | |||
| _HeaderBillingBlockReason | _HeaderBillingBlockReason | |||
| _EngagementProjectItem | _EngagementProjectItem | |||
| _SalesArea | _SalesArea | |||
| _OverallSDDocumentRejectionSts | _OverallSDDocumentRejectionSts | |||
| _TotalBlockStatus | _TotalBlockStatus | |||
| _OverallTotalDeliveryStatus | _OverallTotalDeliveryStatus | |||
| _TotalCreditCheckStatus | _TotalCreditCheckStatus | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _HdrGeneralIncompletionStatus | _HdrGeneralIncompletionStatus | |||
| _OvrlItmGeneralIncompletionSts | _OvrlItmGeneralIncompletionSts | |||
| _SalesDistrict | _SalesDistrict | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _ShipToParty | _ShipToParty | |||
| _CreditControlAreaText | _CreditControlAreaText | |||
| _CreditControlArea | _CreditControlArea | |||
| _ShippingType | _ShippingType | |||
| _CustomerPurchaseOrderType | _CustomerPurchaseOrderType | |||
| _HeaderBillgIncompletionStatus | _HeaderBillgIncompletionStatus | |||
| _OvrlItmBillingIncompletionSts | _OvrlItmBillingIncompletionSts | |||
| _OverallPricingIncompletionSts | _OverallPricingIncompletionSts | |||
| _HeaderDelivIncompletionStatus | _HeaderDelivIncompletionStatus | |||
| _OvrlItmDelivIncompletionSts | _OvrlItmDelivIncompletionSts | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _ContactPersonStdDepartment | _ContactPersonStdDepartment | |||
| _RetailAddlCustGrp6 | _RetailAddlCustGrp6 | |||
| _RetailAddlCustGrp7 | _RetailAddlCustGrp7 | |||
| _RetailAddlCustGrp8 | _RetailAddlCustGrp8 | |||
| _RetailAddlCustGrp9 | _RetailAddlCustGrp9 | |||
| _RetailAddlCustGrp10 | _RetailAddlCustGrp10 | |||
| _OverallOrdReltdBillgStatus | _OverallOrdReltdBillgStatus | |||
| _PartFuncMarkFor | _PartFuncMarkFor |
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_RFM_SalesDocument.
-- 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_RFM_SalesDocument AS
SELECT
vbak.vbeln AS SalesDocument,
vbak.vbtyp AS SDDocumentCategory,
vbak.auart AS SalesDocumentType,
vbak.kunnr AS SoldToParty,
vbpa.kunnr AS ShipToParty,
vbak.vkorg AS SalesOrganization,
vbak.vtweg AS DistributionChannel,
vbak.spart AS OrganizationDivision,
vbak.vkgrp AS SalesGroup,
vbak.vkbur AS SalesOffice,
vbkd.bzirk AS SalesDistrict,
cast(vbak.vdatu as reqd_delivery_date preserving type) AS RequestedDeliveryDate,
vbkd.vsart AS ShippingType,
vbak.vsbed AS ShippingCondition,
vbkd.inco1 AS IncotermsClassification,
vbkd.inco2_l AS IncotermsLocation1,
vbak.ernam AS CreatedByUser,
vbak.erdat AS CreationDate,
vbak.fsh_candate AS FashionCancelDate,
vbkd.kdgrp AS CustomerGroup,
vbak.kvgr1 AS AdditionalCustomerGroup1,
vbak.kvgr2 AS AdditionalCustomerGroup2,
vbak.kvgr3 AS AdditionalCustomerGroup3,
vbak.kvgr4 AS AdditionalCustomerGroup4,
vbak.kvgr5 AS AdditionalCustomerGroup5,
fsh_kvgr6 AS RetailAdditionalCustomerGrp6,
fsh_kvgr7 AS RetailAdditionalCustomerGrp7,
fsh_kvgr8 AS RetailAdditionalCustomerGrp8,
fsh_kvgr9 AS RetailAdditionalCustomerGrp9,
fsh_kvgr10 AS RetailAdditionalCustomerGrp10,
vbkd.kdkg1 AS CustomerConditionGroup1,
vbkd.kdkg2 AS CustomerConditionGroup2,
vbkd.kdkg3 AS CustomerConditionGroup3,
vbkd.kdkg4 AS CustomerConditionGroup4,
vbkd.kdkg5 AS CustomerConditionGroup5,
vbkd.abtnr AS DepartmentClassificationByCust,
vbak.audat AS SalesDocumentDate,
vbak.kkber AS CreditControlArea,
vbak.lifsk AS DeliveryBlockReason,
vbak.faksk AS HeaderBillingBlockReason,
vbak.fksak AS OverallOrdReltdBillgStatus,
vbkd.fkdat AS BillingDocumentDate,
vbak.netwr AS TotalNetAmount,
vbak.waerk AS TransactionCurrency,
vbkd.prsdt AS PricingDate,
vbkd.konda AS CustomerPriceGroup,
vbak.augru AS SDDocumentReason,
vbak.bsark AS CustomerPurchaseOrderType,
vbak.bstdk AS CustomerPurchaseOrderDate,
vbkd.bstkd AS PurchaseOrderByCustomer,
vbkd.zterm AS CustomerPaymentTerms,
vbak.gbstk AS OverallSDProcessStatus,
vbak.uvall AS HdrGeneralIncompletionStatus,
vbak.uvals AS OvrlItmGeneralIncompletionSts,
vbak.abstk AS OverallSDDocumentRejectionSts,
vbak.lfgsk AS OverallTotalDeliveryStatus,
vbak.cmgst AS TotalCreditCheckStatus,
vbak.spstg AS TotalBlockStatus,
vbak.uvfak AS HeaderBillgIncompletionStatus,
vbak.uvfas AS OvrlItmBillingIncompletionSts,
vbak.uvprs AS OverallPricingIncompletionSts,
vbak.uvvlk AS HeaderDelivIncompletionStatus,
vbak.uvvls AS OvrlItmDelivIncompletionSts,
vbak.guebg AS AgrmtValdtyStartDate,
vbak.gueen AS AgrmtValdtyEndDate
FROM vbak
LEFT OUTER JOIN I_SDDocumentCompletePartners AS _PartFuncMarkFor ON SalesDocument = _PartFuncMarkFor.SDDocument AND _PartFuncMarkFor.SDDocumentItem = '000000' AND _PartFuncMarkFor.PartnerFunction = 'MF' -- association [0..1]
LEFT OUTER JOIN I_RFM_SalesDocumentItem AS _ItemBasic ON SalesDocument = _ItemBasic.SalesDocument -- association [0..*]
LEFT OUTER JOIN I_SDDocumentCategory AS _SDDocumentCategory ON SDDocumentCategory = _SDDocumentCategory.SDDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentType AS _SalesDocumentType ON SalesDocumentType = _SalesDocumentType.SalesDocumentType -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_Division AS _OrganizationDivision ON OrganizationDivision = _OrganizationDivision.Division -- association [0..1]
LEFT OUTER JOIN I_SalesGroup AS _SalesGroup ON SalesGroup = _SalesGroup.SalesGroup -- association [0..1]
LEFT OUTER JOIN I_SalesOffice AS _SalesOffice ON SalesOffice = _SalesOffice.SalesOffice -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer -- association [0..1]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer -- association [0..1]
LEFT OUTER JOIN I_AdditionalCustomerGroup1 AS _AdditionalCustomerGroup1 ON AdditionalCustomerGroup1 = _AdditionalCustomerGroup1.AdditionalCustomerGroup1 -- association [0..1]
LEFT OUTER JOIN I_AdditionalCustomerGroup2 AS _AdditionalCustomerGroup2 ON AdditionalCustomerGroup2 = _AdditionalCustomerGroup2.AdditionalCustomerGroup2 -- association [0..1]
LEFT OUTER JOIN I_AdditionalCustomerGroup3 AS _AdditionalCustomerGroup3 ON AdditionalCustomerGroup3 = _AdditionalCustomerGroup3.AdditionalCustomerGroup3 -- association [0..1]
LEFT OUTER JOIN I_AdditionalCustomerGroup4 AS _AdditionalCustomerGroup4 ON AdditionalCustomerGroup4 = _AdditionalCustomerGroup4.AdditionalCustomerGroup4 -- association [0..1]
LEFT OUTER JOIN I_AdditionalCustomerGroup5 AS _AdditionalCustomerGroup5 ON AdditionalCustomerGroup5 = _AdditionalCustomerGroup5.AdditionalCustomerGroup5 -- association [0..1]
LEFT OUTER JOIN I_SDDocumentReason AS _SDDocumentReason ON SDDocumentReason = _SDDocumentReason.SDDocumentReason -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_ShippingCondition AS _ShippingCondition ON ShippingCondition = _ShippingCondition.ShippingCondition -- association [0..1]
LEFT OUTER JOIN I_DeliveryBlockReason AS _DeliveryBlockReason ON DeliveryBlockReason = _DeliveryBlockReason.DeliveryBlockReason -- association [0..1]
LEFT OUTER JOIN I_BillingBlockReason AS _HeaderBillingBlockReason ON HeaderBillingBlockReason = _HeaderBillingBlockReason.BillingBlockReason -- association [0..1]
LEFT OUTER JOIN I_EngagementProjectItem AS _EngagementProjectItem ON SalesDocument = _EngagementProjectItem.EngagementProjectItem AND _EngagementProjectItem.EngagementProjectItemType = '0SOH' -- association [0..*]
LEFT OUTER JOIN I_SalesArea AS _SalesArea ON SalesOrganization = _SalesArea.SalesOrganization AND DistributionChannel = _SalesArea.DistributionChannel AND OrganizationDivision = _SalesArea.Division -- association [0..1]
LEFT OUTER JOIN I_OverallSDDocumentRjcnStatus AS _OverallSDDocumentRejectionSts ON OverallSDDocumentRejectionSts = _OverallSDDocumentRejectionSts.OverallSDDocumentRejectionSts -- association [0..1]
LEFT OUTER JOIN I_TotalBlockStatus AS _TotalBlockStatus ON TotalBlockStatus = _TotalBlockStatus.TotalBlockStatus -- association [0..1]
LEFT OUTER JOIN I_OverallTotalDeliveryStatus AS _OverallTotalDeliveryStatus ON OverallTotalDeliveryStatus = _OverallTotalDeliveryStatus.OverallTotalDeliveryStatus -- association [0..1]
LEFT OUTER JOIN I_TotalCreditCheckStatus AS _TotalCreditCheckStatus ON TotalCreditCheckStatus = _TotalCreditCheckStatus.TotalCreditCheckStatus -- association [0..1]
LEFT OUTER JOIN I_OverallSDProcessStatus AS _OverallSDProcessStatus ON OverallSDProcessStatus = _OverallSDProcessStatus.OverallSDProcessStatus -- association [0..1]
LEFT OUTER JOIN I_HdrGenIncompletionStatus AS _HdrGeneralIncompletionStatus ON HdrGeneralIncompletionStatus = _HdrGeneralIncompletionStatus.HdrGeneralIncompletionStatus -- association [0..1]
LEFT OUTER JOIN I_OvrlItmGenIncompletionSts AS _OvrlItmGeneralIncompletionSts ON OvrlItmGeneralIncompletionSts = _OvrlItmGeneralIncompletionSts.OvrlItmGeneralIncompletionSts -- association [0..1]
LEFT OUTER JOIN I_SalesDistrict AS _SalesDistrict ON SalesDistrict = _SalesDistrict.SalesDistrict -- association [0..1]
LEFT OUTER JOIN I_CustomerGroup AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup -- association [0..1]
LEFT OUTER JOIN I_CustomerPaymentTerms AS _CustomerPaymentTerms ON CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON IncotermsClassification = _IncotermsClassification.IncotermsClassification -- association [0..1]
LEFT OUTER JOIN I_CreditControlAreaText AS _CreditControlAreaText ON CreditControlArea = _CreditControlAreaText.CreditControlArea -- association [0..*]
LEFT OUTER JOIN I_CreditControlArea AS _CreditControlArea ON CreditControlArea = _CreditControlArea.CreditControlArea -- association [0..1]
LEFT OUTER JOIN I_ShippingType AS _ShippingType ON ShippingType = _ShippingType.ShippingType -- association [0..1]
LEFT OUTER JOIN I_CustomerPurchaseOrderType AS _CustomerPurchaseOrderType ON CustomerPurchaseOrderType = _CustomerPurchaseOrderType.CustomerPurchaseOrderType -- association [0..1]
LEFT OUTER JOIN I_HdrBillgIncompletionStatus AS _HeaderBillgIncompletionStatus ON HeaderBillgIncompletionStatus = _HeaderBillgIncompletionStatus.HeaderBillgIncompletionStatus -- association [0..1]
LEFT OUTER JOIN I_OvrlItmBillgIncompltnSts AS _OvrlItmBillingIncompletionSts ON OvrlItmBillingIncompletionSts = _OvrlItmBillingIncompletionSts.OvrlItmBillingIncompletionSts -- association [0..1]
LEFT OUTER JOIN I_OvrlItmDelivIncompletionSts AS _OvrlItmDelivIncompletionSts ON OvrlItmDelivIncompletionSts = _OvrlItmDelivIncompletionSts.OvrlItmDelivIncompletionSts -- association [0..1]
LEFT OUTER JOIN I_OverallPrcIncompletionSts AS _OverallPricingIncompletionSts ON OverallPricingIncompletionSts = _OverallPricingIncompletionSts.OverallPricingIncompletionSts -- association [0..1]
LEFT OUTER JOIN I_HdrDelivIncompletionStatus AS _HeaderDelivIncompletionStatus ON HeaderDelivIncompletionStatus = _HeaderDelivIncompletionStatus.HeaderDelivIncompletionStatus -- association [0..1]
LEFT OUTER JOIN I_CustomerPriceGroup AS _CustomerPriceGroup ON CustomerPriceGroup = _CustomerPriceGroup.CustomerPriceGroup -- association [0..1]
LEFT OUTER JOIN I_ContactPersonStdDepartment AS _ContactPersonStdDepartment ON DepartmentClassificationByCust = _ContactPersonStdDepartment.ContactPersonStdDepartment association[0..1] to I_RetailAddlCustGrp6 as _RetailAddlCustGrp6 on RetailAdditionalCustomerGrp6 = _RetailAddlCustGrp6.RetailAdditionalCustomerGrp6 AND SalesOrganization = _RetailAddlCustGrp6.SalesOrganization association[0..1] to I_RetailAddlCustGrp7 as _RetailAddlCustGrp7 on RetailAdditionalCustomerGrp7 = _RetailAddlCustGrp7.RetailAdditionalCustomerGrp7 AND SalesOrganization = _RetailAddlCustGrp7.SalesOrganization association[0..1] to I_RetailAddlCustGrp8 as _RetailAddlCustGrp8 on RetailAdditionalCustomerGrp8 = _RetailAddlCustGrp8.RetailAdditionalCustomerGrp8 AND SalesOrganization = _RetailAddlCustGrp8.SalesOrganization association[0..1] to I_RetailAddlCustGrp9 as _RetailAddlCustGrp9 on RetailAdditionalCustomerGrp9 = _RetailAddlCustGrp9.RetailAdditionalCustomerGrp9 AND SalesOrganization = _RetailAddlCustGrp9.SalesOrganization association[0..1] to I_RetailAddlCustGrp10 as _RetailAddlCustGrp10 on RetailAdditionalCustomerGrp10 = _RetailAddlCustGrp10.RetailAdditionalCustomerGrp10 AND SalesOrganization = _RetailAddlCustGrp10.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_OverallOrdReltdBillgStatus AS _OverallOrdReltdBillgStatus ON OverallOrdReltdBillgStatus = _OverallOrdReltdBillgStatus.OverallOrdReltdBillgStatus -- 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