P_GLAcctDefaultCostComp
P_GLAcctDefaultCostComp is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountInChartOfAccounts) and exposes 6 fields with key fields GLAccount, ChartOfAccounts, CostComponentStructure, FromCostElement.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountInChartOfAccounts | I_GLAccountInChartOfAccounts | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGLACCTDFLTCCOMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | GLAccount | I_GLAccountInChartOfAccounts | GLAccount | |
| KEY | ChartOfAccounts | I_GLAccountInChartOfAccounts | ChartOfAccounts | |
| KEY | CostComponentStructure | I_CostComponentAssignment | CostComponentStructure | |
| KEY | FromCostElement | I_CostComponentAssignment | FromCostElement | |
| ToCostElement | I_CostComponentAssignment | ToCostElement | ||
| CostComponent | I_CostComponentAssignment | CostComponent |
@AbapCatalog.sqlViewName: 'PGLACCTDFLTCCOMP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private:true
@VDM.viewType: #COMPOSITE
//Combine the default record in OKTZ (record with empty ToCostElement and FromCostElement) with all accounts from
//I_GLAccountInChartOfAccounts. If default record does NOT exists in OKTZ, this view returns nothing.
define view P_GLAcctDefaultCostComp
as select from I_GLAccountInChartOfAccounts
join I_CostComponentAssignment on I_GLAccountInChartOfAccounts.ChartOfAccounts = I_CostComponentAssignment.ChartOfAccounts
{
key I_GLAccountInChartOfAccounts.GLAccount,
key I_GLAccountInChartOfAccounts.ChartOfAccounts,
key I_CostComponentAssignment.CostComponentStructure,
key I_CostComponentAssignment.FromCostElement,
I_CostComponentAssignment.ToCostElement,
I_CostComponentAssignment.CostComponent
}
where
I_CostComponentAssignment.ToCostElement = ''
and I_CostComponentAssignment.FromCostElement = ''
and I_CostComponentAssignment.CostOriginGroup = ''
and I_CostComponentAssignment.VarianceResultsAnlysCategory = '00';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COSTCOMPONENTASSIGNMENT",
"I_GLACCOUNTINCHARTOFACCOUNTS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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