P_EngmtProjActlPlnSlsOrd
P_EngmtProjActlPlnSlsOrd is a Composite CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 71 fields with key fields EngagementProject, WorkPackage, WorkItem, Ledger, SalesOrder.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| I_EngmntProjAssgmtToSessionUsr | A | union_all |
| I_Ledger | Ledger | inner |
| P_EngmntProjPlannedData | P_EngmntProjPlannedData | union_all |
| P_ENGPROJACTLSREVCST | P_ENGPROJACTLSREVCST | from |
| I_ProjectBasicData | Project | inner |
| I_EngagementProjectItem | ProjItem | inner |
| I_SalesOrderItem | SalesOrderItem | inner |
| I_WBSElementBasicData | WBSElement | inner |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEPACTPLNSLSORD | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| VDM.lifecycle.contract.type | #NONE | view |
Fields (71)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EngagementProject | Engmnt Project ID | ||
| KEY | WorkPackage | WorkPackage | WBS Internal ID | |
| KEY | WorkItem | WorkItem | Work Item ID | |
| KEY | Ledger | Ledger | Ledger | |
| KEY | SalesOrder | SalesOrder | SD Document | |
| KEY | SalesOrderItem | SalesOrderItem | Sales Order Item | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| CurrentDate | ||||
| FiscalYearPeriod | Period/Year | |||
| EngagementProjectResourceType | EngagementProjectResourceType | ResourceTypeID | ||
| EngagementProjectResource | EngagementProjectResource | Vehicle Model | ||
| Currency | Currency | Project Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| BillableControl | BillableControl | Billable Control | ||
| PlndEffortQty | ||||
| quan153else0endasActlEffortQty | Value | |||
| PlndCostAmt | Amount | |||
| ActlCostInPlnCrcy | ||||
| ActualRevenueInPlnCrcy | ||||
| BaselinePlndEffortQty | ||||
| BaselinePlndCostAmt | ||||
| RevenueAsSoldAmount | Stated Amount | |||
| IsMyProject | IsMyProject | |||
| WorkPackage | WorkPackage | WBS Internal ID | ||
| WorkItem | WorkItem | Work Item ID | ||
| Ledger | Ledger | Ledger | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| CurrentDate | ||||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| EngagementProjectResourceType | EngagementProjectResourceType | ResourceTypeID | ||
| EngagementProjectResource | EngagementProjectResource | Vehicle Model | ||
| Currency | TransactionCurrency | Project Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| BillableControl | BillableControl | Billable Control | ||
| ActlEffortQty | 0 | |||
| PlndCostAmt | PlndCostAmt | Amount | ||
| ActlCostInPlnCrcy | 0 | |||
| ActualRevenueInPlnCrcy | 0 | |||
| BaselinePlndCostAmt | BaselinePlndCostAmt | |||
| RevenueAsSoldAmount | 0 | Stated Amount | ||
| IsMyProject | IsMyProject | |||
| Projectascpdeng_mp_idasEngagementProject | ||||
| WorkPackage | I_WBSElementBasicData | WBSElement | WBS Internal ID | |
| WorkItem | Work Item ID | |||
| Ledger | I_Ledger | Ledger | Ledger | |
| SalesOrder | I_SalesOrderItem | SalesOrder | SD Document | |
| SalesOrderItem | I_SalesOrderItem | SalesOrderItem | Sales Order Item | |
| FiscalPeriod | I_SalesOrderItem | FiscalPeriod | Tax period | |
| FiscalYear | I_SalesOrderItem | FiscalYear | G/L Fiscal Year | |
| CurrentDate | ||||
| FiscalYearPeriod | Period/Year | |||
| EngagementProjectResourceType | ResourceTypeID | |||
| EngagementProjectResource | I_SalesOrderItem | Material | Vehicle Model | |
| Currency | I_ProjectBasicData | ProjectCurrency | Project Currency | |
| CompanyCodeCurrency | Local Currency | |||
| BillableControl | Billable Control | |||
| UnitOfMeasure | ||||
| PlndEffortQty | 0 | |||
| ActlEffortQty | 0 | |||
| PlndCostAmt | 0 | Amount | ||
| ActlCostInPlnCrcy | 0 | |||
| ActualRevenueInPlnCrcy | 0 | |||
| BaselinePlndEffortQty | 0 | |||
| BaselinePlndCostAmt | 0 | |||
| RevenueAsSoldAmount | I_SalesOrderItem | NetAmount | Stated Amount | |
| IsMyProject | I_EngmntProjAssgmtToSessionUsr | IsMyProject | ||
| ProjectManagerName | I_EngmntProjAssgmtToSessionUsr | ProjectManagerName |
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_EngmtProjActlPlnSlsOrd.
-- 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.
CREATE VIEW P_EngmtProjActlPlnSlsOrd AS
SELECT
cast(EngagementProject as /cpd/eng_mp_id ) AS EngagementProject,
WorkPackage,
WorkItem,
Ledger,
SalesOrder,
SalesOrderItem,
FiscalPeriod,
FiscalYear,
$session.system_date AS CurrentDate,
concat(FiscalYear, FiscalPeriod) AS FiscalYearPeriod,
EngagementProjectResourceType,
EngagementProjectResource,
Currency,
CompanyCodeCurrency,
BillableControl,
cast(0 as abap.quan( 15, 3 )) AS PlndEffortQty,
case when EngagementProjectResourceType = '0ACT' then cast(ActlEffortQty as abap.quan( 15, 3 )) else 0 end as ActlEffortQty AS quan153else0endasActlEffortQty,
cast(0 as abap.curr( 23, 2 )) AS PlndCostAmt,
cast(ActlCostInPlnCrcy as abap.curr( 23, 2 )) AS ActlCostInPlnCrcy,
-1 * (ActualRevenueInPlnCrcy) AS ActualRevenueInPlnCrcy,
cast(0 as abap.quan( 15, 3 )) AS BaselinePlndEffortQty,
cast(0 as abap.curr( 23, 2 )) AS BaselinePlndCostAmt,
cast(0 as abap.curr( 23, 2 )) AS RevenueAsSoldAmount,
IsMyProject,
0 AS ActlEffortQty,
ProjectManagerName AS Projectascpdeng_mp_idasEngagementProject,
cast('' as co_meinh) AS UnitOfMeasure,
A.ProjectManagerName AS ProjectManagerName
FROM P_ENGPROJACTLSREVCST
INNER JOIN I_ProjectBasicData AS Project ON /* join condition not captured in parsed metadata */
INNER JOIN I_EngagementProjectItem AS ProjItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_SalesOrderItem AS SalesOrderItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_WBSElementBasicData AS WBSElement ON /* join condition not captured in parsed metadata */
INNER JOIN I_Ledger AS Ledger ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_EngmntProjPlannedData, I_EngmntProjAssgmtToSessionUsr
;
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