P_ProjPMOCostLineItms

DDL: P_PROJPMOCOSTLINEITMS SQL: PPRJBYPMIOCST Type: view COMPOSITE

P_ProjPMOCostLineItms is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (P_MAINTORDERBASICDATA, P_MAINTORDERBASICDATA, I_OrderPlanningCategoryMap, P_ProjCostAcctgLineItms, P_ProjCostAcctgLineItms) and exposes 219 fields with key fields ProjectInternalID, OrderID, SourceLedger, Ledger, CompanyCode.

Data Sources (5)

SourceAliasJoin Type
P_MAINTORDERBASICDATA _maintorder inner
P_MAINTORDERBASICDATA _maintorder inner
I_OrderPlanningCategoryMap _OrderCategoryMap inner
P_ProjCostAcctgLineItms _ProjCstLineItm from
P_ProjCostAcctgLineItms _ProjCstLineItm union_all

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PPRJBYPMIOCST 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 (219)

KeyFieldSource TableSource FieldDescription
KEY ProjectInternalID P_ProjCostAcctgLineItms ProjectInternalID Project Def.
KEY OrderID P_ProjCostAcctgLineItms OrderID Order ID
KEY SourceLedger SourceLedger Source Ledger
KEY Ledger Ledger Ledger
KEY CompanyCode P_ProjCostAcctgLineItms CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY FinancialPlanningReqTransSqnc FinancialPlanningReqTransSqnc Request TSN
KEY FinancialPlanningDataPacket FinancialPlanningDataPacket Data packet number
KEY ActualPlanJournalEntryItem ActualPlanJournalEntryItem
GLAccountHierarchy P_ProjCostAcctgLineItms GLAccountHierarchy
MaintenanceOrder P_MAINTORDERBASICDATA MaintenanceOrder Order
OrderOperation P_ProjCostAcctgLineItms OrderOperation Operation or Phase
MaintenanceOrderDesc
OperationDescription
LedgerFiscalYear LedgerFiscalYear
LedgerGLLineItem LedgerGLLineItem Journal Entry Item
FinancialPlanningEntryItem FinancialPlanningEntryItem
AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
BusinessArea BusinessArea Business Area
PartnerOrder PartnerOrder Partner Order
PartnerOrderCategory PartnerOrderCategory
PartnerWBSElement PartnerWBSElement WBS Element
PartnerProject PartnerProject Partner Project External ID
BusinessTransactionType BusinessTransactionType Bus.transaction
DebitCreditCode DebitCreditCode Single-Character Flag
ControllingDebitCreditCode ControllingDebitCreditCode Dr/Cr ind. CO
WBSElement
Project P_ProjCostAcctgLineItms Project WBS Element
WBSElementInternalID P_MAINTORDERBASICDATA WBSElementInternalID WBS Internal ID
ControllingArea P_ProjCostAcctgLineItms ControllingArea Controlling Area
GLAccount P_ProjCostAcctgLineItms GLAccount General Ledger
ChartOfAccounts P_ProjCostAcctgLineItms ChartOfAccounts Node Class
CostCenter P_ProjCostAcctgLineItms CostCenter Cost Center
ProfitCenter P_ProjCostAcctgLineItms ProfitCenter Profit Center
CreationDate CreationDate Time Stamp
FunctionalArea P_ProjCostAcctgLineItms FunctionalArea Sendr Fctl Area
CostCtrActivityType CostCtrActivityType Activity Type
ControllingObjectCurrency ControllingObjectCurrency CO Object Currency
AmountInObjectCurrency AmountInObjectCurrency Amount in Obj Crcy
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
FreeDefinedCurrency1 FreeDefinedCurrency1 Freely Defined Currency 1
AmountInFreeDefinedCurrency1 AmountInFreeDefinedCurrency1 Amount in Freely Defined Currency 1
FreeDefinedCurrency2 FreeDefinedCurrency2 Freely Defined Currency 2
AmountInFreeDefinedCurrency2 AmountInFreeDefinedCurrency2 Amount in Freely Defined Currency 2
FreeDefinedCurrency3 FreeDefinedCurrency3 Freely Defined Currency 3
AmountInFreeDefinedCurrency3 AmountInFreeDefinedCurrency3 Amount in Freely Defined Currency 3
FreeDefinedCurrency4 FreeDefinedCurrency4 Freely Defined Currency 4
AmountInFreeDefinedCurrency4 AmountInFreeDefinedCurrency4 Amount in Freely Defined Currency 4
FreeDefinedCurrency5 FreeDefinedCurrency5 Freely Defined Currency 5
AmountInFreeDefinedCurrency5 AmountInFreeDefinedCurrency5 Amount in Freely Defined Currency 5
FreeDefinedCurrency6 FreeDefinedCurrency6 Freely Defined Currency 6
AmountInFreeDefinedCurrency6 AmountInFreeDefinedCurrency6 Amount in Freely Defined Currency 6
FreeDefinedCurrency7 FreeDefinedCurrency7 Freely Defined Currency 7
AmountInFreeDefinedCurrency7 AmountInFreeDefinedCurrency7 Amount in Freely Defined Currency 7
FreeDefinedCurrency8 FreeDefinedCurrency8 Freely Defined Currency 8
AmountInFreeDefinedCurrency8 AmountInFreeDefinedCurrency8 Amount in Freely Defined Currency 8
ActualAmountInGlobalCurrency AmountInGlobalCurrency Amount in Global Currency
ActlCostInProjCrcy AmountInObjectCurrency Amount in Obj Crcy
ActualAmountInFreeDfndCrcy1 AmountInFreeDefinedCurrency1 Amount in Freely Defined Currency 1
ActualAmountInFreeDfndCrcy2 AmountInFreeDefinedCurrency2 Amount in Freely Defined Currency 2
ActualAmountInFreeDfndCrcy3 AmountInFreeDefinedCurrency3 Amount in Freely Defined Currency 3
ActualAmountInFreeDfndCrcy4 AmountInFreeDefinedCurrency4 Amount in Freely Defined Currency 4
ActualAmountInFreeDfndCrcy5 AmountInFreeDefinedCurrency5 Amount in Freely Defined Currency 5
ActualAmountInFreeDfndCrcy6 AmountInFreeDefinedCurrency6 Amount in Freely Defined Currency 6
ActualAmountInFreeDfndCrcy7 AmountInFreeDefinedCurrency7 Amount in Freely Defined Currency 7
ActualAmountInFreeDfndCrcy8 AmountInFreeDefinedCurrency8 Amount in Freely Defined Currency 8
CmtmtCostInGlobalCurrency
CmtmtCostInProjCrcy
CmtmtCostInFreeDefinedCrcy1
CmtmtCostInFreeDefinedCrcy2
CmtmtCostInFreeDefinedCrcy3
CmtmtCostInFreeDefinedCrcy4
CmtmtCostInFreeDefinedCrcy5
CmtmtCostInFreeDefinedCrcy6
CmtmtCostInFreeDefinedCrcy7
CmtmtCostInFreeDefinedCrcy8
PlanAmountInGlobalCurrency Amount in Global Currency
PlndCostAmtInProjCrcy Amount in Obj Crcy
PlanAmountInFreeDefinedCrcy1 Amount in Freely Defined Currency 1
PlanAmountInFreeDefinedCrcy2 Amount in Freely Defined Currency 2
PlanAmountInFreeDefinedCrcy3 Amount in Freely Defined Currency 3
PlanAmountInFreeDefinedCrcy4 Amount in Freely Defined Currency 4
PlanAmountInFreeDefinedCrcy5 Amount in Freely Defined Currency 5
PlanAmountInFreeDefinedCrcy6 Amount in Freely Defined Currency 6
PlanAmountInFreeDefinedCrcy7 Amount in Freely Defined Currency 7
PlanAmountInFreeDefinedCrcy8 Amount in Freely Defined Currency 8
SourceReferenceDocumentType SourceReferenceDocumentType Ref. procedure
SourceLogicalSystem SourceLogicalSystem
SourceReferenceDocumentCntxt SourceReferenceDocumentCntxt
SourceReferenceDocument SourceReferenceDocument Reference Doc.
SourceReferenceDocumentItem SourceReferenceDocumentItem Ref. Doc. Item
SourceReferenceDocSubitem SourceReferenceDocSubitem
IsCommitment
IsSettled
PlanningCategory P_ProjCostAcctgLineItms PlanningCategory Plan Category
PlanningCategory1 Plan Category
PlanningCategory2 Plan Category
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
FiscalPeriod FiscalPeriod Tax period
FiscalYearPeriod FiscalYearPeriod Period/Year
FiscalYearVariant P_ProjCostAcctgLineItms FiscalYearVariant FY Variant
IsLeadingLedger P_ProjCostAcctgLineItms IsLeadingLedger
ProjectInternalID Project Def.
KEY OrderID P_ProjCostAcctgLineItms OrderID Order ID
KEY SourceLedger SourceLedger Source Ledger
KEY Ledger Ledger Ledger
KEY CompanyCode P_ProjCostAcctgLineItms CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY FinancialPlanningReqTransSqnc FinancialPlanningReqTransSqnc Request TSN
KEY FinancialPlanningDataPacket FinancialPlanningDataPacket Data packet number
KEY ActualPlanJournalEntryItem ActualPlanJournalEntryItem
GLAccountHierarchy P_ProjCostAcctgLineItms GLAccountHierarchy
MaintenanceOrder P_MAINTORDERBASICDATA MaintenanceOrder Order
OrderOperation P_ProjCostAcctgLineItms OrderOperation Operation or Phase
MaintenanceOrderDesc
OperationDescription
LedgerFiscalYear LedgerFiscalYear
LedgerGLLineItem LedgerGLLineItem Journal Entry Item
FinancialPlanningEntryItem FinancialPlanningEntryItem
AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
BusinessArea BusinessArea Business Area
PartnerOrder PartnerOrder Partner Order
PartnerOrderCategory PartnerOrderCategory
PartnerWBSElement PartnerWBSElement WBS Element
PartnerProject PartnerProject Partner Project External ID
BusinessTransactionType BusinessTransactionType Bus.transaction
DebitCreditCode DebitCreditCode Single-Character Flag
ControllingDebitCreditCode ControllingDebitCreditCode Dr/Cr ind. CO
WBSElement
Project P_ProjCostAcctgLineItms Project WBS Element
WBSElementInternalID P_MAINTORDERBASICDATA WBSElementInternalID WBS Internal ID
ControllingArea P_ProjCostAcctgLineItms ControllingArea Controlling Area
GLAccount P_ProjCostAcctgLineItms GLAccount General Ledger
ChartOfAccounts P_ProjCostAcctgLineItms ChartOfAccounts Node Class
CostCenter P_ProjCostAcctgLineItms CostCenter Cost Center
ProfitCenter P_ProjCostAcctgLineItms ProfitCenter Profit Center
CreationDate CreationDate Time Stamp
FunctionalArea P_ProjCostAcctgLineItms FunctionalArea Sendr Fctl Area
CostCtrActivityType CostCtrActivityType Activity Type
ControllingObjectCurrency ControllingObjectCurrency CO Object Currency
AmountInObjectCurrency AmountInObjectCurrency Amount in Obj Crcy
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
FreeDefinedCurrency1 FreeDefinedCurrency1 Freely Defined Currency 1
AmountInFreeDefinedCurrency1 AmountInFreeDefinedCurrency1 Amount in Freely Defined Currency 1
FreeDefinedCurrency2 FreeDefinedCurrency2 Freely Defined Currency 2
AmountInFreeDefinedCurrency2 AmountInFreeDefinedCurrency2 Amount in Freely Defined Currency 2
FreeDefinedCurrency3 FreeDefinedCurrency3 Freely Defined Currency 3
AmountInFreeDefinedCurrency3 AmountInFreeDefinedCurrency3 Amount in Freely Defined Currency 3
FreeDefinedCurrency4 FreeDefinedCurrency4 Freely Defined Currency 4
AmountInFreeDefinedCurrency4 AmountInFreeDefinedCurrency4 Amount in Freely Defined Currency 4
FreeDefinedCurrency5 FreeDefinedCurrency5 Freely Defined Currency 5
AmountInFreeDefinedCurrency5 AmountInFreeDefinedCurrency5 Amount in Freely Defined Currency 5
FreeDefinedCurrency6 FreeDefinedCurrency6 Freely Defined Currency 6
AmountInFreeDefinedCurrency6 AmountInFreeDefinedCurrency6 Amount in Freely Defined Currency 6
FreeDefinedCurrency7 FreeDefinedCurrency7 Freely Defined Currency 7
AmountInFreeDefinedCurrency7 AmountInFreeDefinedCurrency7 Amount in Freely Defined Currency 7
FreeDefinedCurrency8 FreeDefinedCurrency8 Freely Defined Currency 8
AmountInFreeDefinedCurrency8 AmountInFreeDefinedCurrency8 Amount in Freely Defined Currency 8
ActualAmountInGlobalCurrency Amount in Global Currency
ActlCostInProjCrcy Amount in Obj Crcy
ActualAmountInFreeDfndCrcy1 Amount in Freely Defined Currency 1
ActualAmountInFreeDfndCrcy2 Amount in Freely Defined Currency 2
ActualAmountInFreeDfndCrcy3 Amount in Freely Defined Currency 3
ActualAmountInFreeDfndCrcy4 Amount in Freely Defined Currency 4
ActualAmountInFreeDfndCrcy5 Amount in Freely Defined Currency 5
ActualAmountInFreeDfndCrcy6 Amount in Freely Defined Currency 6
ActualAmountInFreeDfndCrcy7 Amount in Freely Defined Currency 7
ActualAmountInFreeDfndCrcy8 Amount in Freely Defined Currency 8
CmtmtCostInGlobalCurrency
CmtmtCostInProjCrcy
CmtmtCostInFreeDefinedCrcy1
CmtmtCostInFreeDefinedCrcy2
CmtmtCostInFreeDefinedCrcy3
CmtmtCostInFreeDefinedCrcy4
CmtmtCostInFreeDefinedCrcy5
CmtmtCostInFreeDefinedCrcy6
CmtmtCostInFreeDefinedCrcy7
CmtmtCostInFreeDefinedCrcy8
PlanAmountInGlobalCurrency AmountInGlobalCurrency Amount in Global Currency
PlndCostAmtInProjCrcy AmountInObjectCurrency Amount in Obj Crcy
PlanAmountInFreeDefinedCrcy1 AmountInFreeDefinedCurrency1 Amount in Freely Defined Currency 1
PlanAmountInFreeDefinedCrcy2 AmountInFreeDefinedCurrency2 Amount in Freely Defined Currency 2
PlanAmountInFreeDefinedCrcy3 AmountInFreeDefinedCurrency3 Amount in Freely Defined Currency 3
PlanAmountInFreeDefinedCrcy4 AmountInFreeDefinedCurrency4 Amount in Freely Defined Currency 4
PlanAmountInFreeDefinedCrcy5 AmountInFreeDefinedCurrency5 Amount in Freely Defined Currency 5
PlanAmountInFreeDefinedCrcy6 AmountInFreeDefinedCurrency6 Amount in Freely Defined Currency 6
PlanAmountInFreeDefinedCrcy7 AmountInFreeDefinedCurrency7 Amount in Freely Defined Currency 7
PlanAmountInFreeDefinedCrcy8 AmountInFreeDefinedCurrency8 Amount in Freely Defined Currency 8
SourceReferenceDocumentType SourceReferenceDocumentType Ref. procedure
SourceLogicalSystem SourceLogicalSystem
SourceReferenceDocumentCntxt SourceReferenceDocumentCntxt
SourceReferenceDocument SourceReferenceDocument Reference Doc.
SourceReferenceDocumentItem SourceReferenceDocumentItem Ref. Doc. Item
SourceReferenceDocSubitem SourceReferenceDocSubitem
IsCommitment
IsSettled
PlanningCategory P_ProjCostAcctgLineItms PlanningCategory Plan Category
PlanningCategory1 I_OrderPlanningCategoryMap PlanningCategory1 Plan Category
PlanningCategory2 I_OrderPlanningCategoryMap PlanningCategory2 Plan Category
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
FiscalPeriod FiscalPeriod Tax period
FiscalYearPeriod FiscalYearPeriod Period/Year
FiscalYearVariant P_ProjCostAcctgLineItms FiscalYearVariant FY Variant
IsLeadingLedger P_ProjCostAcctgLineItms IsLeadingLedger
SemanticTag P_ProjCostAcctgLineItms SemanticTag Semantic Tag

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_ProjPMOCostLineItms.
-- 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: PPRJBYPMIOCST

