P_ProjectStockCostLineItem

DDL: P_PROJECTSTOCKCOSTLINEITEM SQL: PPRJBYPRJSTCKCST Type: view COMPOSITE

Project Stock Cost line item

P_ProjectStockCostLineItem is a Composite CDS View that provides data about "Project Stock Cost line item" in SAP S/4HANA. It reads from 4 data sources (P_IsLeadingLedger, I_ProjectBasicData, P_ProjectStockAcctSemanticTag, I_LedgerSourceLedger) and exposes 73 fields with key fields SourceLedger, Ledger, CompanyCode, FiscalYear, AccountingDocument.

Data Sources (4)

SourceAliasJoin Type
P_IsLeadingLedger _Ledger inner
I_ProjectBasicData _Project from
P_ProjectStockAcctSemanticTag _SemanticTag inner
I_LedgerSourceLedger _SourceLedger inner

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PPRJBYPRJSTCKCST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED 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
EndUserText.label Project Stock Cost line item view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (73)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger _ProjCstLineItm SourceLedger Source Ledger
KEY Ledger I_LedgerSourceLedger Ledger Ledger
KEY CompanyCode _ProjCstLineItm CompanyCode Receiver Company Code
KEY FiscalYear _ProjCstLineItm FiscalYear G/L Fiscal Year
KEY AccountingDocument _ProjCstLineItm AccountingDocument Journal Entry
FinancialPlanningReqTransSqnc
FinancialPlanningDataPacket
ActualPlanJournalEntryItem Journal Entry Item
LedgerFiscalYear _ProjCstLineItm LedgerFiscalYear
LedgerGLLineItem _ProjCstLineItm LedgerGLLineItem Journal Entry Item
FinancialPlanningEntryItem
ActualPlanCode
GLAccountHierarchy P_ProjectStockAcctSemanticTag GLAccountHierarchy
AccountingDocCreatedByUser _ProjCstLineItm AccountingDocCreatedByUser User which created overhead document
BusinessArea _ProjCstLineItm BusinessArea Business Area
PartnerOrder _ProjCstLineItm PartnerOrder Partner Order
OrderID _ProjCstLineItm OrderID Order ID
OrderOperation _ProjCstLineItm OrderOperation Operation or Phase
MaintenanceOrderDesc
PartnerAccountAssignmentType _ProjCstLineItm PartnerAccountAssignmentType Partner Account Assignment Type
OperationDescription
PartnerOrderCategory _ProjCstLineItm PartnerOrderCategory
PartnerWBSElement
PartnerProject
BusinessTransactionType _ProjCstLineItm BusinessTransactionType Bus.transaction
DebitCreditCode _ProjCstLineItm DebitCreditCode Single-Character Flag
ControllingDebitCreditCode _ProjCstLineItm ControllingDebitCreditCode Dr/Cr ind. CO
WBSElement _WBS WBSElementExternalID WBS Element External ID
Project I_ProjectBasicData ProjectExternalID Project def.
ProjectInternalID I_ProjectBasicData ProjectInternalID Project Def.
WBSElementInternalID _ProjCstLineItm WBSElementInternalID WBS Internal ID
ControllingArea _ProjCstLineItm ControllingArea Controlling Area
GLAccount _ProjCstLineItm GLAccount General Ledger
ChartOfAccounts _ProjCstLineItm ChartOfAccounts Node Class
CostCenter _ProjCstLineItm CostCenter Cost Center
ProfitCenter _ProjCstLineItm ProfitCenter Profit Center
CreationDate _ProjCstLineItm CreationDate Time Stamp
FunctionalArea _ProjCstLineItm FunctionalArea Sendr Fctl Area
CostCtrActivityType _ProjCstLineItm CostCtrActivityType Activity Type
ControllingObjectCurrency _ProjCstLineItm ControllingObjectCurrency CO Object Currency
TransactionCurrency _ProjCstLineItm TransactionCurrency Transaction Currency
CompanyCodeCurrency _ProjCstLineItm CompanyCodeCurrency Local Currency
FunctionalCurrency _ProjCstLineItm FunctionalCurrency Functional Currency
GlobalCurrency _ProjCstLineItm GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency _ProjCstLineItm AmountInGlobalCurrency Amount in Global Currency
PrjStockAmountInGlobalCurrency _ProjCstLineItm AmountInGlobalCurrency Amount in Global Currency
SourceReferenceDocumentType _ProjCstLineItm SourceReferenceDocumentType Ref. procedure
SourceLogicalSystem _ProjCstLineItm SourceLogicalSystem
SourceReferenceDocumentCntxt _ProjCstLineItm SourceReferenceDocumentCntxt
SourceReferenceDocument _ProjCstLineItm SourceReferenceDocument Reference Doc.
SourceReferenceDocumentItem _ProjCstLineItm SourceReferenceDocumentItem Ref. Doc. Item
SourceReferenceDocSubitem _ProjCstLineItm SourceReferenceDocSubitem
IsCommitment _ProjCstLineItm IsCommitment
PlanningCategory
PostingDate _ProjCstLineItm PostingDate Posting Date for GR
DocumentDate _ProjCstLineItm DocumentDate Journal Entry Date
FiscalPeriod _ProjCstLineItm FiscalPeriod Tax period
FiscalYearPeriod _ProjCstLineItm FiscalYearPeriod Period/Year
FiscalYearVariant _ProjCstLineItm FiscalYearVariant FY Variant
MaintenanceOrderIsSelected
SemanticTag P_ProjectStockAcctSemanticTag SemanticTag Semantic Tag
WBSElementProfitCenter _WBS ProfitCenter Profit Center
WBSDescription _WBS WBSDescription WBS Element Name
ProjectObjectNode _WBS WBSElementObject Object number
ResponsibleCostCenter _WBS ResponsibleCostCenter Responsible Cost Center
ProjectType _WBS ProjectType Project Type
ProjectDescription I_ProjectBasicData ProjectDescription Project Name
ProjectProfileCode I_ProjectBasicData ProjectProfileCode Project Profile
ProjectObject I_ProjectBasicData ProjectObject Object number
AvailabilityControlProfile I_ProjectBasicData AvailabilityControlProfile Budget Availability Control Profile
AvailabilityControlIsActive I_ProjectBasicData AvailabilityControlIsActive Budget Availability Control is Active
AvailyCtrlTimeRangeType
BudgetCurrencyRole

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_ProjectStockCostLineItem.
-- 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: PPRJBYPRJSTCKCST

