P_GLItemByCostCenter
P_GLItemByCostCenter is a Composite CDS View in SAP S/4HANA. It has 1 association to related views.
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurchaseOrderStatus | _PurchaseOrderStatus | _PurchaseOrderStatus.PurchaseOrder = $projection.PurchasingDocument |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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