P_SlsOrdOrdReltdBillgDueDte2

DDL: P_SLSORDORDRELTDBILLGDUEDTE2 SQL: PSODUEDATEREUS26 Type: view COMPOSITE

P_SlsOrdOrdReltdBillgDueDte2 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentBasic, I_SalesDocumentItemBasic) and exposes 26 fields with key field SalesDocument.

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentBasic SOH from
I_SalesDocumentItemBasic SOI inner

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PSODUEDATEREUS26 view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SalesDocumentBasic SalesDocument SD Document
SalesOrganization I_SalesDocumentBasic SalesOrganization Sales Organization
DistributionChannel I_SalesDocumentBasic DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision I_SalesDocumentBasic OrganizationDivision Org. Division
SalesDocumentType I_SalesDocumentBasic SalesDocumentType Sales Doc. Type
RequestedDeliveryDate I_SalesDocumentBasic RequestedDeliveryDate Requested Delivery Date
OverallSDProcessStatus I_SalesDocumentBasic OverallSDProcessStatus
SalesDocumentDate I_SalesDocumentBasic SalesDocumentDate Document Date
SalesGroup I_SalesDocumentBasic SalesGroup Sales Group
SalesOffice I_SalesDocumentBasic SalesOffice Sales Office
SoldToParty I_SalesDocumentBasic SoldToParty Sold-to Party
PurchaseOrderByCustomer
DueDate
DueDate
OverallBillingBlockStatus I_SalesDocumentBasic OverallBillingBlockStatus
HeaderBillingBlockReason I_SalesDocumentBasic HeaderBillingBlockReason Billing Block
OverallTotalDeliveryStatus
OverallSDProcessStatus
neededforDeliveryBlock
OverallOrdReltdBillgStatus
neededforBillingBlock
HdrGeneralIncompletionStatus
OverallPricingIncompletionSts
HeaderDelivIncompletionStatus
HeaderBillgIncompletionStatus
TotalCreditCheckStatus

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 P_SlsOrdOrdReltdBillgDueDte2.
-- 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: PSODUEDATEREUS26

CREATE VIEW P_SlsOrdOrdReltdBillgDueDte2 AS
SELECT
  SOH.SalesDocument AS SalesDocument,
  SOH.SalesOrganization AS SalesOrganization,
  SOH.DistributionChannel AS DistributionChannel,
  SOH.OrganizationDivision AS OrganizationDivision,
  SOH.SalesDocumentType AS SalesDocumentType,
  SOH.RequestedDeliveryDate AS RequestedDeliveryDate,
  SOH.OverallSDProcessStatus AS OverallSDProcessStatus,
  SOH.SalesDocumentDate AS SalesDocumentDate,
  SOH.SalesGroup AS SalesGroup,
  SOH.SalesOffice AS SalesOffice,
  SOH.SoldToParty AS SoldToParty,
  min( SOI.BillingDocumentDate ) AS DueDate,
  SOH.OverallBillingBlockStatus AS OverallBillingBlockStatus,
  SOH.HeaderBillingBlockReason AS HeaderBillingBlockReason,
  BillingBlock SOH.OverallOrdReltdBillgStatus AS OverallOrdReltdBillgStatus,
  Incompletion SOH.HdrGeneralIncompletionStatus AS HdrGeneralIncompletionStatus
FROM I_SalesDocumentBasic AS SOH
INNER JOIN I_SalesDocumentItemBasic AS SOI ON /* join condition not captured in parsed metadata */
;