P_SlsOrdBillingPlanDueDate2

DDL: P_SLSORDBILLINGPLANDUEDATE2 SQL: PSODUEDATEREU210 Type: view COMPOSITE

P_SlsOrdBillingPlanDueDate2 is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_SDBillingPlanItem, I_SalesDocumentBasic, I_SalesDocumentItemBasic) and exposes 26 fields.

Data Sources (3)

SourceAliasJoin Type
I_SDBillingPlanItem fplt inner
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 PSODUEDATEREU210 view

Fields (26)

KeyFieldSource TableSource FieldDescription
SalesDocument
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
RequestedDeliveryDate Requested Delivery Date
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_SlsOrdBillingPlanDueDate2.
-- 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: PSODUEDATEREU210

CREATE VIEW P_SlsOrdBillingPlanDueDate2 AS
SELECT
  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( fplt.BillingPlanBillingDate ) 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 */
INNER JOIN I_SDBillingPlanItem AS fplt ON /* join condition not captured in parsed metadata */
;