I_OverdueSalesOrder

DDL: I_OVERDUESALESORDER SQL: ISDOVRDSLSORDER Type: view COMPOSITE

Overdue Sales Order

I_OverdueSalesOrder is a Composite CDS View that provides data about "Overdue Sales Order" in SAP S/4HANA. It reads from 2 data sources (P_OverdueSalesOrderUnion, I_SalesDocumentBasic) and exposes 19 fields with key fields SalesOrder, Issue.

Data Sources (2)

SourceAliasJoin Type
P_OverdueSalesOrderUnion IssueUnion from
I_SalesDocumentBasic SalesDocument left_outer

Parameters (2)

NameTypeDefault
P_ExchangeRateType kurst
P_DisplayCurrency vdm_v_display_currency

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Overdue Sales Order view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ISDOVRDSLSORDER view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder SalesOrder SD Document
KEY Issue Issue Date of Issue
_Issue _Issue
SalesOrderType I_SalesDocumentBasic SalesDocumentType Sales Doc. Type
SoldToParty I_SalesDocumentBasic SoldToParty Sold-to Party
_SoldToParty I_SalesDocumentBasic _SoldToParty
SalesOrganization I_SalesDocumentBasic SalesOrganization Sales Organization
_SalesOrganization I_SalesDocumentBasic _SalesOrganization
DistributionChannel I_SalesDocumentBasic DistributionChannel RefDistCh-Cust/Mat.
_DistributionChannel I_SalesDocumentBasic _DistributionChannel
OrganizationDivision I_SalesDocumentBasic OrganizationDivision Org. Division
_OrganizationDivision I_SalesDocumentBasic _OrganizationDivision
SalesOffice I_SalesDocumentBasic SalesOffice Sales Office
_SalesOffice I_SalesDocumentBasic _SalesOffice
SalesGroup I_SalesDocumentBasic SalesGroup Sales Group
_SalesGroup I_SalesDocumentBasic _SalesGroup
NumberOfSalesOrders NumberOfSalesOrders
DisplayCurrency
trueasTotalNetAmountInDisplayCrcy

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_OverdueSalesOrder.
-- 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: ISDOVRDSLSORDER
-- Parameters: P_ExchangeRateType : kurst, P_DisplayCurrency : vdm_v_display_currency

CREATE VIEW I_OverdueSalesOrder AS
SELECT
  SalesOrder,
  Issue,
  SalesDocument.SalesDocumentType AS SalesOrderType,
  SalesDocument.SoldToParty AS SoldToParty,
  SalesDocument._SoldToParty AS _SoldToParty,
  SalesDocument.SalesOrganization AS SalesOrganization,
  SalesDocument._SalesOrganization AS _SalesOrganization,
  SalesDocument.DistributionChannel AS DistributionChannel,
  SalesDocument._DistributionChannel AS _DistributionChannel,
  SalesDocument.OrganizationDivision AS OrganizationDivision,
  SalesDocument._OrganizationDivision AS _OrganizationDivision,
  SalesDocument.SalesOffice AS SalesOffice,
  SalesDocument._SalesOffice AS _SalesOffice,
  SalesDocument.SalesGroup AS SalesGroup,
  SalesDocument._SalesGroup AS _SalesGroup,
  NumberOfSalesOrders,
  cast(:P_DisplayCurrency as vdm_v_display_currency) AS DisplayCurrency,
  currency_conversion( amount => SalesDocument.TotalNetAmount, source_currency => TransactionCurrency, target_currency => :P_DisplayCurrency, exchange_rate_date => cast($session.system_date as abap.dats), exchange_rate_type => :P_ExchangeRateType, error_handling => 'FAIL_ON_ERROR', round => #CDSBoolean.true, decimal_shift => #CDSBoolean.true, decimal_shift_back => #CDSBoolean.true ) as TotalNetAmountInDisplayCrcy AS trueasTotalNetAmountInDisplayCrcy
FROM P_OverdueSalesOrderUnion AS IssueUnion
LEFT OUTER JOIN I_SalesDocumentBasic AS SalesDocument ON /* join condition not captured in parsed metadata */
;