P_GLItemByCostCenter

DDL: P_GLITEMBYCOSTCENTER SQL: PGLITMBYCOSTCNTR Type: view COMPOSITE

P_GLItemByCostCenter is a Composite CDS View in SAP S/4HANA. It has 1 association to related views.

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PurchaseOrderStatus _PurchaseOrderStatus _PurchaseOrderStatus.PurchaseOrder = $projection.PurchasingDocument

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PGLITMBYCOSTCNTR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY Ledger Ledger Ledger
CompanyCodeCurrency CompanyCodeCurrency Local Currency
FiscalYearVariant FiscalYearVariant FY Variant
CostCenter CostCenter Cost Center
FiscalPeriod FiscalPeriod Tax period
LedgerFiscalYear LedgerFiscalYear
GLAccount GLAccount General Ledger
IsCommitment IsCommitment
PostingDate PostingDate Posting Date for GR
ControllingArea ControllingArea Controlling Area
PurchasingDocument PurchasingDocument Purchasing Document
BusinessArea BusinessArea Business Area
Segment Segment Segment number
FinancialAccountType FinancialAccountType Fin. Account Type
ProfitCenter ProfitCenter Profit Center
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
Plant Plant Valuation Area
ValuationArea ValuationArea Valuation Area
SalesDocument SalesDocument SD Document
Supplier Supplier Supplier
Customer Customer Sold-to Party
AccountingDocumentType AccountingDocumentType Journal Entry Type
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAsset FixedAsset Sub-number
OrderID OrderID Order ID
PurchaseOrderStatus
AssgdAmtInCompanyCodeCurrency I_GLAccountLineItem AmountInCompanyCodeCurrency Local Crcy Amt
_SalesDocument _SalesDocument
_CurrentProfitCenter _CurrentProfitCenter
_GLAccountInCompanyCode _GLAccountInCompanyCode
_Supplier _Supplier
_Customer _Customer
_AccountingDocumentType _AccountingDocumentType
_FixedAsset _FixedAsset
_Order _Order
_CurrentCostCenter _CurrentCostCenter

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_GLItemByCostCenter.
-- 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: PGLITMBYCOSTCNTR

CREATE VIEW P_GLItemByCostCenter AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  Ledger,
  CompanyCodeCurrency,
  FiscalYearVariant,
  CostCenter,
  FiscalPeriod,
  LedgerFiscalYear,
  GLAccount,
  IsCommitment,
  PostingDate,
  ControllingArea,
  PurchasingDocument,
  BusinessArea,
  Segment,
  FinancialAccountType,
  ProfitCenter,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  Plant,
  ValuationArea,
  SalesDocument,
  Supplier,
  Customer,
  AccountingDocumentType,
  MasterFixedAsset,
  FixedAsset,
  OrderID,
  coalesce( _PurchaseOrderStatus.PurchasingDocumentStatus, 'NA' ) AS PurchaseOrderStatus,
  I_GLAccountLineItem.AmountInCompanyCodeCurrency AS AssgdAmtInCompanyCodeCurrency
LEFT OUTER JOIN I_PurchaseOrderStatus AS _PurchaseOrderStatus ON _PurchaseOrderStatus.PurchaseOrder = PurchasingDocument  -- association [0..1]
;