P_ProjPlnBudgetLineItms

DDL: P_PROJPLNBUDGETLINEITMS SQL: PPRJBYPLNBGT Type: view COMPOSITE Package: ODATA_PS_COS_PROJBDGT_DET

Project Budget Plan

P_ProjPlnBudgetLineItms is a Composite CDS View that provides data about "Project Budget Plan" in SAP S/4HANA. It reads from 9 data sources and exposes 171 fields with key fields SourceLedger, Ledger, CompanyCodeendasCompanyCode, FiscalYear, AccountingDocument. It has 1 association to related views. Part of development package ODATA_PS_COS_PROJBDGT_DET.

Data Sources (9)

SourceAliasJoin Type
P_GetRlvtSemanticTagForProj _AllCost inner
P_GetRlvtSemanticTagForProj _AllCost inner
I_OrderPlanningCategoryMap _OrderCategoryMap inner
I_MaintenanceOrder _Orders inner
I_FinancialPlanningEntryItem _ProjCstLineItm inner
I_EnterpriseProject _ProjectSummary from
P_PROJECTSEMTAGACC _SemTagGL inner
P_PROJECTSEMTAGACC _SemTagGL inner
P_ProjectsWithProjCat6 Project union_all

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_FiscalPeriodForVariant _FiscalPeriod $projection.LedgerFiscalYear = _FiscalPeriod.FiscalYear and $projection.FiscalPeriod = _FiscalPeriod.FiscalPeriod and $projection.FiscalYearVariant = _FiscalPeriod.FiscalYearVariant

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PPRJBYPLNBGT 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 (171)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger
KEY Ledger I_FinancialPlanningEntryItem Ledger Ledger
KEY CompanyCodeendasCompanyCode
KEY FiscalYear I_FinancialPlanningEntryItem FiscalYear G/L Fiscal Year
KEY AccountingDocument
KEY FinancialPlanningReqTransSqnc I_FinancialPlanningEntryItem FinancialPlanningReqTransSqnc Request TSN
KEY FinancialPlanningDataPacket I_FinancialPlanningEntryItem FinancialPlanningDataPacket Data packet number
KEY ActualPlanJournalEntryItem
LedgerFiscalYear I_FinancialPlanningEntryItem LedgerFiscalYear Ref. Year1
LedgerGLLineItem
FinancialPlanningEntryItem I_FinancialPlanningEntryItem FinancialPlanningEntryItem Object GUID
GLAccount I_FinancialPlanningEntryItem GLAccount General Ledger
ChartOfAccounts I_FinancialPlanningEntryItem ChartOfAccounts Node Class
AccountingDocCreatedByUser I_FinancialPlanningEntryItem FinPlngEntryItemCreatedByUser User Name
GLAccountHierarchy P_PROJECTSEMTAGACC GLAccountHierarchy
BusinessArea I_FinancialPlanningEntryItem BusinessArea Business Area
CostCenter I_FinancialPlanningEntryItem CostCenter Cost Center
BudgetProcess I_FinancialPlanningEntryItem BudgetProcess Budget Process Type
PartnerOrder I_FinancialPlanningEntryItem PartnerOrder_2
PartnerOrderCategory
PartnerWBSElement
PartnerProject
BusinessTransactionType I_FinancialPlanningEntryItem BusinessTransactionType Bus.transaction
ControllingDebitCreditCode I_FinancialPlanningEntryItem ControllingDebitCreditCode Dr/Cr ind. CO
ProfitCenterendasProfitCenter
WBSElementProfitCenter _WBSElementBasicData ProfitCenter Profit Center
WBSDescription _WBSElementBasicData WBSDescription WBS Element Name
ProjectObjectNode _WBSElementBasicData WBSElementObject Order ID
WBSElement _WBSElementBasicData WBSElementExternalID WBS Element External ID
ResponsibleCostCenter _WBSElementBasicData ResponsibleCostCenter Responsible Cost Center
ProjectType _WBSElementBasicData ProjectType Project Type
WBSElementInternalID I_FinancialPlanningEntryItem WBSElementInternalID WBS Internal ID
ControllingArea I_FinancialPlanningEntryItem ControllingArea Controlling Area
Project
ProjectInternalID I_FinancialPlanningEntryItem ProjectInternalID Project Def.
ProjectExternalID I_EnterpriseProject Project WBS Element
ProjectDescription Project Name
ProjectProfileCode Project Profile
ProjectObject Object number
AvailabilityControlProfile Budget Availability Control Profile
AvailabilityControlIsActive Budget Availability Control is Active
ParentSemanticTag
AvailyCtrlTimeRangeType
BudgetCurrencyRole
ProjectCurrency Project Currency
Plant _WBSElementBasicData Plant Valuation Area
ProjectSummaryTaskUUID I_EnterpriseProject ProjectSummaryTaskUUID Entity GUID
ProjectCategory
ProjectUUID I_EnterpriseProject ProjectUUID Project UUID
ProcessingStatus I_EnterpriseProject ProcessingStatus Worklist Status
TaskUUID I_EnterpriseProject ProjectSummaryTaskUUID Entity GUID
CreationDate
FunctionalArea I_FinancialPlanningEntryItem FunctionalArea Sendr Fctl Area
CostCtrActivityType I_FinancialPlanningEntryItem CostCtrActivityType Activity Type
ControllingObjectCurrency I_FinancialPlanningEntryItem ControllingObjectCurrency CO Object Currency
AmountInObjectCurrency I_FinancialPlanningEntryItem AmountInObjectCurrency Amount in Obj Crcy
TransactionCurrency I_FinancialPlanningEntryItem TransactionCurrency Transaction Currency
AmountInTransactionCurrency I_FinancialPlanningEntryItem AmountInTransactionCurrency Pt Crcy Amt
CompanyCodeCurrency I_FinancialPlanningEntryItem CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency I_FinancialPlanningEntryItem AmountInCompanyCodeCurrency Local Crcy Amt
GlobalCurrency I_FinancialPlanningEntryItem GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency I_FinancialPlanningEntryItem AmountInGlobalCurrency Amount in Global Currency
FunctionalCurrency I_FinancialPlanningEntryItem FunctionalCurrency Functional Currency
AmountInFunctionalCurrency I_FinancialPlanningEntryItem AmountInFunctionalCurrency Amount in Functional Currency
PlanningCategory I_FinancialPlanningEntryItem PlanningCategory Plan Category
PostingDate I_FinancialPlanningEntryItem PostingDate Posting Date for GR
DocumentDate
FiscalPeriod I_FinancialPlanningEntryItem FiscalPeriod Tax period
FiscalYearPeriod I_FinancialPlanningEntryItem FiscalYearPeriod Period/Year
FiscalYearVariant I_FinancialPlanningEntryItem FiscalYearVariant FY Variant
IsSettled
SourceReferenceDocumentType
SourceLogicalSystem
SourceReferenceDocumentCntxt
SourceReferenceDocument
SourceReferenceDocumentItem
SourceReferenceDocSubitem
IsCommitment
OrderID I_FinancialPlanningEntryItem OrderID Order ID
OrderPlanningCategory Plan Category
MaintenanceOrderIsSelected
SemanticTag P_PROJECTSEMTAGACC SemanticTag Semantic Tag
SemanticTagIsBudgetRelevant P_GetRlvtSemanticTagForProj SemanticTagIsBudgetRelevant
ObjectIsBudgeted P_GetRlvtSemanticTagForProj SemanticTagIsBudgetRelevant
ProjectIsBudgetRelevant P_GetRlvtSemanticTagForProj ProjectIsBudgetRelevant
char2asfins_ledger_persasSourceLedger
KEY Ledger I_FinancialPlanningEntryItem Ledger Ledger
KEY CompanyCodeendasCompanyCode
KEY FiscalYear I_FinancialPlanningEntryItem FiscalYear G/L Fiscal Year
KEY AccountingDocument
KEY FinancialPlanningReqTransSqnc I_FinancialPlanningEntryItem FinancialPlanningReqTransSqnc Request TSN
KEY FinancialPlanningDataPacket I_FinancialPlanningEntryItem FinancialPlanningDataPacket Data packet number
KEY ActualPlanJournalEntryItem
LedgerFiscalYear I_FinancialPlanningEntryItem LedgerFiscalYear Ref. Year1
LedgerGLLineItem
FinancialPlanningEntryItem I_FinancialPlanningEntryItem FinancialPlanningEntryItem Object GUID
GLAccount I_FinancialPlanningEntryItem GLAccount General Ledger
ChartOfAccounts I_FinancialPlanningEntryItem ChartOfAccounts Node Class
AccountingDocCreatedByUser I_FinancialPlanningEntryItem FinPlngEntryItemCreatedByUser User Name
GLAccountHierarchy P_PROJECTSEMTAGACC GLAccountHierarchy
BusinessArea I_FinancialPlanningEntryItem BusinessArea Business Area
CostCenter I_FinancialPlanningEntryItem CostCenter Cost Center
BudgetProcess I_FinancialPlanningEntryItem BudgetProcess Budget Process Type
PartnerOrder I_FinancialPlanningEntryItem PartnerOrder_2
PartnerOrderCategory
PartnerWBSElement
PartnerProject
BusinessTransactionType I_FinancialPlanningEntryItem BusinessTransactionType Bus.transaction
ControllingDebitCreditCode I_FinancialPlanningEntryItem ControllingDebitCreditCode Dr/Cr ind. CO
ProfitCenterendasProfitCenter
WBSElementProfitCenter _WBSElementBasicData ProfitCenter Profit Center
WBSDescription _WBSElementBasicData WBSDescription WBS Element Name
ProjectObjectNode I_FinancialPlanningEntryItem OrderID Order ID
WBSElement _WBSElementBasicData WBSElementExternalID WBS Element External ID
ResponsibleCostCenter _WBSElementBasicData ResponsibleCostCenter Responsible Cost Center
ProjectType _WBSElementBasicData ProjectType Project Type
WBSElementInternalID I_FinancialPlanningEntryItem WBSElementInternalID WBS Internal ID
ControllingArea I_FinancialPlanningEntryItem ControllingArea Controlling Area
Project
ProjectInternalID I_FinancialPlanningEntryItem ProjectInternalID Project Def.
ProjectExternalID I_EnterpriseProject Project WBS Element
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
ParentSemanticTag
AvailyCtrlTimeRangeType
BudgetCurrencyRole
ProjectCurrency P_ProjectsWithProjCat6 ProjectCurrency Project Currency
Plant _WBSElementBasicData Plant Valuation Area
ProjectSummaryTaskUUID I_EnterpriseProject ProjectSummaryTaskUUID Entity GUID
ProjectCategory
ProjectUUID I_EnterpriseProject ProjectUUID Project UUID
ProcessingStatus I_EnterpriseProject ProcessingStatus Worklist Status
TaskUUID I_EnterpriseProject ProjectSummaryTaskUUID Entity GUID
CreationDate
FunctionalArea I_FinancialPlanningEntryItem FunctionalArea Sendr Fctl Area
CostCtrActivityType I_FinancialPlanningEntryItem CostCtrActivityType Activity Type
ControllingObjectCurrency I_FinancialPlanningEntryItem ControllingObjectCurrency CO Object Currency
AmountInObjectCurrency I_FinancialPlanningEntryItem AmountInObjectCurrency Amount in Obj Crcy
TransactionCurrency I_FinancialPlanningEntryItem TransactionCurrency Transaction Currency
AmountInTransactionCurrency I_FinancialPlanningEntryItem AmountInTransactionCurrency Pt Crcy Amt
CompanyCodeCurrency I_FinancialPlanningEntryItem CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency I_FinancialPlanningEntryItem AmountInCompanyCodeCurrency Local Crcy Amt
GlobalCurrency I_FinancialPlanningEntryItem GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency I_FinancialPlanningEntryItem AmountInGlobalCurrency Amount in Global Currency
FunctionalCurrency I_FinancialPlanningEntryItem FunctionalCurrency Functional Currency
AmountInFunctionalCurrency I_FinancialPlanningEntryItem AmountInFunctionalCurrency Amount in Functional Currency
PlanningCategory I_FinancialPlanningEntryItem PlanningCategory Plan Category
PostingDate I_FinancialPlanningEntryItem PostingDate Posting Date for GR
DocumentDate
FiscalPeriod I_FinancialPlanningEntryItem FiscalPeriod Tax period
FiscalYearPeriod I_FinancialPlanningEntryItem FiscalYearPeriod Period/Year
FiscalYearVariant I_FinancialPlanningEntryItem FiscalYearVariant FY Variant
IsSettled
SourceReferenceDocumentType
SourceLogicalSystem
SourceReferenceDocumentCntxt
SourceReferenceDocument
SourceReferenceDocumentItem
SourceReferenceDocSubitem
IsCommitment
OrderID I_FinancialPlanningEntryItem OrderID Order ID
OrderPlanningCategory I_OrderPlanningCategoryMap PlanningCategory1 Plan Category
MaintenanceOrderIsSelected
SemanticTag P_PROJECTSEMTAGACC SemanticTag Semantic Tag
SemanticTagIsBudgetRelevant P_GetRlvtSemanticTagForProj SemanticTagIsBudgetRelevant
ObjectIsBudgeted P_GetRlvtSemanticTagForProj SemanticTagIsBudgetRelevant
ProjectIsBudgetRelevant P_GetRlvtSemanticTagForProj ProjectIsBudgetRelevant
_FiscalPeriod _FiscalPeriod

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_ProjPlnBudgetLineItms.
-- 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: PPRJBYPLNBGT

