P_PLANCOSTTILLMONTH

DDL: P_PLANCOSTTILLMONTH SQL: PPLANMON Type: view COMPOSITE Package: VDM_CPM_WS

Plan Cost till month from ERP

P_PLANCOSTTILLMONTH is a Composite CDS View that provides data about "Plan Cost till month from ERP" in SAP S/4HANA. It reads from 3 data sources (I_MasterProjectCurrency, I_MstrProjHierarchy, P_Plancost_M) and exposes 18 fields with key fields MasterProjectUUID, MasterProject. Part of development package VDM_CPM_WS.

Data Sources (3)

SourceAliasJoin Type
I_MasterProjectCurrency MasterProjCurrency inner
I_MstrProjHierarchy MasterProject from
P_Plancost_M PlanCost inner

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPLANMON 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 (18)

KeyFieldSource TableSource FieldDescription
KEY MasterProjectUUID I_MstrProjHierarchy MasterProjectUUID NodeID
KEY MasterProject I_MstrProjHierarchy MasterProject Project ID
MasterProjectName I_MstrProjHierarchy MasterProjectName
Project I_MstrProjHierarchy Project WBS Element
ProjectDescription I_MstrProjHierarchy ProjectDescription Project Name
ControllingObject I_MstrProjHierarchy ControllingObject Object number
ControllingObjectExternalID I_MstrProjHierarchy ControllingObjectExternalID WBS Element
ControllingObjectType I_MstrProjHierarchy ControllingObjectType Object Type
MasterProjectIsConfidential I_MstrProjHierarchy MasterProjectIsConfidential
MasterProjectOrganization I_MstrProjHierarchy MasterProjectOrganization
MasterProjectType I_MstrProjHierarchy MasterProjectType
CompanyCodeCurrency I_MasterProjectCurrency Currency Valuation Crcy
TransactionCurrency P_Plancost_M twaer Trans. Currency
COVersion P_Plancost_M versn Version
ActualCostAmount
ActualRevenueAmount
ActualCostInTransCrcy
ActualRevenueInTransCrcy

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_PLANCOSTTILLMONTH.
-- 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: PPLANMON

CREATE VIEW P_PLANCOSTTILLMONTH AS
SELECT
  MasterProject.MasterProjectUUID AS MasterProjectUUID,
  MasterProject.MasterProject AS MasterProject,
  MasterProject.MasterProjectName AS MasterProjectName,
  MasterProject.Project AS Project,
  MasterProject.ProjectDescription AS ProjectDescription,
  MasterProject.ControllingObject AS ControllingObject,
  MasterProject.ControllingObjectExternalID AS ControllingObjectExternalID,
  MasterProject.ControllingObjectType AS ControllingObjectType,
  MasterProject.MasterProjectIsConfidential AS MasterProjectIsConfidential,
  MasterProject.MasterProjectOrganization AS MasterProjectOrganization,
  MasterProject.MasterProjectType AS MasterProjectType,
  MasterProjCurrency.Currency AS CompanyCodeCurrency,
  PlanCost.twaer AS TransactionCurrency,
  PlanCost.versn AS COVersion,
  cast (0 as fins_vhcur12) AS ActualCostAmount,
  cast (0 as fins_vhcur12) AS ActualRevenueAmount,
  cast (0 as fins_vhcur12) AS ActualCostInTransCrcy,
  cast (0 as fins_vhcur12) AS ActualRevenueInTransCrcy
FROM I_MstrProjHierarchy AS MasterProject
INNER JOIN P_Plancost_M AS PlanCost ON /* join condition not captured in parsed metadata */
INNER JOIN I_MasterProjectCurrency AS MasterProjCurrency ON /* join condition not captured in parsed metadata */
;