P_EnterpriseProjectPlnCosts
P_EnterpriseProjectPlnCosts is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (P_IsLeadingLedger, I_FinancialPlanningEntryItem, P_ProjectsWithProjCat6, P_PROJECTSEMTAGACC, I_WBSElementBasicData) and exposes 86 fields with key fields SourceLedger, Ledger, CompanyCode, FiscalYear, AccountingDocument.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| P_IsLeadingLedger | _Ledger | inner |
| I_FinancialPlanningEntryItem | _ProjCstLineItm | from |
| P_ProjectsWithProjCat6 | _Project | inner |
| P_PROJECTSEMTAGACC | _SemanticTag | inner |
| I_WBSElementBasicData | _WBS | inner |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PENTPRJPLN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (86)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | |||
| KEY | Ledger | P_IsLeadingLedger | Ledger | Ledger |
| KEY | CompanyCode | I_FinancialPlanningEntryItem | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_FinancialPlanningEntryItem | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | |||
| KEY | FinancialPlanningReqTransSqnc | FinancialPlanningReqTransSqnc | Request TSN | |
| KEY | FinancialPlanningDataPacket | FinancialPlanningDataPacket | Data packet number | |
| KEY | ActualPlanJournalEntryItem | |||
| LedgerGLLineItem | ||||
| FinancialPlanningEntryItem | FinancialPlanningEntryItem | |||
| ControllingArea | I_FinancialPlanningEntryItem | ControllingArea | Controlling Area | |
| GLAccount | I_FinancialPlanningEntryItem | GLAccount | General Ledger | |
| ChartOfAccounts | I_FinancialPlanningEntryItem | ChartOfAccounts | Node Class | |
| LedgerFiscalYear | LedgerFiscalYear | |||
| ActualPlanCode | ||||
| BusinessArea | I_FinancialPlanningEntryItem | BusinessArea | Business Area | |
| ProfitCenter | I_FinancialPlanningEntryItem | ProfitCenter | Profit Center | |
| CostCenter | I_FinancialPlanningEntryItem | CostCenter | Cost Center | |
| Project | P_ProjectsWithProjCat6 | ProjectExternalID | Project def. | |
| ProjectInternalID | I_FinancialPlanningEntryItem | ProjectInternalID | Project Def. | |
| WBSElement | ||||
| WBSElementInternalID | I_FinancialPlanningEntryItem | WBSElementInternalID | WBS Internal ID | |
| FunctionalArea | I_FinancialPlanningEntryItem | FunctionalArea | Sendr Fctl Area | |
| PartnerWBSElement | ||||
| PartnerProject | ||||
| PartnerProjectInternalID | PartnerProjectInternalID | |||
| PartnerWBSElementInternalID | PartnerWBSElementInternalID | Partner WBS Element Internal ID | ||
| PartnerFunctionalArea | PartnerFunctionalArea | Rec. Fntcl Area | ||
| PartnerCostCtrActivityType | PartnerCostCtrActivityType | Partner Cost Center Activity Type | ||
| OrderID | OrderID | Order ID | ||
| OrderOperation | OrderOperation | Operation or Phase | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| ControllingObjectCurrency | ControllingObjectCurrency | CO Object Currency | ||
| AmountInObjectCurrency | AmountInObjectCurrency | Amount in Obj Crcy | ||
| ActualAmountInTransactionCrcy | ||||
| ActualAmountInCompanyCodeCrcy | ||||
| ActualAmountInGlobalCurrency | ||||
| ActualAmountInObjectCurrency | Amount in Obj Crcy | |||
| PlanAmountInTransactionCrcy | Pt Crcy Amt | |||
| PlanAmountInCompanyCodeCrcy | Local Crcy Amt | |||
| PlanAmountInGlobalCurrency | Amount in Global Currency | |||
| PlndCostAmtInProjCrcy | Amount in Obj Crcy | |||
| PostingDate | I_FinancialPlanningEntryItem | PostingDate | Posting Date for GR | |
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| FiscalYearVariant | I_FinancialPlanningEntryItem | FiscalYearVariant | FY Variant | |
| AccountingDocCreatedByUser | FinPlngEntryItemCreatedByUser | |||
| CreationDate | ||||
| PlanningCategory | PlanningCategory | Plan Category | ||
| IsCommitment | ||||
| PartnerOrder | I_FinancialPlanningEntryItem | PartnerOrder_2 | ||
| BusinessTransactionType | BusinessTransactionType | Bus.transaction | ||
| ControllingDebitCreditCode | ControllingDebitCreditCode | Dr/Cr ind. CO | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| IsSettled | ||||
| SemanticTag | P_PROJECTSEMTAGACC | SemanticTag | Semantic Tag | |
| PartnerOrderCategory | ||||
| SourceReferenceDocumentType | ||||
| SourceLogicalSystem | ||||
| SourceReferenceDocumentCntxt | ||||
| SourceReferenceDocument | ||||
| SourceReferenceDocumentItem | ||||
| SourceReferenceDocSubitem | ||||
| WBSElementProfitCenter | I_WBSElementBasicData | ProfitCenter | Profit Center | |
| WBSDescription | I_WBSElementBasicData | WBSDescription | WBS Element Name | |
| ProjectObjectNode | I_WBSElementBasicData | WBSElementObject | Object number | |
| ResponsibleCostCenter | I_WBSElementBasicData | ResponsibleCostCenter | Responsible Cost Center | |
| ProjectType | I_WBSElementBasicData | ProjectType | Project Type | |
| ProjectDescription | P_ProjectsWithProjCat6 | ProjectDescription | Project Name | |
| ProjectProfileCode | P_ProjectsWithProjCat6 | ProjectProfileCode | Project Profile | |
| ProjectObject | P_ProjectsWithProjCat6 | ProjectObject | Object number | |
| AvailabilityControlProfile | P_ProjectsWithProjCat6 | AvailabilityControlProfile | Budget Availability Control Profile | |
| AvailabilityControlIsActive | P_ProjectsWithProjCat6 | AvailabilityControlIsActive | Budget Availability Control is Active | |
| AvailyCtrlTimeRangeType | ||||
| BudgetCurrencyRole | ||||
| ProjectUUID | P_ProjectsWithProjCat6 | ProjectUUID | Project UUID | |
| ProjectSummaryTaskUUID | P_ProjectsWithProjCat6 | ProjectSummaryTaskUUID | Entity GUID | |
| ProcessingStatus | P_ProjectsWithProjCat6 | ProcessingStatus | Worklist Status | |
| ProjectCategory | P_ProjectsWithProjCat6 | ProjectCategory | Proj. Category | |
| PlannedStartDate | PlannedStartDate | Latest Planned Start | ||
| PlannedEndDate | PlannedEndDate | Ltst Planned Finish |
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_EnterpriseProjectPlnCosts.
-- 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: PENTPRJPLN
CREATE VIEW P_EnterpriseProjectPlnCosts AS
SELECT
cast(cast('' as abap.char (2)) as fins_ledger_pers ) AS SourceLedger,
_Ledger.Ledger AS Ledger,
_ProjCstLineItm.CompanyCode AS CompanyCode,
_ProjCstLineItm.FiscalYear AS FiscalYear,
cast(cast('' as abap.char (10)) as farp_belnr_d ) AS AccountingDocument,
FinancialPlanningReqTransSqnc,
FinancialPlanningDataPacket,
cast(abs(FinancialPlanningEntryItem) as fis_act_pln_docln ) AS ActualPlanJournalEntryItem,
cast(cast('' as abap.char (6)) as fis_docln ) AS LedgerGLLineItem,
FinancialPlanningEntryItem,
_ProjCstLineItm.ControllingArea AS ControllingArea,
_ProjCstLineItm.GLAccount AS GLAccount,
_ProjCstLineItm.ChartOfAccounts AS ChartOfAccounts,
LedgerFiscalYear,
cast(cast( 'P' as abap.char (1)) as fis_actual_plan_code) AS ActualPlanCode,
_ProjCstLineItm.BusinessArea AS BusinessArea,
_ProjCstLineItm.ProfitCenter AS ProfitCenter,
_ProjCstLineItm.CostCenter AS CostCenter,
_Project.ProjectExternalID AS Project,
_ProjCstLineItm.ProjectInternalID AS ProjectInternalID,
_ProjCstLineItm._WBSElementBasicData.WBSElementExternalID AS WBSElement,
_ProjCstLineItm.WBSElementInternalID AS WBSElementInternalID,
_ProjCstLineItm.FunctionalArea AS FunctionalArea,
_ProjCstLineItm._PartnerWBSElementBasicData.WBSElementExternalID AS PartnerWBSElement,
_ProjCstLineItm._PartnerProjectBasicData.ProjectExternalID AS PartnerProject,
PartnerProjectInternalID,
PartnerWBSElementInternalID,
PartnerFunctionalArea,
PartnerCostCtrActivityType,
OrderID,
OrderOperation,
TransactionCurrency,
AmountInTransactionCurrency,
CompanyCodeCurrency,
AmountInCompanyCodeCurrency,
GlobalCurrency,
AmountInGlobalCurrency,
ControllingObjectCurrency,
AmountInObjectCurrency,
cast( 0 as fis_act_wsl) AS ActualAmountInTransactionCrcy,
cast( 0 as fis_act_hsl) AS ActualAmountInCompanyCodeCrcy,
cast( 0 as fis_act_ksl) AS ActualAmountInGlobalCurrency,
cast(AmountInObjectCurrency as fis_act_co_osl) AS ActualAmountInObjectCurrency,
cast(AmountInTransactionCurrency as fis_plan_wsl) AS PlanAmountInTransactionCrcy,
cast(AmountInCompanyCodeCurrency as fis_plan_hsl) AS PlanAmountInCompanyCodeCrcy,
cast(AmountInGlobalCurrency as fis_plan_ksl) AS PlanAmountInGlobalCurrency,
cast(AmountInObjectCurrency as fis_plan_co_osl) AS PlndCostAmtInProjCrcy,
_ProjCstLineItm.PostingDate AS PostingDate,
FiscalPeriod,
FiscalYearPeriod,
_ProjCstLineItm.FiscalYearVariant AS FiscalYearVariant,
FinPlngEntryItemCreatedByUser AS AccountingDocCreatedByUser,
cast( cast(substring( cast(FinPlngEntryItemCrtnDateTime as abap.char(30)) , 1 , 8) as abap.dats(8)) as fis_cpdat ) AS CreationDate,
PlanningCategory,
cast(' ' as fins_xcommitment) AS IsCommitment,
_ProjCstLineItm.PartnerOrder_2 AS PartnerOrder,
BusinessTransactionType,
ControllingDebitCreditCode,
CostCtrActivityType,
'X' AS IsSettled,
_SemanticTag.SemanticTag AS SemanticTag,
cast(_PartnerOrder.OrderCategory as fis_par_auftyp preserving type ) AS PartnerOrderCategory,
cast('' as fins_src_awtyp) AS SourceReferenceDocumentType,
cast('' as fins_src_awsys) AS SourceLogicalSystem,
cast('' as fins_src_aworg) AS SourceReferenceDocumentCntxt,
cast('' as fins_src_awref) AS SourceReferenceDocument,
cast('000000' as fins_src_awitem) AS SourceReferenceDocumentItem,
cast('000000' as fins_src_awsubit) AS SourceReferenceDocSubitem,
_WBS.ProfitCenter AS WBSElementProfitCenter,
_WBS.WBSDescription AS WBSDescription,
_WBS.WBSElementObject AS ProjectObjectNode,
_WBS.ResponsibleCostCenter AS ResponsibleCostCenter,
_WBS.ProjectType AS ProjectType,
_Project.ProjectDescription AS ProjectDescription,
_Project.ProjectProfileCode AS ProjectProfileCode,
_Project.ProjectObject AS ProjectObject,
_Project.AvailabilityControlProfile AS AvailabilityControlProfile,
_Project.AvailabilityControlIsActive AS AvailabilityControlIsActive,
_Project._AvailabilityCtrlProfile.AvailyCtrlTimeRangeType AS AvailyCtrlTimeRangeType,
_Project._AvailabilityCtrlProfile.BudgetCurrencyRole AS BudgetCurrencyRole,
_Project.ProjectUUID AS ProjectUUID,
_Project.ProjectSummaryTaskUUID AS ProjectSummaryTaskUUID,
_Project.ProcessingStatus AS ProcessingStatus,
_Project.ProjectCategory AS ProjectCategory,
PlannedStartDate,
PlannedEndDate
FROM I_FinancialPlanningEntryItem AS _ProjCstLineItm
INNER JOIN P_IsLeadingLedger AS _Ledger ON /* join condition not captured in parsed metadata */
INNER JOIN I_WBSElementBasicData AS _WBS ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProjectsWithProjCat6 AS _Project ON /* join condition not captured in parsed metadata */
INNER JOIN P_PROJECTSEMTAGACC AS _SemanticTag 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