CREATE VIEW P_ProjPlnBudgetLineItms AS
SELECT
  cast(cast('' as abap.char (2)) as fins_ledger_pers ) AS SourceLedger,
  _ProjCstLineItm.Ledger AS Ledger,
  case when _ProjCstLineItm.CompanyCode is initial or _ProjCstLineItm.CompanyCode is null then _WBSElementBasicData.CompanyCode else _ProjCstLineItm.CompanyCode end as CompanyCode AS CompanyCodeendasCompanyCode,
  _ProjCstLineItm.FiscalYear AS FiscalYear,
  cast(cast('' as abap.char (10)) as farp_belnr_d ) AS AccountingDocument,
  _ProjCstLineItm.FinancialPlanningReqTransSqnc AS FinancialPlanningReqTransSqnc,
  _ProjCstLineItm.FinancialPlanningDataPacket AS FinancialPlanningDataPacket,
  cast(abs(_ProjCstLineItm.FinancialPlanningEntryItem) as fis_act_pln_docln ) AS ActualPlanJournalEntryItem,
  _ProjCstLineItm.LedgerFiscalYear AS LedgerFiscalYear,
  cast(cast('' as abap.char (6)) as fis_docln ) AS LedgerGLLineItem,
  _ProjCstLineItm.FinancialPlanningEntryItem AS FinancialPlanningEntryItem,
  _ProjCstLineItm.GLAccount AS GLAccount,
  _ProjCstLineItm.ChartOfAccounts AS ChartOfAccounts,
  _ProjCstLineItm.FinPlngEntryItemCreatedByUser AS AccountingDocCreatedByUser,
  _SemTagGL.GLAccountHierarchy AS GLAccountHierarchy,
  _ProjCstLineItm.BusinessArea AS BusinessArea,
  _ProjCstLineItm.CostCenter AS CostCenter,
  _ProjCstLineItm.BudgetProcess AS BudgetProcess,
  _ProjCstLineItm.PartnerOrder_2 AS PartnerOrder,
  cast(_ProjCstLineItm._PartnerOrder.OrderCategory as fis_par_auftyp preserving type ) AS PartnerOrderCategory,
  _ProjCstLineItm._PartnerWBSElementBasicData.WBSElementExternalID AS PartnerWBSElement,
  _ProjCstLineItm._PartnerProjectBasicData.ProjectExternalID AS PartnerProject,
  _ProjCstLineItm.BusinessTransactionType AS BusinessTransactionType,
  _ProjCstLineItm.ControllingDebitCreditCode AS ControllingDebitCreditCode,
  case when _ProjCstLineItm.ProfitCenter is initial or _ProjCstLineItm.ProfitCenter is null then _WBSElementBasicData.ProfitCenter else _ProjCstLineItm.ProfitCenter end as ProfitCenter AS ProfitCenterendasProfitCenter,
  _WBSElementBasicData.ProfitCenter AS WBSElementProfitCenter,
  _WBSElementBasicData.WBSDescription AS WBSDescription,
  _WBSElementBasicData.WBSElementObject AS ProjectObjectNode,
  _WBSElementBasicData.WBSElementExternalID AS WBSElement,
  _WBSElementBasicData.ResponsibleCostCenter AS ResponsibleCostCenter,
  _WBSElementBasicData.ProjectType AS ProjectType,
  _ProjCstLineItm.WBSElementInternalID AS WBSElementInternalID,
  _ProjCstLineItm.ControllingArea AS ControllingArea,
  _ProjCstLineItm._ProjectBasicData.ProjectExternalID AS Project,
  _ProjCstLineItm.ProjectInternalID AS ProjectInternalID,
  _ProjectSummary.Project AS ProjectExternalID,
  _ProjCstLineItm._ProjectBasicData.ProjectDescription AS ProjectDescription,
  _ProjCstLineItm._ProjectBasicData.ProjectProfileCode AS ProjectProfileCode,
  _ProjCstLineItm._ProjectBasicData.ProjectObject AS ProjectObject,
  _ProjCstLineItm._ProjectBasicData.AvailabilityControlProfile AS AvailabilityControlProfile,
  _ProjCstLineItm._ProjectBasicData.AvailabilityControlIsActive AS AvailabilityControlIsActive,
  _ProjCstLineItm._ProjectBasicData._AvailabilityCtrlProfile._SemanticTag.SemanticTag AS ParentSemanticTag,
  _ProjCstLineItm._ProjectBasicData._AvailabilityCtrlProfile.AvailyCtrlTimeRangeType AS AvailyCtrlTimeRangeType,
  _ProjCstLineItm._ProjectBasicData._AvailabilityCtrlProfile.BudgetCurrencyRole AS BudgetCurrencyRole,
  _ProjCstLineItm._ProjectBasicData.ProjectCurrency AS ProjectCurrency,
  _WBSElementBasicData.Plant AS Plant,
  _ProjectSummary.ProjectSummaryTaskUUID AS ProjectSummaryTaskUUID,
  '6' AS ProjectCategory,
  _ProjectSummary.ProjectUUID AS ProjectUUID,
  _ProjectSummary.ProcessingStatus AS ProcessingStatus,
  _ProjectSummary.ProjectSummaryTaskUUID AS TaskUUID,
  cast( cast(substring( cast(_ProjCstLineItm.FinPlngEntryItemCrtnDateTime as abap.char(30)) , 1 , 8) as abap.dats(8)) as fis_cpdat ) AS CreationDate,
  _ProjCstLineItm.FunctionalArea AS FunctionalArea,
  _ProjCstLineItm.CostCtrActivityType AS CostCtrActivityType,
  _ProjCstLineItm.ControllingObjectCurrency AS ControllingObjectCurrency,
  _ProjCstLineItm.AmountInObjectCurrency AS AmountInObjectCurrency,
  _ProjCstLineItm.TransactionCurrency AS TransactionCurrency,
  _ProjCstLineItm.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  _ProjCstLineItm.CompanyCodeCurrency AS CompanyCodeCurrency,
  _ProjCstLineItm.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  _ProjCstLineItm.GlobalCurrency AS GlobalCurrency,
  _ProjCstLineItm.AmountInGlobalCurrency AS AmountInGlobalCurrency,
  _ProjCstLineItm.FunctionalCurrency AS FunctionalCurrency,
  _ProjCstLineItm.AmountInFunctionalCurrency AS AmountInFunctionalCurrency,
  _ProjCstLineItm.PlanningCategory AS PlanningCategory,
  _ProjCstLineItm.PostingDate AS PostingDate,
  cast( '00000000' as bldat ) AS DocumentDate,
  _ProjCstLineItm.FiscalPeriod AS FiscalPeriod,
  _ProjCstLineItm.FiscalYearPeriod AS FiscalYearPeriod,
  _ProjCstLineItm.FiscalYearVariant AS FiscalYearVariant,
  'X' AS IsSettled,
  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 preserving type ) AS SourceReferenceDocumentItem,
  cast('000000' as fins_src_awsubit preserving type ) AS SourceReferenceDocSubitem,
  cast(' ' as fins_xcommitment preserving type ) AS IsCommitment,
  _ProjCstLineItm.OrderID AS OrderID,
  cast('' as fcom_category ) AS OrderPlanningCategory,
  cast( 'X' as boolean ) AS MaintenanceOrderIsSelected,
  _SemTagGL.SemanticTag AS SemanticTag,
  _AllCost.SemanticTagIsBudgetRelevant AS SemanticTagIsBudgetRelevant,
  _AllCost.SemanticTagIsBudgetRelevant AS ObjectIsBudgeted,
  _AllCost.ProjectIsBudgetRelevant AS ProjectIsBudgetRelevant
FROM I_EnterpriseProject AS _ProjectSummary
INNER JOIN P_PROJECTSEMTAGACC AS _SemTagGL ON /* join condition not captured in parsed metadata */
INNER JOIN P_GetRlvtSemanticTagForProj AS _AllCost ON /* join condition not captured in parsed metadata */
INNER JOIN I_FinancialPlanningEntryItem AS _ProjCstLineItm ON /* join condition not captured in parsed metadata */
INNER JOIN I_MaintenanceOrder AS _Orders ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderPlanningCategoryMap AS _OrderCategoryMap ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FiscalPeriodForVariant AS _FiscalPeriod ON LedgerFiscalYear = _FiscalPeriod.FiscalYear AND FiscalPeriod = _FiscalPeriod.FiscalPeriod AND FiscalYearVariant = _FiscalPeriod.FiscalYearVariant  -- association [0..1]
-- UNION ALL with additional select branch(es): P_ProjectsWithProjCat6
;