CREATE VIEW P_ProjPMOCostLineItms AS
SELECT
  _ProjCstLineItm.ProjectInternalID AS ProjectInternalID,
  _ProjCstLineItm.OrderID AS OrderID,
  SourceLedger,
  Ledger,
  _ProjCstLineItm.CompanyCode AS CompanyCode,
  FiscalYear,
  AccountingDocument,
  FinancialPlanningReqTransSqnc,
  FinancialPlanningDataPacket,
  ActualPlanJournalEntryItem,
  _ProjCstLineItm.GLAccountHierarchy AS GLAccountHierarchy,
  _maintorder.MaintenanceOrder AS MaintenanceOrder,
  _ProjCstLineItm.OrderOperation AS OrderOperation,
  _ProjCstLineItm._MaintenanceOrder.MaintenanceOrderDesc AS MaintenanceOrderDesc,
  _ProjCstLineItm._MaintenanceOrderOperation.OperationDescription AS OperationDescription,
  LedgerFiscalYear,
  LedgerGLLineItem,
  FinancialPlanningEntryItem,
  AccountingDocCreatedByUser,
  BusinessArea,
  PartnerOrder,
  PartnerOrderCategory,
  PartnerWBSElement,
  PartnerProject,
  BusinessTransactionType,
  DebitCreditCode,
  ControllingDebitCreditCode,
  _maintorder._WBSElement.WBSElement AS WBSElement,
  _ProjCstLineItm.Project AS Project,
  _maintorder.WBSElementInternalID AS WBSElementInternalID,
  _ProjCstLineItm.ControllingArea AS ControllingArea,
  _ProjCstLineItm.GLAccount AS GLAccount,
  _ProjCstLineItm.ChartOfAccounts AS ChartOfAccounts,
  _ProjCstLineItm.CostCenter AS CostCenter,
  _ProjCstLineItm.ProfitCenter AS ProfitCenter,
  CreationDate,
  _ProjCstLineItm.FunctionalArea AS FunctionalArea,
  CostCtrActivityType,
  ControllingObjectCurrency,
  AmountInObjectCurrency,
  TransactionCurrency,
  AmountInTransactionCurrency,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency,
  GlobalCurrency,
  AmountInGlobalCurrency,
  FreeDefinedCurrency1,
  AmountInFreeDefinedCurrency1,
  FreeDefinedCurrency2,
  AmountInFreeDefinedCurrency2,
  FreeDefinedCurrency3,
  AmountInFreeDefinedCurrency3,
  FreeDefinedCurrency4,
  AmountInFreeDefinedCurrency4,
  FreeDefinedCurrency5,
  AmountInFreeDefinedCurrency5,
  FreeDefinedCurrency6,
  AmountInFreeDefinedCurrency6,
  FreeDefinedCurrency7,
  AmountInFreeDefinedCurrency7,
  FreeDefinedCurrency8,
  AmountInFreeDefinedCurrency8,
  AmountInGlobalCurrency AS ActualAmountInGlobalCurrency,
  AmountInObjectCurrency AS ActlCostInProjCrcy,
  AmountInFreeDefinedCurrency1 AS ActualAmountInFreeDfndCrcy1,
  AmountInFreeDefinedCurrency2 AS ActualAmountInFreeDfndCrcy2,
  AmountInFreeDefinedCurrency3 AS ActualAmountInFreeDfndCrcy3,
  AmountInFreeDefinedCurrency4 AS ActualAmountInFreeDfndCrcy4,
  AmountInFreeDefinedCurrency5 AS ActualAmountInFreeDfndCrcy5,
  AmountInFreeDefinedCurrency6 AS ActualAmountInFreeDfndCrcy6,
  AmountInFreeDefinedCurrency7 AS ActualAmountInFreeDfndCrcy7,
  AmountInFreeDefinedCurrency8 AS ActualAmountInFreeDfndCrcy8,
  cast(0 as fis_ksl) AS CmtmtCostInGlobalCurrency,
  cast(0 as fins_vco_ocur12) AS CmtmtCostInProjCrcy,
  cast(0 as fis_osl) AS CmtmtCostInFreeDefinedCrcy1,
  cast(0 as fis_vsl) AS CmtmtCostInFreeDefinedCrcy2,
  cast(0 as fis_bsl) AS CmtmtCostInFreeDefinedCrcy3,
  cast(0 as fis_csl) AS CmtmtCostInFreeDefinedCrcy4,
  cast(0 as fis_dsl) AS CmtmtCostInFreeDefinedCrcy5,
  cast(0 as fis_esl) AS CmtmtCostInFreeDefinedCrcy6,
  cast(0 as fis_fsl) AS CmtmtCostInFreeDefinedCrcy7,
  cast(0 as fis_gsl) AS CmtmtCostInFreeDefinedCrcy8,
  cast(0 as fis_ksl) AS PlanAmountInGlobalCurrency,
  cast(0 as fins_vco_ocur12) AS PlndCostAmtInProjCrcy,
  cast(0 as fis_osl) AS PlanAmountInFreeDefinedCrcy1,
  cast(0 as fis_vsl) AS PlanAmountInFreeDefinedCrcy2,
  cast(0 as fis_bsl) AS PlanAmountInFreeDefinedCrcy3,
  cast(0 as fis_csl) AS PlanAmountInFreeDefinedCrcy4,
  cast(0 as fis_dsl) AS PlanAmountInFreeDefinedCrcy5,
  cast(0 as fis_esl) AS PlanAmountInFreeDefinedCrcy6,
  cast(0 as fis_fsl) AS PlanAmountInFreeDefinedCrcy7,
  cast(0 as fis_gsl) AS PlanAmountInFreeDefinedCrcy8,
  SourceReferenceDocumentType,
  SourceLogicalSystem,
  SourceReferenceDocumentCntxt,
  SourceReferenceDocument,
  SourceReferenceDocumentItem,
  SourceReferenceDocSubitem,
  '' AS IsCommitment,
  'X' AS IsSettled,
  _ProjCstLineItm.PlanningCategory AS PlanningCategory,
  cast('' as fcom_category ) AS PlanningCategory1,
  cast('' as fcom_category ) AS PlanningCategory2,
  PostingDate,
  DocumentDate,
  FiscalPeriod,
  FiscalYearPeriod,
  _ProjCstLineItm.FiscalYearVariant AS FiscalYearVariant,
  _ProjCstLineItm.IsLeadingLedger AS IsLeadingLedger,
  _ProjCstLineItm.SemanticTag AS SemanticTag
FROM P_ProjCostAcctgLineItms AS _ProjCstLineItm
INNER JOIN P_MAINTORDERBASICDATA AS _maintorder ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderPlanningCategoryMap AS _OrderCategoryMap ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ProjCostAcctgLineItms
;