P_MstrProjHierActlCostRev
P_MstrProjHierActlCostRev is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_MPJournalEntry, P_MstrProjHierWithStstclKeyFig) and exposes 53 fields with key fields MasterProjectUUID, MasterProject.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_MPJournalEntry | JournalEntry | inner |
| P_MstrProjHierWithStstclKeyFig | MasterProject | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPACTLCOST | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MasterProjectUUID | P_MstrProjHierWithStstclKeyFig | MasterProjectUUID | NodeID |
| KEY | MasterProject | P_MstrProjHierWithStstclKeyFig | MasterProject | Project ID |
| MasterProjectName | P_MstrProjHierWithStstclKeyFig | MasterProjectName | ||
| MasterProjectIsConfidential | P_MstrProjHierWithStstclKeyFig | MasterProjectIsConfidential | ||
| MasterProjectOrganization | P_MstrProjHierWithStstclKeyFig | MasterProjectOrganization | ||
| MasterProjectType | P_MstrProjHierWithStstclKeyFig | MasterProjectType | ||
| Project | P_MstrProjHierWithStstclKeyFig | Project | WBS Element | |
| ProjectDescription | P_MstrProjHierWithStstclKeyFig | ProjectDescription | Project Name | |
| ControllingObjectendasControllingObject | ||||
| StatisticalKeyFigure | P_MstrProjHierWithStstclKeyFig | StatisticalKeyFigure | Statistical Key Figure | |
| StstcKeyFigQuantityUnit | ||||
| ExternalObjectIdentifier | P_MstrProjHierWithStstclKeyFig | ExternalObjectIdentifier | ||
| CompanyCode | P_MPJournalEntry | CompanyCode | Receiver Company Code | |
| BusinessArea | P_MPJournalEntry | BusinessArea | Business Area | |
| ControllingArea | P_MPJournalEntry | ControllingArea | Controlling Area | |
| ControllingObjectDebitType | P_MPJournalEntry | ControllingObjectDebitType | ||
| GLAccount | P_MPJournalEntry | GLAccount | General Ledger | |
| LedgerGLLineItem | P_MPJournalEntry | LedgerGLLineItem | Journal Entry Item | |
| PersonnelNumber | P_MPJournalEntry | PersonnelNumber | Personnel No. | |
| SalesOrder | P_MPJournalEntry | SalesOrder | SD Document | |
| SalesOrderItem | P_MPJournalEntry | SalesOrderItem | Sales Order Item | |
| FiscalYear | P_MPJournalEntry | FiscalYear | G/L Fiscal Year | |
| FiscalYearPeriod | P_MPJournalEntry | FiscalYearPeriod | Period/Year | |
| FiscalPeriod | P_MPJournalEntry | FiscalPeriod | Tax period | |
| PostingDate | P_MPJournalEntry | PostingDate | Posting Date for GR | |
| CompanyCodeCurrency | P_MPJournalEntry | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | P_MPJournalEntry | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| Quantity | P_MPJournalEntry | Quantity | Value | |
| BaseUnit | P_MPJournalEntry | BaseUnit | Unit of Measure | |
| TransactionCurrency | P_MPJournalEntry | TransactionCurrency | Transaction Currency | |
| ControllingObjectCurrency | P_MPJournalEntry | ControllingObjectCurrency | CO Object Currency | |
| GlobalCurrency | P_MPJournalEntry | GlobalCurrency | GM Billing Element: Global Currency | |
| AmountInGlobalCurrency | P_MPJournalEntry | AmountInGlobalCurrency | Amount in Global Currency | |
| Material | P_MPJournalEntry | Material | Vehicle Model | |
| OriginCostCtrActivityType | P_MPJournalEntry | OriginCostCtrActivityType | ||
| IsReversed | P_MPJournalEntry | IsReversed | Reversed? | |
| MasterProjectFiscalYearVariant | ||||
| FinancialPlanID | ||||
| FinancialPlanInternalID | ||||
| FinancialPlanCurrency | ||||
| FinancialPlanScenario | ||||
| MstrProjAnchorObjectInternalID | P_MstrProjHierWithStstclKeyFig | MstrProjAnchorObjectInternalID | ||
| MstrProjPerdStrtDte | ||||
| MstrProjPerdEndDte | ||||
| MstrProjCutOffDate | P_MstrProjHierWithStstclKeyFig | MstrProjCutOffDate | ||
| Plant | P_MPJournalEntry | Plant | Valuation Area | |
| DocumentDate | P_MPJournalEntry | DocumentDate | Journal Entry Date | |
| CurrencyendasCurrency | ||||
| AccountingDocument | P_MPJournalEntry | AccountingDocument | Journal Entry | |
| ClearingAccountingDocument | Receivables | ClearingAccountingDocument | Clearing Journal Entry | |
| ValuationQuantityendasActlEffortQty | ||||
| Unit | ||||
| _MstrProjFinPlan | P_MstrProjHierWithStstclKeyFig | _MstrProjFinPlan |
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_MstrProjHierActlCostRev.
-- 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: PMPACTLCOST
CREATE VIEW P_MstrProjHierActlCostRev AS
SELECT
MasterProject.MasterProjectUUID AS MasterProjectUUID,
MasterProject.MasterProject AS MasterProject,
MasterProject.MasterProjectName AS MasterProjectName,
MasterProject.MasterProjectIsConfidential AS MasterProjectIsConfidential,
MasterProject.MasterProjectOrganization AS MasterProjectOrganization,
MasterProject.MasterProjectType AS MasterProjectType,
MasterProject.Project AS Project,
MasterProject.ProjectDescription AS ProjectDescription,
case when MasterProject.ControllingObjectType = 'OR' then MasterProject.WBSElementObject else MasterProject.ControllingObject end as ControllingObject AS ControllingObjectendasControllingObject,
MasterProject.StatisticalKeyFigure AS StatisticalKeyFigure,
MasterProject._StstclKeyFig.StstcKeyFigQuantityUnit AS StstcKeyFigQuantityUnit,
MasterProject.ExternalObjectIdentifier AS ExternalObjectIdentifier,
JournalEntry.CompanyCode AS CompanyCode,
JournalEntry.BusinessArea AS BusinessArea,
JournalEntry.ControllingArea AS ControllingArea,
JournalEntry.ControllingObjectDebitType AS ControllingObjectDebitType,
JournalEntry.GLAccount AS GLAccount,
JournalEntry.LedgerGLLineItem AS LedgerGLLineItem,
JournalEntry.PersonnelNumber AS PersonnelNumber,
JournalEntry.SalesOrder AS SalesOrder,
JournalEntry.SalesOrderItem AS SalesOrderItem,
JournalEntry.FiscalYear AS FiscalYear,
JournalEntry.FiscalYearPeriod AS FiscalYearPeriod,
JournalEntry.FiscalPeriod AS FiscalPeriod,
JournalEntry.PostingDate AS PostingDate,
JournalEntry.CompanyCodeCurrency AS CompanyCodeCurrency,
JournalEntry.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
JournalEntry.Quantity AS Quantity,
JournalEntry.BaseUnit AS BaseUnit,
JournalEntry.TransactionCurrency AS TransactionCurrency,
JournalEntry.ControllingObjectCurrency AS ControllingObjectCurrency,
JournalEntry.GlobalCurrency AS GlobalCurrency,
JournalEntry.AmountInGlobalCurrency AS AmountInGlobalCurrency,
JournalEntry.Material AS Material,
JournalEntry.OriginCostCtrActivityType AS OriginCostCtrActivityType,
JournalEntry.IsReversed AS IsReversed,
MasterProject._MstrProjType.MasterProjectFiscalYearVariant AS MasterProjectFiscalYearVariant,
MasterProject._MstrProjFinPlan.FinancialPlanID AS FinancialPlanID,
MasterProject._MstrProjFinPlan.FinancialPlanInternalID AS FinancialPlanInternalID,
MasterProject._MstrProjFinPlan.FinancialPlanCurrency AS FinancialPlanCurrency,
MasterProject._MstrProjFinPlan.FinancialPlanScenario AS FinancialPlanScenario,
MasterProject.MstrProjAnchorObjectInternalID AS MstrProjAnchorObjectInternalID,
MasterProject._MstrProjPerdKPI.MstrProjPerdStrtDte AS MstrProjPerdStrtDte,
MasterProject._MstrProjPerdKPI.MstrProjPerdEndDte AS MstrProjPerdEndDte,
MasterProject.MstrProjCutOffDate AS MstrProjCutOffDate,
JournalEntry.Plant AS Plant,
JournalEntry.DocumentDate AS DocumentDate,
case when MasterProject.Currency is initial then JournalEntry.GlobalCurrency else MasterProject.Currency end as Currency AS CurrencyendasCurrency,
JournalEntry.AccountingDocument AS AccountingDocument,
Receivables.ClearingAccountingDocument AS ClearingAccountingDocument,
case when JournalEntry.ControllingObjectDebitType = '1' then JournalEntry.ValuationQuantity end as ActlEffortQty AS ValuationQuantityendasActlEffortQty,
cast ('H' as abap.unit(3)) AS Unit,
MasterProject._MstrProjFinPlan AS _MstrProjFinPlan
FROM P_MstrProjHierWithStstclKeyFig AS MasterProject
INNER JOIN P_MPJournalEntry AS JournalEntry ON /* join condition not captured in parsed metadata */
;
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