C_SlsDocFlfmtIssue
Sales Order Fulfillment Issues
C_SlsDocFlfmtIssue is a Consumption CDS View that provides data about "Sales Order Fulfillment Issues" in SAP S/4HANA. It reads from 2 data sources (I_SalesOrderFlfmtIssueBasic, I_SalesDocument) and exposes 145 fields with key fields SalesDocument, DeliveryDocument, BillingDocument, PurchasingDocument, ManufacturingOrder. It has 39 associations to related views. Part of development package ODATA_SD_SOFI.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesOrderFlfmtIssueBasic | Issue | inner |
| I_SalesDocument | SalesDocument | from |
Associations (39)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CreditManagementSegment | _CreditSegment | $projection.creditsegment = _CreditSegment.CreditSegment |
| [0..1] | I_SalesDocumentRjcnReason | _SalesDocumentRjcnReason | $projection.SalesDocumentRjcnReason = _SalesDocumentRjcnReason.SalesDocumentRjcnReason |
| [0..*] | I_IssueText | _IssueText | $projection.Issue = _IssueText.Issue |
| [0..*] | I_IssueCategoryText | _IssueCategoryText | $projection.IssueCategory = _IssueCategoryText.IssueCategory |
| [0..*] | I_SalesOrganizationText | _SalesOrganizationText | $projection.SalesOrganization = _SalesOrganizationText.SalesOrganization |
| [0..*] | I_DistributionChannelText | _DistributionChannelText | $projection.DistributionChannel = _DistributionChannelText.DistributionChannel |
| [0..*] | I_DivisionText | _DivisionText | $projection.OrganizationDivision = _DivisionText.Division |
| [0..*] | I_SalesGroupText | _SalesGroupText | $projection.SalesGroup = _SalesGroupText.SalesGroup |
| [0..*] | I_SalesOfficeText | _SalesOfficeText | $projection.SalesOffice = _SalesOfficeText.SalesOffice |
| [0..*] | I_CreditManagementSegmentTxt | _CreditSegmentText | $projection.creditsegment = _CreditSegmentText.CreditSegment association[0..*] to I_CustomerClassificationText as _CustomerClassificationText on $projection.customerclassification = _CustomerClassificationText.CustomerClassification |
| [0..*] | I_DueDateStatusText | _DueDateStatusText | $projection.DueDateStatus = _DueDateStatusText.DueDateStatus |
| [0..*] | I_IsPotentialFutureIssText | _IsPotentialFutureIssText | $projection.IsPotentialFutureIssue = _IsPotentialFutureIssText.IsPotentialFutureIssue |
| [0..*] | I_SalesDocumentTypeText | _SalesDocumentTypeText | $projection.SalesDocumentType = _SalesDocumentTypeText.SalesDocumentType |
| [0..*] | I_SDDocumentCategoryText | _SDDocumentCategoryText | $projection.SDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory |
| [0..*] | I_DeliveryBlockReasonText | _DeliveryBlockReasonText | $projection.DeliveryBlockReason = _DeliveryBlockReasonText.DeliveryBlockReason |
| [0..*] | I_BillingBlockReasonText | _BillingBlockReasonText | $projection.HeaderBillingBlockReason = _BillingBlockReasonText.BillingBlockReason |
| [0..*] | I_OverallPurchaseConfStatusT | _OverallPurchaseConfStatusT | $projection.OverallPurchaseConfStatus = _OverallPurchaseConfStatusT.OverallPurchaseConfStatus |
| [0..*] | I_HdrGenIncompletionStatusT | _HdrGenIncompletionStatusT | $projection.HdrGeneralIncompletionStatus = _HdrGenIncompletionStatusT.HdrGeneralIncompletionStatus |
| [0..*] | I_HdrDelivIncompletionStatusT | _HdrDelivIncompletionStatusT | $projection.HeaderDelivIncompletionStatus = _HdrDelivIncompletionStatusT.HeaderDelivIncompletionStatus |
| [0..*] | I_OverallPrcIncompletionStsT | _OverallPrcIncompletionStsT | $projection.OverallPricingIncompletionSts = _OverallPrcIncompletionStsT.OverallPricingIncompletionSts |
| [0..*] | I_HdrBillgIncompletionStatusT | _HdrBillgIncompletionStatusT | $projection.HeaderBillgIncompletionStatus = _HdrBillgIncompletionStatusT.HeaderBillgIncompletionStatus |
| [0..*] | I_OvrlItmGenIncompletionStsT | _OvrlItmGenIncompletionStsT | $projection.OvrlItmGeneralIncompletionSts = _OvrlItmGenIncompletionStsT.OvrlItmGeneralIncompletionSts |
| [0..*] | I_OvrlItmBillgIncompltnStsText | _OvrlItmBillgIncompltnStsT | $projection.OvrlItmBillingIncompletionSts = _OvrlItmBillgIncompltnStsT.OvrlItmBillingIncompletionSts |
| [0..*] | I_OvrlItmDelivIncompletionStsT | _OvrlItmDelivIncompletionStsT | $projection.OvrlItmDelivIncompletionSts = _OvrlItmDelivIncompletionStsT.OvrlItmDelivIncompletionSts |
| [0..*] | I_PaytAuthsnCreditCheckStsText | _PaytAuthsnCreditCheckStsText | $projection.PaytAuthsnCreditCheckSts = _PaytAuthsnCreditCheckStsText.PaytAuthsnCreditCheckSts |
| [0..*] | I_SalesDocApprovalStatusT | _SalesDocApprovalStatusT | $projection.SalesDocApprovalStatus = _SalesDocApprovalStatusT.SalesDocApprovalStatus |
| [0..*] | I_OverallChmlCmplncStatusText | _OverallChmlCmplncStatusText | $projection.OverallChmlCmplncStatus = _OverallChmlCmplncStatusText.OverallChmlCmplncStatus |
| [0..*] | I_OverallDangerousGoodsStsTxt | _OverallDangerousGoodsStsTxt | $projection.OverallDangerousGoodsStatus = _OverallDangerousGoodsStsTxt.OverallDangerousGoodsStatus |
| [0..*] | I_OvrlSftyDataSheetStsTxt | _OvrlSftyDataSheetStsTxt | $projection.OverallSafetyDataSheetStatus = _OvrlSftyDataSheetStsTxt.OverallSafetyDataSheetStatus |
| [0..*] | I_OvrlTradeCmplncEmbargoStsTxt | _OvrlTradeCmplncEmbargoStsTxt | $projection.OverallTrdCmplncEmbargoSts = _OvrlTradeCmplncEmbargoStsTxt.OverallTrdCmplncEmbargoSts |
| [0..*] | I_OvTrdComplSanctListChkStsTxt | _OvTrdComplSanctListChkStsTxt | $projection.OvrlTrdCmplncSnctndListChkSts = _OvTrdComplSanctListChkStsTxt.OvrlTrdCmplncSnctndListChkSts |
| [0..*] | I_OvTrdComplLegalCtrlChkStsTxt | _OvTrdComplLegalCtrlChkStsTxt | $projection.OvrlTrdCmplncLegalCtrlChkSts = _OvTrdComplLegalCtrlChkStsTxt.OvrlTrdCmplncLegalCtrlChkSts |
| [0..*] | I_CurrencyText | _TransactionCurrencyText | $projection.TransactionCurrency = _TransactionCurrencyText.Currency |
| [0..*] | I_CurrencyText | _StatisticsCurrencyText | $projection.StatisticsCurrency = _StatisticsCurrencyText.Currency |
| [0..1] | C_Dischannelvaluehelp | _DistributionChannelVH | $projection.SalesOrganization = _DistributionChannelVH.SalesOrganization and $projection.DistributionChannel = _DistributionChannelVH.DistributionChannel |
| [0..1] | C_OrgDivisionValueHelp | _OrganizationDivisionVH | $projection.SalesOrganization = _OrganizationDivisionVH.SalesOrganization and $projection.DistributionChannel = _OrganizationDivisionVH.DistributionChannel and $projection.OrganizationDivision = _OrganizationDivisionVH.Division |
| [0..1] | C_SalesOfficeValueHelp | _SalesOfficeVH | $projection.SalesOrganization = _SalesOfficeVH.SalesOrganization and $projection.DistributionChannel = _SalesOfficeVH.DistributionChannel and $projection.OrganizationDivision = _SalesOfficeVH.OrganizationDivision and $projection.SalesOffice = _SalesOfficeVH.SalesOffice |
| [0..1] | C_SalesGroupValueHelp | _SalesGroupVH | $projection.SalesOffice = _SalesGroupVH.SalesOffice and $projection.SalesGroup = _SalesGroupVH.SalesGroup |
| [0..1] | E_SalesDocumentBasic | _Extension | SalesDocument.SalesDocument = _Extension.SalesDocument |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| EndUserText.label | Sales Order Fulfillment Issues | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Search.searchable | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CSOFISSUE | view |
Fields (145)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocument | I_SalesDocument | SalesDocument | SD Document |
| KEY | DeliveryDocument | I_SalesOrderFlfmtIssueBasic | DeliveryDocument | Outbound Delivery |
| KEY | BillingDocument | I_SalesOrderFlfmtIssueBasic | BillingDocument | SD Document |
| KEY | PurchasingDocument | |||
| KEY | ManufacturingOrder | I_SalesOrderFlfmtIssueBasic | ManufacturingOrder | Order |
| Issue | ||||
| IssueCategory | I_SalesOrderFlfmtIssueBasic | IssueCategory | Issue Category | |
| DueDays | I_SalesOrderFlfmtIssueBasic | DueDays | Processing Time | |
| DueHorizonDurationInDays | ||||
| DueDateStatus | I_SalesOrderFlfmtIssueBasic | DueDateStatus | ||
| IsPotentialFutureIssue | I_SalesOrderFlfmtIssueBasic | IsPotentialFutureIssue | ||
| NmbrOfIssuesInOrder | I_SalesOrderFlfmtIssueBasic | NmbrOfIssuesInOrder | ||
| NmbrOfIssuesInDelivery | I_SalesOrderFlfmtIssueBasic | NmbrOfIssuesInDelivery | ||
| NmbrOfIssuesInInvoice | I_SalesOrderFlfmtIssueBasic | NmbrOfIssuesInInvoice | ||
| NmbrOfIssuesInSupply | I_SalesOrderFlfmtIssueBasic | NmbrOfIssuesInSupply | ||
| NmbrOfAllIssues | I_SalesOrderFlfmtIssueBasic | NmbrOfAllIssues | ||
| NmbrOfItemsInOrder | ||||
| SalesDocumentType | I_SalesDocument | SalesDocumentType | Sales Doc. Type | |
| SalesDocumentProcessingType | I_SalesDocument | SalesDocumentProcessingType | ||
| SDDocumentCategory | I_SalesDocument | SDDocumentCategory | Document Cat. | |
| CreatedByUser | I_SalesDocument | CreatedByUser | User Name | |
| CreatedByUserName | _CreatedByUser | UserDescription | Full Name | |
| LastChangedByUser | I_SalesDocument | LastChangedByUser | User Name | |
| LastChangedByUserName | _LastChangedByUser | UserDescription | Full Name | |
| SalesOrganization | I_SalesDocument | SalesOrganization | Sales Organization | |
| DistributionChannel | I_SalesDocument | DistributionChannel | RefDistCh-Cust/Mat. | |
| OrganizationDivision | I_SalesDocument | OrganizationDivision | Org. Division | |
| SalesGroup | I_SalesDocument | SalesGroup | Sales Group | |
| SalesOffice | I_SalesDocument | SalesOffice | Sales Office | |
| SoldToParty | I_SalesDocument | SoldToParty | Sold-to Party | |
| SoldToPartyName | ||||
| SoldToPartyIsOneTimeAccount | ||||
| SoldToPartyFullName | ||||
| ShipToParty | Partner | ShipToParty | Ship-To Party (obsolete) | |
| ShipToPartyName | ||||
| ShipToPartyIsOneTimeAccount | ||||
| ShipToPartyFullName | ||||
| ResponsibleEmployee | Partner | ResponsibleEmployee | Employee Resp. | |
| ResponsibleEmployeeName | ||||
| PayerParty | Partner | PayerParty | Payer | |
| PayerPartyName | ||||
| CustomerClassification | ||||
| SalesDocumentDate | I_SalesDocument | SalesDocumentDate | Document Date | |
| CreditSegment | ||||
| PurchaseOrderByCustomer | I_SalesDocument | PurchaseOrderByCustomer | Purchase Order Number | |
| TotalNetAmount | I_SalesDocument | TotalNetAmount | Total Net Amount | |
| TransactionCurrency | I_SalesDocument | TransactionCurrency | Transaction Currency | |
| StatisticsCurrency | I_SalesDocument | StatisticsCurrency | ||
| RequestedDeliveryDate | I_SalesDocument | RequestedDeliveryDate | Requested Delivery Date | |
| ReqdDelivDateYearWeek | ||||
| DeliveryBlockReason | I_SalesDocument | DeliveryBlockReason | Delivery Block | |
| HeaderBillingBlockReason | I_SalesDocument | HeaderBillingBlockReason | Billing Block | |
| SalesDocumentRjcnReason | ||||
| OverallPurchaseConfStatus | ||||
| HdrGeneralIncompletionStatus | ||||
| HeaderDelivIncompletionStatus | ||||
| OverallPricingIncompletionSts | ||||
| HeaderBillgIncompletionStatus | ||||
| OvrlItmGeneralIncompletionSts | ||||
| OvrlItmBillingIncompletionSts | ||||
| OvrlItmDelivIncompletionSts | ||||
| PaytAuthsnCreditCheckSts | I_SalesDocument | PaytAuthsnCreditCheckSts | ||
| SalesDocApprovalStatus | I_SalesDocument | SalesDocApprovalStatus | ||
| OverallChmlCmplncStatus | ||||
| OverallDangerousGoodsStatus | ||||
| OverallSafetyDataSheetStatus | ||||
| OverallTrdCmplncEmbargoSts | ||||
| OvrlTrdCmplncSnctndListChkSts | ||||
| OvrlTrdCmplncLegalCtrlChkSts | ||||
| CustomerProject | ||||
| CustomerProjectName | ||||
| BusinessSolutionOrder | I_SalesDocument | BusinessSolutionOrder | Solution Order | |
| _Issue | ||||
| _IssueText | _IssueText | |||
| _IssueCategory | I_SalesOrderFlfmtIssueBasic | _IssueCategory | ||
| _IssueCategoryText | _IssueCategoryText | |||
| _DueDateStatus | I_SalesOrderFlfmtIssueBasic | _DueDateStatus | ||
| _DueDateStatusText | _DueDateStatusText | |||
| _IsPotentialFutureIssue | I_SalesOrderFlfmtIssueBasic | _IsPotentialFutureIssue | ||
| _IsPotentialFutureIssText | _IsPotentialFutureIssText | |||
| _SalesDocumentType | I_SalesDocument | _SalesDocumentType | ||
| _SalesDocumentTypeText | _SalesDocumentTypeText | |||
| _SDDocumentCategory | I_SalesDocument | _SDDocumentCategory | ||
| _SDDocumentCategoryText | _SDDocumentCategoryText | |||
| _SalesOrganization | I_SalesDocument | _SalesOrganization | ||
| _SalesOrganizationText | _SalesOrganizationText | |||
| _DistributionChannelVH | _DistributionChannelVH | |||
| _DistributionChannelText | _DistributionChannelText | |||
| _OrganizationDivisionVH | _OrganizationDivisionVH | |||
| _DivisionText | _DivisionText | |||
| _SalesGroupVH | _SalesGroupVH | |||
| _SalesGroupText | _SalesGroupText | |||
| _SalesOfficeVH | _SalesOfficeVH | |||
| _SalesOfficeText | _SalesOfficeText | |||
| _ShipToParty | Partner | _ShipToParty | ||
| _PayerParty | Partner | _PayerParty | ||
| _ResponsibleEmployee | Partner | _ResponsibleEmployee | ||
| _CustomerClassification | ||||
| _CustomerClassificationText | _CustomerClassificationText | |||
| _CreditSegment | _CreditSegment | |||
| _CreditSegmentText | _CreditSegmentText | |||
| _DeliveryBlockReason | I_SalesDocument | _DeliveryBlockReason | ||
| _DeliveryBlockReasonText | _DeliveryBlockReasonText | |||
| _HeaderBillingBlockReason | I_SalesDocument | _HeaderBillingBlockReason | ||
| _BillingBlockReasonText | _BillingBlockReasonText | |||
| _SalesDocumentRjcnReason | _SalesDocumentRjcnReason | |||
| _OverallPurchaseConfStatus | I_SalesDocument | _OverallPurchaseConfStatus | ||
| _OverallPurchaseConfStatusT | _OverallPurchaseConfStatusT | |||
| _HdrGeneralIncompletionStatus | I_SalesDocument | _HdrGeneralIncompletionStatus | ||
| _HdrGenIncompletionStatusT | _HdrGenIncompletionStatusT | |||
| _HeaderDelivIncompletionStatus | I_SalesDocument | _HeaderDelivIncompletionStatus | ||
| _HdrDelivIncompletionStatusT | _HdrDelivIncompletionStatusT | |||
| _OverallPricingIncompletionSts | I_SalesDocument | _OverallPricingIncompletionSts | ||
| _OverallPrcIncompletionStsT | _OverallPrcIncompletionStsT | |||
| _HeaderBillgIncompletionStatus | I_SalesDocument | _HeaderBillgIncompletionStatus | ||
| _HdrBillgIncompletionStatusT | _HdrBillgIncompletionStatusT | |||
| _OvrlItmGeneralIncompletionSts | I_SalesDocument | _OvrlItmGeneralIncompletionSts | ||
| _OvrlItmGenIncompletionStsT | _OvrlItmGenIncompletionStsT | |||
| _OvrlItmBillingIncompletionSts | I_SalesDocument | _OvrlItmBillingIncompletionSts | ||
| _OvrlItmBillgIncompltnStsT | _OvrlItmBillgIncompltnStsT | |||
| _OvrlItmDelivIncompletionSts | I_SalesDocument | _OvrlItmDelivIncompletionSts | ||
| _OvrlItmDelivIncompletionStsT | _OvrlItmDelivIncompletionStsT | |||
| _PaytAuthsnCreditCheckSts | I_SalesDocument | _PaytAuthsnCreditCheckSts | ||
| _PaytAuthsnCreditCheckStsText | _PaytAuthsnCreditCheckStsText | |||
| _SalesDocApprovalStatus | I_SalesDocument | _SalesDocApprovalStatus | ||
| _SalesDocApprovalStatusT | _SalesDocApprovalStatusT | |||
| _OverallChmlCmplncStatus | I_SalesDocument | _OverallChmlCmplncStatus | ||
| _OverallChmlCmplncStatusText | _OverallChmlCmplncStatusText | |||
| _OverallDangerousGoodsStatus | I_SalesDocument | _OverallDangerousGoodsStatus | ||
| _OverallDangerousGoodsStsTxt | _OverallDangerousGoodsStsTxt | |||
| _OvrlSftyDataSheetSts | I_SalesDocument | _OvrlSftyDataSheetSts | ||
| _OvrlSftyDataSheetStsTxt | _OvrlSftyDataSheetStsTxt | |||
| _OvrlTradeCmplncEmbargoStatus | I_SalesDocument | _OvrlTradeCmplncEmbargoStatus | ||
| _OvrlTradeCmplncEmbargoStsTxt | _OvrlTradeCmplncEmbargoStsTxt | |||
| _OvTrdCmplncSnctndListChkSts | I_SalesDocument | _OvTrdCmplncSnctndListChkSts | ||
| _OvTrdComplSanctListChkStsTxt | _OvTrdComplSanctListChkStsTxt | |||
| _OvrlTrdCmplncLegalCtrlChkSts | I_SalesDocument | _OvrlTrdCmplncLegalCtrlChkSts | ||
| _OvTrdComplLegalCtrlChkStsTxt | _OvTrdComplLegalCtrlChkStsTxt | |||
| _TransactionCurrency | I_SalesDocument | _TransactionCurrency | ||
| _TransactionCurrencyText | _TransactionCurrencyText | |||
| _StatisticsCurrency | I_SalesDocument | _StatisticsCurrency | ||
| _StatisticsCurrencyText | _StatisticsCurrencyText | |||
| OrganizationBPName1 | ||||
| OrganizationBPName2 | ||||
| _SolutionOrderATAddedforCE2008 |
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 C_SlsDocFlfmtIssue.
-- 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: CSOFISSUE
CREATE VIEW C_SlsDocFlfmtIssue AS
SELECT
SalesDocument.SalesDocument AS SalesDocument,
Issue.DeliveryDocument AS DeliveryDocument,
Issue.BillingDocument AS BillingDocument,
cast (Issue.PurchasingDocument as vdm_purchaseorder preserving type) AS PurchasingDocument,
Issue.ManufacturingOrder AS ManufacturingOrder,
Issue.IssueCategory AS IssueCategory,
Issue.DueDays AS DueDays,
cast(Issue.DueDays as duehorizondurationindays) AS DueHorizonDurationInDays,
Issue.DueDateStatus AS DueDateStatus,
Issue.IsPotentialFutureIssue AS IsPotentialFutureIssue,
Issue.NmbrOfIssuesInOrder AS NmbrOfIssuesInOrder,
Issue.NmbrOfIssuesInDelivery AS NmbrOfIssuesInDelivery,
Issue.NmbrOfIssuesInInvoice AS NmbrOfIssuesInInvoice,
Issue.NmbrOfIssuesInSupply AS NmbrOfIssuesInSupply,
Issue.NmbrOfAllIssues AS NmbrOfAllIssues,
cast(NmbrOfItemsInOrder as item_issues) AS NmbrOfItemsInOrder,
SalesDocument.SalesDocumentType AS SalesDocumentType,
SalesDocument.SalesDocumentProcessingType AS SalesDocumentProcessingType,
SalesDocument.SDDocumentCategory AS SDDocumentCategory,
SalesDocument.CreatedByUser AS CreatedByUser,
_CreatedByUser.UserDescription AS CreatedByUserName,
SalesDocument.LastChangedByUser AS LastChangedByUser,
_LastChangedByUser.UserDescription AS LastChangedByUserName,
SalesDocument.SalesOrganization AS SalesOrganization,
SalesDocument.DistributionChannel AS DistributionChannel,
SalesDocument.OrganizationDivision AS OrganizationDivision,
SalesDocument.SalesGroup AS SalesGroup,
SalesDocument.SalesOffice AS SalesOffice,
SalesDocument.SoldToParty AS SoldToParty,
cast (Partner._SoldToParty.CustomerName as vdm_sold_to_name) AS SoldToPartyName,
cast(SoldToPartyAddressInfo.PartnerIsOneTimeAccount as isonetimeaccountsoldtoparty) AS SoldToPartyIsOneTimeAccount,
cast(SoldToPartyAddressInfo._Address.FullName as fullnamesoldtoparty) AS SoldToPartyFullName,
Partner.ShipToParty AS ShipToParty,
cast (Partner._ShipToParty.CustomerName as ship_to_name) AS ShipToPartyName,
cast(ShipToPartyAddressInfo.PartnerIsOneTimeAccount as isonetimeaccountshiptoparty) AS ShipToPartyIsOneTimeAccount,
cast(ShipToPartyAddressInfo._Address.FullName as fullnameshiptoparty) AS ShipToPartyFullName,
Partner.ResponsibleEmployee AS ResponsibleEmployee,
cast (Partner._ResponsibleEmployee.PersonFullName as resp_empl_name) AS ResponsibleEmployeeName,
Partner.PayerParty AS PayerParty,
cast( Partner._PayerParty.CustomerName as payer_name) AS PayerPartyName,
SalesDocument._SoldToParty.CustomerClassification AS CustomerClassification,
SalesDocument.SalesDocumentDate AS SalesDocumentDate,
SalesDocument._CreditControlArea._CreditControlArea2Segment.CreditSegment AS CreditSegment,
SalesDocument.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
SalesDocument.TotalNetAmount AS TotalNetAmount,
SalesDocument.TransactionCurrency AS TransactionCurrency,
SalesDocument.StatisticsCurrency AS StatisticsCurrency,
SalesDocument.RequestedDeliveryDate AS RequestedDeliveryDate,
cast(ReqdDelivCalendarDate.YearWeek as reqd_deliv_date_year_week) AS ReqdDelivDateYearWeek,
SalesDocument.DeliveryBlockReason AS DeliveryBlockReason,
SalesDocument.HeaderBillingBlockReason AS HeaderBillingBlockReason,
cast( ' ' as abgru_va) AS SalesDocumentRjcnReason,
cast(SalesDocument.OverallPurchaseConfStatus as totpurchaseconfsts preserving type ) AS OverallPurchaseConfStatus,
cast(SalesDocument.HdrGeneralIncompletionStatus as hdr_general_incompltn_status preserving type) AS HdrGeneralIncompletionStatus,
cast(SalesDocument.HeaderDelivIncompletionStatus as hdrdelivincompletionstatus preserving type) AS HeaderDelivIncompletionStatus,
cast(SalesDocument.OverallPricingIncompletionSts as ovrl_pricing_incompletion_sts preserving type) AS OverallPricingIncompletionSts,
cast(SalesDocument.HeaderBillgIncompletionStatus as hdrbillgincompletionstatus preserving type) AS HeaderBillgIncompletionStatus,
cast(SalesDocument.OvrlItmGeneralIncompletionSts as itms_ovrl_incompletion_status preserving type) AS OvrlItmGeneralIncompletionSts,
cast(SalesDocument.OvrlItmBillingIncompletionSts as ovrl_itms_incompltn_sts_billg preserving type) AS OvrlItmBillingIncompletionSts,
cast(SalesDocument.OvrlItmDelivIncompletionSts as ovrl_items_dlv_incompltn_sts preserving type) AS OvrlItmDelivIncompletionSts,
SalesDocument.PaytAuthsnCreditCheckSts AS PaytAuthsnCreditCheckSts,
SalesDocument.SalesDocApprovalStatus AS SalesDocApprovalStatus,
cast(SalesDocument.OverallChmlCmplncStatus as mon_tdd_total_pcsta preserving type) AS OverallChmlCmplncStatus,
cast(SalesDocument.OverallDangerousGoodsStatus as mon_tdd_total_dgsta preserving type) AS OverallDangerousGoodsStatus,
cast(SalesDocument.OverallSafetyDataSheetStatus as mon_tdd_total_sdssta preserving type) AS OverallSafetyDataSheetStatus,
cast(SalesDocument.OverallTrdCmplncEmbargoSts as totembargochksts preserving type) AS OverallTrdCmplncEmbargoSts,
cast(SalesDocument.OvrlTrdCmplncSnctndListChkSts as totwatchlistscrngchksts preserving type) AS OvrlTrdCmplncSnctndListChkSts,
cast(SalesDocument.OvrlTrdCmplncLegalCtrlChkSts as totlglctrlchksts preserving type) AS OvrlTrdCmplncLegalCtrlChkSts,
SalesDocument._EngagementProjectItem.EngagementProject AS CustomerProject,
SalesDocument._EngagementProjectItem._EngagementProject.EngagementProjectName AS CustomerProjectName,
SalesDocument.BusinessSolutionOrder AS BusinessSolutionOrder,
Issue._IssueCategory AS _IssueCategory,
Issue._DueDateStatus AS _DueDateStatus,
Issue._IsPotentialFutureIssue AS _IsPotentialFutureIssue,
SalesDocument._SalesDocumentType AS _SalesDocumentType,
SalesDocument._SDDocumentCategory AS _SDDocumentCategory,
SalesDocument._SalesOrganization AS _SalesOrganization,
Partner._ShipToParty AS _ShipToParty,
Partner._PayerParty AS _PayerParty,
Partner._ResponsibleEmployee AS _ResponsibleEmployee,
SalesDocument._SoldToParty._CustomerClassification AS _CustomerClassification,
SalesDocument._DeliveryBlockReason AS _DeliveryBlockReason,
SalesDocument._HeaderBillingBlockReason AS _HeaderBillingBlockReason,
SalesDocument._OverallPurchaseConfStatus AS _OverallPurchaseConfStatus,
SalesDocument._HdrGeneralIncompletionStatus AS _HdrGeneralIncompletionStatus,
SalesDocument._HeaderDelivIncompletionStatus AS _HeaderDelivIncompletionStatus,
SalesDocument._OverallPricingIncompletionSts AS _OverallPricingIncompletionSts,
SalesDocument._HeaderBillgIncompletionStatus AS _HeaderBillgIncompletionStatus,
SalesDocument._OvrlItmGeneralIncompletionSts AS _OvrlItmGeneralIncompletionSts,
SalesDocument._OvrlItmBillingIncompletionSts AS _OvrlItmBillingIncompletionSts,
SalesDocument._OvrlItmDelivIncompletionSts AS _OvrlItmDelivIncompletionSts,
SalesDocument._PaytAuthsnCreditCheckSts AS _PaytAuthsnCreditCheckSts,
SalesDocument._SalesDocApprovalStatus AS _SalesDocApprovalStatus,
SalesDocument._OverallChmlCmplncStatus AS _OverallChmlCmplncStatus,
SalesDocument._OverallDangerousGoodsStatus AS _OverallDangerousGoodsStatus,
SalesDocument._OvrlSftyDataSheetSts AS _OvrlSftyDataSheetSts,
SalesDocument._OvrlTradeCmplncEmbargoStatus AS _OvrlTradeCmplncEmbargoStatus,
SalesDocument._OvTrdCmplncSnctndListChkSts AS _OvTrdCmplncSnctndListChkSts,
SalesDocument._OvrlTrdCmplncLegalCtrlChkSts AS _OvrlTrdCmplncLegalCtrlChkSts,
SalesDocument._TransactionCurrency AS _TransactionCurrency,
SalesDocument._StatisticsCurrency AS _StatisticsCurrency,
SalesDocument._SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
SalesDocument._SoldToParty.OrganizationBPName2 AS OrganizationBPName2,
SalesDocument._SolutionOrder AS _SolutionOrderATAddedforCE2008
FROM I_SalesDocument AS SalesDocument
INNER JOIN I_SalesOrderFlfmtIssueBasic AS Issue ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CreditManagementSegment AS _CreditSegment ON creditsegment = _CreditSegment.CreditSegment -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentRjcnReason AS _SalesDocumentRjcnReason ON SalesDocumentRjcnReason = _SalesDocumentRjcnReason.SalesDocumentRjcnReason -- association [0..1]
LEFT OUTER JOIN I_IssueText AS _IssueText ON Issue = _IssueText.Issue -- association [0..*]
LEFT OUTER JOIN I_IssueCategoryText AS _IssueCategoryText ON IssueCategory = _IssueCategoryText.IssueCategory -- association [0..*]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON SalesOrganization = _SalesOrganizationText.SalesOrganization -- association [0..*]
LEFT OUTER JOIN I_DistributionChannelText AS _DistributionChannelText ON DistributionChannel = _DistributionChannelText.DistributionChannel -- association [0..*]
LEFT OUTER JOIN I_DivisionText AS _DivisionText ON OrganizationDivision = _DivisionText.Division -- association [0..*]
LEFT OUTER JOIN I_SalesGroupText AS _SalesGroupText ON SalesGroup = _SalesGroupText.SalesGroup -- association [0..*]
LEFT OUTER JOIN I_SalesOfficeText AS _SalesOfficeText ON SalesOffice = _SalesOfficeText.SalesOffice -- association [0..*]
LEFT OUTER JOIN I_CreditManagementSegmentTxt AS _CreditSegmentText ON creditsegment = _CreditSegmentText.CreditSegment association[0..*] to I_CustomerClassificationText as _CustomerClassificationText on customerclassification = _CustomerClassificationText.CustomerClassification -- association [0..*]
LEFT OUTER JOIN I_DueDateStatusText AS _DueDateStatusText ON DueDateStatus = _DueDateStatusText.DueDateStatus -- association [0..*]
LEFT OUTER JOIN I_IsPotentialFutureIssText AS _IsPotentialFutureIssText ON IsPotentialFutureIssue = _IsPotentialFutureIssText.IsPotentialFutureIssue -- association [0..*]
LEFT OUTER JOIN I_SalesDocumentTypeText AS _SalesDocumentTypeText ON SalesDocumentType = _SalesDocumentTypeText.SalesDocumentType -- association [0..*]
LEFT OUTER JOIN I_SDDocumentCategoryText AS _SDDocumentCategoryText ON SDDocumentCategory = _SDDocumentCategoryText.SDDocumentCategory -- association [0..*]
LEFT OUTER JOIN I_DeliveryBlockReasonText AS _DeliveryBlockReasonText ON DeliveryBlockReason = _DeliveryBlockReasonText.DeliveryBlockReason -- association [0..*]
LEFT OUTER JOIN I_BillingBlockReasonText AS _BillingBlockReasonText ON HeaderBillingBlockReason = _BillingBlockReasonText.BillingBlockReason -- association [0..*]
LEFT OUTER JOIN I_OverallPurchaseConfStatusT AS _OverallPurchaseConfStatusT ON OverallPurchaseConfStatus = _OverallPurchaseConfStatusT.OverallPurchaseConfStatus -- association [0..*]
LEFT OUTER JOIN I_HdrGenIncompletionStatusT AS _HdrGenIncompletionStatusT ON HdrGeneralIncompletionStatus = _HdrGenIncompletionStatusT.HdrGeneralIncompletionStatus -- association [0..*]
LEFT OUTER JOIN I_HdrDelivIncompletionStatusT AS _HdrDelivIncompletionStatusT ON HeaderDelivIncompletionStatus = _HdrDelivIncompletionStatusT.HeaderDelivIncompletionStatus -- association [0..*]
LEFT OUTER JOIN I_OverallPrcIncompletionStsT AS _OverallPrcIncompletionStsT ON OverallPricingIncompletionSts = _OverallPrcIncompletionStsT.OverallPricingIncompletionSts -- association [0..*]
LEFT OUTER JOIN I_HdrBillgIncompletionStatusT AS _HdrBillgIncompletionStatusT ON HeaderBillgIncompletionStatus = _HdrBillgIncompletionStatusT.HeaderBillgIncompletionStatus -- association [0..*]
LEFT OUTER JOIN I_OvrlItmGenIncompletionStsT AS _OvrlItmGenIncompletionStsT ON OvrlItmGeneralIncompletionSts = _OvrlItmGenIncompletionStsT.OvrlItmGeneralIncompletionSts -- association [0..*]
LEFT OUTER JOIN I_OvrlItmBillgIncompltnStsText AS _OvrlItmBillgIncompltnStsT ON OvrlItmBillingIncompletionSts = _OvrlItmBillgIncompltnStsT.OvrlItmBillingIncompletionSts -- association [0..*]
LEFT OUTER JOIN I_OvrlItmDelivIncompletionStsT AS _OvrlItmDelivIncompletionStsT ON OvrlItmDelivIncompletionSts = _OvrlItmDelivIncompletionStsT.OvrlItmDelivIncompletionSts -- association [0..*]
LEFT OUTER JOIN I_PaytAuthsnCreditCheckStsText AS _PaytAuthsnCreditCheckStsText ON PaytAuthsnCreditCheckSts = _PaytAuthsnCreditCheckStsText.PaytAuthsnCreditCheckSts -- association [0..*]
LEFT OUTER JOIN I_SalesDocApprovalStatusT AS _SalesDocApprovalStatusT ON SalesDocApprovalStatus = _SalesDocApprovalStatusT.SalesDocApprovalStatus -- association [0..*]
LEFT OUTER JOIN I_OverallChmlCmplncStatusText AS _OverallChmlCmplncStatusText ON OverallChmlCmplncStatus = _OverallChmlCmplncStatusText.OverallChmlCmplncStatus -- association [0..*]
LEFT OUTER JOIN I_OverallDangerousGoodsStsTxt AS _OverallDangerousGoodsStsTxt ON OverallDangerousGoodsStatus = _OverallDangerousGoodsStsTxt.OverallDangerousGoodsStatus -- association [0..*]
LEFT OUTER JOIN I_OvrlSftyDataSheetStsTxt AS _OvrlSftyDataSheetStsTxt ON OverallSafetyDataSheetStatus = _OvrlSftyDataSheetStsTxt.OverallSafetyDataSheetStatus -- association [0..*]
LEFT OUTER JOIN I_OvrlTradeCmplncEmbargoStsTxt AS _OvrlTradeCmplncEmbargoStsTxt ON OverallTrdCmplncEmbargoSts = _OvrlTradeCmplncEmbargoStsTxt.OverallTrdCmplncEmbargoSts -- association [0..*]
LEFT OUTER JOIN I_OvTrdComplSanctListChkStsTxt AS _OvTrdComplSanctListChkStsTxt ON OvrlTrdCmplncSnctndListChkSts = _OvTrdComplSanctListChkStsTxt.OvrlTrdCmplncSnctndListChkSts -- association [0..*]
LEFT OUTER JOIN I_OvTrdComplLegalCtrlChkStsTxt AS _OvTrdComplLegalCtrlChkStsTxt ON OvrlTrdCmplncLegalCtrlChkSts = _OvTrdComplLegalCtrlChkStsTxt.OvrlTrdCmplncLegalCtrlChkSts -- association [0..*]
LEFT OUTER JOIN I_CurrencyText AS _TransactionCurrencyText ON TransactionCurrency = _TransactionCurrencyText.Currency -- association [0..*]
LEFT OUTER JOIN I_CurrencyText AS _StatisticsCurrencyText ON StatisticsCurrency = _StatisticsCurrencyText.Currency -- association [0..*]
LEFT OUTER JOIN C_Dischannelvaluehelp AS _DistributionChannelVH ON SalesOrganization = _DistributionChannelVH.SalesOrganization AND DistributionChannel = _DistributionChannelVH.DistributionChannel -- association [0..1]
LEFT OUTER JOIN C_OrgDivisionValueHelp AS _OrganizationDivisionVH ON SalesOrganization = _OrganizationDivisionVH.SalesOrganization AND DistributionChannel = _OrganizationDivisionVH.DistributionChannel AND OrganizationDivision = _OrganizationDivisionVH.Division -- association [0..1]
LEFT OUTER JOIN C_SalesOfficeValueHelp AS _SalesOfficeVH ON SalesOrganization = _SalesOfficeVH.SalesOrganization AND DistributionChannel = _SalesOfficeVH.DistributionChannel AND OrganizationDivision = _SalesOfficeVH.OrganizationDivision AND SalesOffice = _SalesOfficeVH.SalesOffice -- association [0..1]
LEFT OUTER JOIN C_SalesGroupValueHelp AS _SalesGroupVH ON SalesOffice = _SalesGroupVH.SalesOffice AND SalesGroup = _SalesGroupVH.SalesGroup -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesDocument.SalesDocument = _Extension.SalesDocument -- 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