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 | Node Class |
| KEY | ControllingArea | I_CostElement | ControllingArea | Controlling Area |
| KEY | GLAccount | I_CostElement | GLAccount | General Ledger |
| ValidityStartDate | I_CostElement | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_CostElement | ValidityEndDate | ValidTo | |
| CostElementCategory | I_CostElement | CostElementCategory | ||
| ConsumptionQtyIsRecorded | I_CostElement | ConsumptionQtyIsRecorded | Record Quantity | |
| UnitOfMeasure | I_CostElement | UnitOfMeasure | Unit Protected Qty | |
| CreationDate | I_CostElement | CreationDate | Time Stamp | |
| CreatedByUser | I_CostElement | CreatedByUser | User Name | |
| FunctionalArea | I_CostElement | FunctionalArea | Sendr Fctl Area | |
| AcctAssignmentIsStatistical | I_CostElement | AcctAssignmentIsStatistical | ||
| GLAcctCOAImplementStatus | ||||
| GLAccountCOAIsDeliveredBySAP | ||||
| DraftIsProcessedByMe | I_DraftAdministrativeData | DraftIsProcessedByMe | ||
| InProcessByUser | I_DraftAdministrativeData | InProcessByUser | Draft In Process By | |
| InProcessByUserDescription | I_DraftAdministrativeData | InProcessByUserDescription | ||
| LastChangeDateTime | I_CostElement | LastChangeDateTime | Timestamp | |
| GLAccountType | _GLAccountInChartOfAccounts | GLAccountType | G/L Account Type | |
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _CostElementCategory | _CostElementCategory | |||
| _Text | _Text | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _ControllingArea | _ControllingArea | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _GLAcctTxtInMaintLang | _GLAcctTxtInMaintLang |
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 I_ActiveCostElementWithDraft.
-- 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: IFIACOSTELMNT
CREATE VIEW I_ActiveCostElementWithDraft AS
SELECT
ActiveDocument.ChartOfAccounts AS ChartOfAccounts,
ActiveDocument.ControllingArea AS ControllingArea,
ActiveDocument.GLAccount AS GLAccount,
ActiveDocument.ValidityStartDate AS ValidityStartDate,
ActiveDocument.ValidityEndDate AS ValidityEndDate,
ActiveDocument.CostElementCategory AS CostElementCategory,
ActiveDocument.ConsumptionQtyIsRecorded AS ConsumptionQtyIsRecorded,
ActiveDocument.UnitOfMeasure AS UnitOfMeasure,
ActiveDocument.CreationDate AS CreationDate,
ActiveDocument.CreatedByUser AS CreatedByUser,
ActiveDocument.FunctionalArea AS FunctionalArea,
ActiveDocument.AcctAssignmentIsStatistical AS AcctAssignmentIsStatistical,
_GLAccountInChartOfAccounts._GLAcctInChartOfAcctsStatus.GLAcctCOAImplementStatus AS GLAcctCOAImplementStatus,
_GLAccountInChartOfAccounts._GLAcctInChartOfAcctsStatus.GLAccountCOAIsDeliveredBySAP AS GLAccountCOAIsDeliveredBySAP,
DraftAdmin.DraftIsProcessedByMe AS DraftIsProcessedByMe,
DraftAdmin.InProcessByUser AS InProcessByUser,
DraftAdmin.InProcessByUserDescription AS InProcessByUserDescription,
ActiveDocument.LastChangeDateTime AS LastChangeDateTime,
_GLAccountInChartOfAccounts.GLAccountType AS GLAccountType
FROM I_CostElement AS ActiveDocument
LEFT OUTER JOIN I_DraftAdministrativeData AS DraftAdmin ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount -- association [0..1]
LEFT OUTER JOIN I_CostElementCategory AS _CostElementCategory ON CostElementCategory = _CostElementCategory.CostElementCategory -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _Text ON ChartOfAccounts = _Text.ChartOfAccounts AND GLAccount = _Text.GLAccount -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON UnitOfMeasure = _UnitOfMeasure.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAcctTxtInMaintLang AS _GLAcctTxtInMaintLang ON ChartOfAccounts = _GLAcctTxtInMaintLang.ChartOfAccounts AND GLAccount = _GLAcctTxtInMaintLang.GLAccount -- 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