P_SalesOrderInSupplyPurgIssue1
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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