I_ActiveCostElementWithDraft
Active Cost Element With Draft Info
I_ActiveCostElementWithDraft is a Composite CDS View (Dimension) that provides data about "Active Cost Element With Draft Info" in SAP S/4HANA. It reads from 2 data sources (I_CostElement, I_DraftAdministrativeData) and exposes 26 fields with key fields ChartOfAccounts, ControllingArea, GLAccount. It has 7 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CostElement | ActiveDocument | from |
| I_DraftAdministrativeData | DraftAdmin | left_outer |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount |
| [0..1] | I_CostElementCategory | _CostElementCategory | $projection.CostElementCategory = _CostElementCategory.CostElementCategory |
| [0..*] | I_GLAccountText | _Text | $projection.ChartOfAccounts = _Text.ChartOfAccounts and $projection.GLAccount = _Text.GLAccount |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | $projection.UnitOfMeasure = _UnitOfMeasure.UnitOfMeasure |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts |
| [0..1] | I_GLAcctTxtInMaintLang | _GLAcctTxtInMaintLang | $projection.ChartOfAccounts = _GLAcctTxtInMaintLang.ChartOfAccounts and $projection.GLAccount = _GLAcctTxtInMaintLang.GLAccount |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.ignorePropagatedAnnotations | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Active Cost Element With Draft Info | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IFIACOSTELMNT | view | |
| ObjectModel.representativeKey | GLAccount | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChartOfAccounts | I_CostElement | ChartOfAccounts | |
| KEY | ControllingArea | I_CostElement | ControllingArea | |
| KEY | GLAccount | I_CostElement | GLAccount | |
| ValidityStartDate | I_CostElement | ValidityStartDate | ||
| ValidityEndDate | I_CostElement | ValidityEndDate | ||
| CostElementCategory | I_CostElement | CostElementCategory | ||
| ConsumptionQtyIsRecorded | I_CostElement | ConsumptionQtyIsRecorded | ||
| UnitOfMeasure | I_CostElement | UnitOfMeasure | ||
| CreationDate | I_CostElement | CreationDate | ||
| CreatedByUser | I_CostElement | CreatedByUser | ||
| FunctionalArea | I_CostElement | FunctionalArea | ||
| AcctAssignmentIsStatistical | I_CostElement | AcctAssignmentIsStatistical | ||
| GLAcctCOAImplementStatus | ||||
| GLAccountCOAIsDeliveredBySAP | ||||
| DraftIsProcessedByMe | I_DraftAdministrativeData | DraftIsProcessedByMe | ||
| InProcessByUser | I_DraftAdministrativeData | InProcessByUser | ||
| InProcessByUserDescription | I_DraftAdministrativeData | InProcessByUserDescription | ||
| LastChangeDateTime | I_CostElement | LastChangeDateTime | ||
| GLAccountType | _GLAccountInChartOfAccounts | GLAccountType | ||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _CostElementCategory | _CostElementCategory | |||
| _Text | _Text | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _ControllingArea | _ControllingArea | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _GLAcctTxtInMaintLang | _GLAcctTxtInMaintLang |
@Metadata.ignorePropagatedAnnotations: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions:true
@EndUserText.label: 'Active Cost Element With Draft Info'
@Analytics.dataCategory: #DIMENSION
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.sqlViewName: 'IFIACOSTELMNT'
@ObjectModel.representativeKey: 'GLAccount'
@ObjectModel.usageType: {
serviceQuality: #C,
sizeCategory: #L,
dataClass: #MIXED
}
define view I_ActiveCostElementWithDraft
as select from I_CostElement as ActiveDocument
//Migrate to draft 2.0
left outer to one join I_GLAcctDraft as DraftDocument on ActiveDocument.ChartOfAccounts = DraftDocument.ActiveChartOfAccounts
and ActiveDocument.CostElement = DraftDocument.ActiveGLAccount
and DraftDocument.HasActiveEntity = 'X'
left outer join I_DraftAdministrativeData as DraftAdmin on DraftDocument.GLAcctInChartOfAcctsDraftUUID = DraftAdmin.DraftUUID
association [0..1] to I_GLAccountInChartOfAccounts as _GLAccountInChartOfAccounts on $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts
and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount
association [0..1] to I_CostElementCategory as _CostElementCategory on $projection.CostElementCategory = _CostElementCategory.CostElementCategory
association [0..*] to I_GLAccountText as _Text on $projection.ChartOfAccounts = _Text.ChartOfAccounts
and $projection.GLAccount = _Text.GLAccount
association [0..1] to I_UnitOfMeasure as _UnitOfMeasure on $projection.UnitOfMeasure = _UnitOfMeasure.UnitOfMeasure
association [0..1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
association [0..1] to I_ChartOfAccounts as _ChartOfAccounts on $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
association [0..1] to I_GLAcctTxtInMaintLang as _GLAcctTxtInMaintLang on $projection.ChartOfAccounts = _GLAcctTxtInMaintLang.ChartOfAccounts
and $projection.GLAccount = _GLAcctTxtInMaintLang.GLAccount
{
@ObjectModel.foreignKey.association: '_ChartOfAccounts'
key ActiveDocument.ChartOfAccounts,
@ObjectModel.foreignKey.association: '_ControllingArea'
key ActiveDocument.ControllingArea,
key ActiveDocument.GLAccount,
ActiveDocument.ValidityStartDate,
ActiveDocument.ValidityEndDate,
@ObjectModel.mandatory: 'undefined'
ActiveDocument.CostElementCategory,
@ObjectModel.mandatory: 'undefined'
ActiveDocument.ConsumptionQtyIsRecorded,
@ObjectModel.mandatory: 'undefined'
ActiveDocument.UnitOfMeasure,
ActiveDocument.CreationDate,
ActiveDocument.CreatedByUser,
ActiveDocument.FunctionalArea,
ActiveDocument.AcctAssignmentIsStatistical,
@ObjectModel.readOnly: true
cast( case _GLAccountInChartOfAccounts._GLAcctInChartOfAcctsProdn.GLAccountIsNotProdnRelevant
when 'X' then 'X'
else ' ' end as fins_glacct_not_needed ) as GLAccountIsNotProdnRelevant,
@ObjectModel.readOnly: true
_GLAccountInChartOfAccounts._GLAcctInChartOfAcctsStatus.GLAcctCOAImplementStatus as GLAcctCOAImplementStatus,
@ObjectModel.readOnly: true
_GLAccountInChartOfAccounts._GLAcctInChartOfAcctsStatus.GLAccountCOAIsDeliveredBySAP as GLAccountCOAIsDeliveredBySAP,
DraftAdmin.DraftIsProcessedByMe,
DraftAdmin.InProcessByUser,
DraftAdmin.InProcessByUserDescription,
cast( case
when( DraftDocument.GLAcctInChartOfAcctsDraftUUID is null ) then ' '
else 'X'
end as sdraft_has_draft ) as HasDraftEntity,
ActiveDocument.LastChangeDateTime, // ETag
_GLAccountInChartOfAccounts.GLAccountType,
/* Associations */
_GLAccountInChartOfAccounts,
_CostElementCategory,
_Text,
_UnitOfMeasure,
_ControllingArea,
_ChartOfAccounts,
_GLAcctTxtInMaintLang
}
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