P_SalesOrderInSupplyPurgIssue1

DDL: P_SALESORDERINSUPPLYPURGISSUE1 SQL: PSOFISSUESU011 Type: view COMPOSITE Package: VDM_SD_SOF_OLD

SOFM Purchasing Issue 1

P_SalesOrderInSupplyPurgIssue1 is a Composite CDS View that provides data about "SOFM Purchasing Issue 1" in SAP S/4HANA. It reads from 6 data sources and exposes 46 fields with key fields PurchasingDocument, PurchasingDocumentItem, PurchasingDocumentItem. Part of development package VDM_SD_SOF_OLD.

Data Sources (6)

SourceAliasJoin Type
P_SalesOrderInSupplyPurgIssue3 P_SalesOrderInSupplyPurgIssue3 union_all
I_PurOrdAccountAssignment PO_ACC inner
P_SalesOrderInSupplyPurgIssue2 PO_SL inner
I_PurchasingDocumentItem POI from
I_SalesDocument SOH inner
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 PSOFISSUESU011 view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument I_PurchasingDocumentItem PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
SalesDocument I_SalesDocumentItemBasic SalesDocument SD Document
SalesDocumentItem I_SalesDocumentItemBasic SalesDocumentItem Sales Document Item
SalesOrganization I_SalesDocument SalesOrganization Sales Organization
DistributionChannel I_SalesDocument DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision I_SalesDocument OrganizationDivision Org. Division
SalesDocumentType I_SalesDocument SalesDocumentType Sales Doc. Type
RequestedDeliveryDate I_SalesDocument RequestedDeliveryDate Requested Delivery Date
OverallSDProcessStatus I_SalesDocument OverallSDProcessStatus
SalesDocumentDate I_SalesDocument SalesDocumentDate Document Date
SalesGroup I_SalesDocument SalesGroup Sales Group
SalesOffice I_SalesDocument SalesOffice Sales Office
SoldToParty I_SalesDocument SoldToParty Sold-to Party
PurchaseOrderByCustomer I_SalesDocument PurchaseOrderByCustomer Purchase Order Number
PurchasingDocumentDeletionCode I_PurchasingDocumentItem PurchasingDocumentDeletionCode Del. Indicator
IsCompletelyDelivered I_PurchasingDocumentItem IsCompletelyDelivered Is completely delivered
IsFinallyInvoiced I_PurchasingDocumentItem IsFinallyInvoiced Final Invoice
PurchasingDocumentCategory I_PurchasingDocumentItem PurchasingDocumentCategory Doc. Category
GoodsReceiptIsExpected I_PurchasingDocumentItem GoodsReceiptIsExpected Goods Receipt
PurgDocOrderQuantityUnit I_PurchasingDocumentItem OrderQuantityUnit Purchasing Document Order Qty Unit
DueDate Promised For
DueDays
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
SalesDocument SalesDocument SD Document
SalesDocumentItem SalesDocumentItem Sales Document Item
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
SalesDocumentType SalesDocumentType Sales Doc. Type
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
OverallSDProcessStatus OverallSDProcessStatus
SalesDocumentDate SalesDocumentDate Document Date
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
SoldToParty SoldToParty Sold-to Party
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode Del. Indicator
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
IsFinallyInvoiced IsFinallyInvoiced Final Invoice
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
GoodsReceiptIsExpected GoodsReceiptIsExpected Goods Receipt
PurgDocOrderQuantityUnit PurgDocOrderQuantityUnit Purchasing Document Order Qty Unit
DueDate Promised For
DueDays
DeliveryDate DeliveryDate Delivery Date

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_SalesOrderInSupplyPurgIssue1.
-- 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: PSOFISSUESU011

CREATE VIEW P_SalesOrderInSupplyPurgIssue1 AS
SELECT
  POI.PurchasingDocument AS PurchasingDocument,
  POI.PurchasingDocumentItem AS PurchasingDocumentItem,
  SOI.SalesDocument AS SalesDocument,
  SOI.SalesDocumentItem AS SalesDocumentItem,
  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,
  SOH.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  POI.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
  POI.IsCompletelyDelivered AS IsCompletelyDelivered,
  POI.IsFinallyInvoiced AS IsFinallyInvoiced,
  POI.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  POI.GoodsReceiptIsExpected AS GoodsReceiptIsExpected,
  POI.OrderQuantityUnit AS PurgDocOrderQuantityUnit,
  cast(PO_SL.DeliveryDate as due_date_sof) AS DueDate,
  cast(Dats_Days_Between( cast($session.system_date as dats), PO_SL.DeliveryDate) as due_days) AS DueDays,
  DeliveryDate
FROM I_PurchasingDocumentItem AS POI
INNER JOIN P_SalesOrderInSupplyPurgIssue2 AS PO_SL ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurOrdAccountAssignment AS PO_ACC ON /* join condition not captured in parsed metadata */
INNER JOIN I_SalesDocument AS SOH ON /* join condition not captured in parsed metadata */
INNER JOIN I_SalesDocumentItemBasic AS SOI ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_SalesOrderInSupplyPurgIssue3
;