P_OrglChangeReportPOItoSOI
Purchase Order Item to Sales Document
P_OrglChangeReportPOItoSOI is a Consumption CDS View that provides data about "Purchase Order Item to Sales Document" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToPurOrderItem) and exposes 23 fields with key fields OrganizationalChange, PurchasingDocument, PurchasingDocumentItem, AccountAssignmentNumber, ValidityStartDate. It has 4 associations to related views. Part of development package ODATA_ORGL_CHANGE_REPORT_MD.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProfitCenterToPurOrderItem | I_ProfitCenterToPurOrderItem | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_ProfitCenterToSalesOrderItem | _ProfitCenterToSalesOrderItem | _ProfitCenterToSalesOrderItem.OrganizationalChange = $projection.OrganizationalChange and _ProfitCenterToSalesOrderItem.SalesDocument = $projection.SalesDocument and _ProfitCenterToSalesOrderItem.SalesDocumentItem = $projection.SalesDocumentItem and _ProfitCenterToSalesOrderItem.ValidityStartDate = $projection.ValidityStartDate |
| [0..*] | I_OrglChgReassignmentStsText | _OrglChgReassignmentStsText | $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus |
| [1] | I_PurchasingDocument | _PurchasingDocument | $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument |
| [1] | I_PurchasingDocumentItem | _PurchasingDocumentItem | $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | POCRPOI2SOI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Purchase Order Item to Sales Document | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrganizationalChange | OrganizationalChange | Organizational Change | |
| KEY | PurchasingDocument | PurchasingDocument | Purchasing Document | |
| KEY | PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | |
| KEY | AccountAssignmentNumber | AccountAssignmentNumber | Account Assgmt No. | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| DependentObjectID | ||||
| OrglChgRptDependentObjectType | ||||
| OrglChgRptRootObjectType | ProfitCenterDerivationSrceType | Profit Center Source | ||
| RootObjectID | ||||
| SalesDocument | SourceSalesDocument | |||
| SalesDocumentItem | SourceSalesDocumentItem | |||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ControllingAreaName | _ControllingArea | ControllingAreaName | Long Text | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| ProfitCenterBeforeOrglChange | ProfitCenterBeforeOrglChange | Old Profit Center | ||
| ProfitCenterBfrOrglChangeName | ||||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitCenterName | ||||
| OrglChangeReassignmentStatus | OrglChangeReassignmentStatus | Status | ||
| OrglChgReassignmentStatusName | ||||
| ProfitCenterDerivationSrceType | ProfitCenterDerivationSrceType | Profit Center Source |
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_OrglChangeReportPOItoSOI.
-- 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: POCRPOI2SOI
CREATE VIEW P_OrglChangeReportPOItoSOI AS
SELECT
OrganizationalChange,
PurchasingDocument,
PurchasingDocumentItem,
AccountAssignmentNumber,
ValidityStartDate,
cast( concat( PurchasingDocument , concat( '/', PurchasingDocumentItem)) as finoc_object_id ) AS DependentObjectID,
cast( 'PO' as finoc_dependent_object_type ) AS OrglChgRptDependentObjectType,
ProfitCenterDerivationSrceType AS OrglChgRptRootObjectType,
cast( concat( SourceSalesDocument , concat( '/', SourceSalesDocumentItem)) as finoc_object_id ) AS RootObjectID,
SourceSalesDocument AS SalesDocument,
SourceSalesDocumentItem AS SalesDocumentItem,
ValidityEndDate,
ControllingArea,
_ControllingArea.ControllingAreaName AS ControllingAreaName,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
ProfitCenterBeforeOrglChange,
_ProfitCenterBeforeOrglChange._Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterBfrOrglChangeName,
ProfitCenter,
_ProfitCtr._Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterName,
OrglChangeReassignmentStatus,
_OrglChgReassignmentStsText[1:Language=$session.system_language].OrglChgReassignmentStatusName AS OrglChgReassignmentStatusName,
ProfitCenterDerivationSrceType
FROM I_ProfitCenterToPurOrderItem
LEFT OUTER JOIN I_ProfitCenterToSalesOrderItem AS _ProfitCenterToSalesOrderItem ON _ProfitCenterToSalesOrderItem.OrganizationalChange = OrganizationalChange AND _ProfitCenterToSalesOrderItem.SalesDocument = SalesDocument AND _ProfitCenterToSalesOrderItem.SalesDocumentItem = SalesDocumentItem AND _ProfitCenterToSalesOrderItem.ValidityStartDate = ValidityStartDate -- association [1]
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus -- association [0..*]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument -- association [1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem -- association [1]
;
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