CREATE VIEW P_ProjectStockCostLineItem AS
SELECT
  _ProjCstLineItm.SourceLedger AS SourceLedger,
  _SourceLedger.Ledger AS Ledger,
  _ProjCstLineItm.CompanyCode AS CompanyCode,
  _ProjCstLineItm.FiscalYear AS FiscalYear,
  _ProjCstLineItm.AccountingDocument AS AccountingDocument,
  cast(cast( '00000000000000000000000' as abap.numc (23)) as fis_fp_request_tsn ) AS FinancialPlanningReqTransSqnc,
  cast(cast( '000000' as abap.numc (6)) as fis_fp_data_packet ) AS FinancialPlanningDataPacket,
  cast( LedgerGLLineItem as fis_act_pln_docln) AS ActualPlanJournalEntryItem,
  _ProjCstLineItm.LedgerFiscalYear AS LedgerFiscalYear,
  _ProjCstLineItm.LedgerGLLineItem AS LedgerGLLineItem,
  cast(cast( 0 as abap.int4 ) as fis_fp_entry_item ) AS FinancialPlanningEntryItem,
  cast(cast( 'A' as abap.char (1)) as fis_actual_plan_code) AS ActualPlanCode,
  _SemanticTag.GLAccountHierarchy AS GLAccountHierarchy,
  _ProjCstLineItm.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
  _ProjCstLineItm.BusinessArea AS BusinessArea,
  _ProjCstLineItm.PartnerOrder AS PartnerOrder,
  _ProjCstLineItm.OrderID AS OrderID,
  _ProjCstLineItm.OrderOperation AS OrderOperation,
  ' ' AS MaintenanceOrderDesc,
  _ProjCstLineItm.PartnerAccountAssignmentType AS PartnerAccountAssignmentType,
  '' AS OperationDescription,
  _ProjCstLineItm.PartnerOrderCategory AS PartnerOrderCategory,
  _ProjCstLineItm._PartnerWBSElementBasicData.WBSElementExternalID AS PartnerWBSElement,
  _ProjCstLineItm._PartnerProjectBasicData.ProjectExternalID AS PartnerProject,
  _ProjCstLineItm.BusinessTransactionType AS BusinessTransactionType,
  _ProjCstLineItm.DebitCreditCode AS DebitCreditCode,
  _ProjCstLineItm.ControllingDebitCreditCode AS ControllingDebitCreditCode,
  _WBS.WBSElementExternalID AS WBSElement,
  _Project.ProjectExternalID AS Project,
  _Project.ProjectInternalID AS ProjectInternalID,
  _ProjCstLineItm.WBSElementInternalID AS WBSElementInternalID,
  _ProjCstLineItm.ControllingArea AS ControllingArea,
  _ProjCstLineItm.GLAccount AS GLAccount,
  _ProjCstLineItm.ChartOfAccounts AS ChartOfAccounts,
  _ProjCstLineItm.CostCenter AS CostCenter,
  _ProjCstLineItm.ProfitCenter AS ProfitCenter,
  _ProjCstLineItm.CreationDate AS CreationDate,
  _ProjCstLineItm.FunctionalArea AS FunctionalArea,
  _ProjCstLineItm.CostCtrActivityType AS CostCtrActivityType,
  _ProjCstLineItm.ControllingObjectCurrency AS ControllingObjectCurrency,
  _ProjCstLineItm.TransactionCurrency AS TransactionCurrency,
  _ProjCstLineItm.CompanyCodeCurrency AS CompanyCodeCurrency,
  _ProjCstLineItm.FunctionalCurrency AS FunctionalCurrency,
  _ProjCstLineItm.GlobalCurrency AS GlobalCurrency,
  _ProjCstLineItm.AmountInGlobalCurrency AS AmountInGlobalCurrency,
  _ProjCstLineItm.AmountInGlobalCurrency AS PrjStockAmountInGlobalCurrency,
  _ProjCstLineItm.SourceReferenceDocumentType AS SourceReferenceDocumentType,
  _ProjCstLineItm.SourceLogicalSystem AS SourceLogicalSystem,
  _ProjCstLineItm.SourceReferenceDocumentCntxt AS SourceReferenceDocumentCntxt,
  _ProjCstLineItm.SourceReferenceDocument AS SourceReferenceDocument,
  _ProjCstLineItm.SourceReferenceDocumentItem AS SourceReferenceDocumentItem,
  _ProjCstLineItm.SourceReferenceDocSubitem AS SourceReferenceDocSubitem,
  _ProjCstLineItm.IsCommitment AS IsCommitment,
  cast( cast( 'ACT01' as abap.char( 10 )) as fcom_category) AS PlanningCategory,
  _ProjCstLineItm.PostingDate AS PostingDate,
  _ProjCstLineItm.DocumentDate AS DocumentDate,
  _ProjCstLineItm.FiscalPeriod AS FiscalPeriod,
  _ProjCstLineItm.FiscalYearPeriod AS FiscalYearPeriod,
  _ProjCstLineItm.FiscalYearVariant AS FiscalYearVariant,
  cast( 'X' as boolean ) AS MaintenanceOrderIsSelected,
  _SemanticTag.SemanticTag AS SemanticTag,
  _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
FROM I_ProjectBasicData AS _Project
INNER JOIN I_LedgerSourceLedger AS _SourceLedger ON /* join condition not captured in parsed metadata */
INNER JOIN P_IsLeadingLedger AS _Ledger ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProjectStockAcctSemanticTag AS _SemanticTag ON /* join condition not captured in parsed metadata */
;