I_BR_McgnEngyCnsmpnCube
Energy Cnsmp for Genrtr n Consmr - Cube
I_BR_McgnEngyCnsmpnCube is a Composite CDS View (Cube) that provides data about "Energy Cnsmp for Genrtr n Consmr - Cube" in SAP S/4HANA. It reads from 2 data sources (I_BR_McgnEngyAccountCube, I_BR_McgnActvGnrtrCnsmr) and exposes 27 fields with key fields MicrogenBusinessPartner, MicrogenContractAccount, MicrogenContract, MicrogenInstallation, MicrogenBillPeriodValue. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_BR_McgnEngyAccountCube | EnergyAccount | from |
| I_BR_McgnActvGnrtrCnsmr | MicrogenActiveGenCon | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CalendarMonthName | _MonthName | _MonthName.CalendarMonth = EnergyAccount.MicrogenBillPeriodMonth |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMGENGYCNSMPN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.dataMaintenance | #DISPLAY_ONLY | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Energy Cnsmp for Genrtr n Consmr - Cube | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MicrogenBusinessPartner | I_BR_McgnEngyAccountCube | MicrogenBusinessPartner | |
| KEY | MicrogenContractAccount | I_BR_McgnEngyAccountCube | MicrogenContractAccount | |
| KEY | MicrogenContract | I_BR_McgnEngyAccountCube | MicrogenContract | |
| KEY | MicrogenInstallation | I_BR_McgnEngyAccountCube | MicrogenInstallation | |
| KEY | MicrogenBillPeriodValue | I_BR_McgnEngyAccountCube | MicrogenBillPeriodValue | |
| KEY | MicrogenTOU | I_BR_McgnEngyAccountCube | MicrogenTOU | |
| KEY | MicrogenEnergyType | I_BR_McgnEngyAccountCube | MicrogenEnergyType | |
| MicrogenAllocationDate | I_BR_McgnEngyAccountCube | MicrogenAllocationDate | ||
| MicrogenEnergyCreditsQuantity | ||||
| MicrogenEnergyCreditsUnit | I_BR_McgnEngyAccountCube | MicrogenEnergyCreditsUnit | ||
| MicrogenBillPeriodStartDate | I_BR_McgnEngyAccountCube | MicrogenBillPeriodStartDate | ||
| MicrogenBillPeriodEndDate | I_BR_McgnEngyAccountCube | MicrogenBillPeriodEndDate | ||
| MicrogenTransactionNumber | I_BR_McgnEngyAccountCube | MicrogenTransactionNumber | ||
| MicrogenMonthYearForDspVal | ||||
| MicrogenYearMonthValue | ||||
| MicrogenContractType | I_BR_McgnActvGnrtrCnsmr | MicrogenContractType | ||
| _BusinessPartner | I_BR_McgnEngyAccountCube | _BusinessPartner | ||
| _ContractAccountHeader | I_BR_McgnEngyAccountCube | _ContractAccountHeader | ||
| _UtilitiesInstallation | I_BR_McgnEngyAccountCube | _UtilitiesInstallation | ||
| _CalendarStartDate | _CalendarStartDate | |||
| _CalendarEndDate | _CalendarEndDate | |||
| _MicrogenGlobalTOU | I_BR_McgnEngyAccountCube | _MicrogenGlobalTOU | ||
| _UtilitiesContract | I_BR_McgnEngyAccountCube | _UtilitiesContract | ||
| _MicrogenEnergyType | I_BR_McgnEngyAccountCube | _MicrogenEnergyType | ||
| _UnitOfMeasure | I_BR_McgnEngyAccountCube | _UnitOfMeasure | ||
| _BillingDocumentPeriod | I_BR_McgnEngyAccountCube | _BillingDocumentPeriod | ||
| _MicrogenContractType | I_BR_McgnActvGnrtrCnsmr | _MicrogenContractType |
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_BR_McgnEngyCnsmpnCube.
-- 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: IMGENGYCNSMPN
CREATE VIEW I_BR_McgnEngyCnsmpnCube AS
SELECT
EnergyAccount.MicrogenBusinessPartner AS MicrogenBusinessPartner,
EnergyAccount.MicrogenContractAccount AS MicrogenContractAccount,
EnergyAccount.MicrogenContract AS MicrogenContract,
EnergyAccount.MicrogenInstallation AS MicrogenInstallation,
EnergyAccount.MicrogenBillPeriodValue AS MicrogenBillPeriodValue,
EnergyAccount.MicrogenTOU AS MicrogenTOU,
EnergyAccount.MicrogenEnergyType AS MicrogenEnergyType,
EnergyAccount.MicrogenAllocationDate AS MicrogenAllocationDate,
EnergyAccount. MicrogenEnergyCreditsQuantity AS MicrogenEnergyCreditsQuantity,
EnergyAccount.MicrogenEnergyCreditsUnit AS MicrogenEnergyCreditsUnit,
EnergyAccount.MicrogenBillPeriodStartDate AS MicrogenBillPeriodStartDate,
EnergyAccount.MicrogenBillPeriodEndDate AS MicrogenBillPeriodEndDate,
EnergyAccount.MicrogenTransactionNumber AS MicrogenTransactionNumber,
cast(concat(substring(_MonthName.CalendarMonthName, 1, 3), concat('-', substring(EnergyAccount.MicrogenBillPeriodValue, 3, 2))) as e_mg_br_monthyear_vdm) AS MicrogenMonthYearForDspVal,
cast(replace( EnergyAccount.MicrogenBillPeriodValue, '/', '') as e_mg_br_yearmonthvalue_vdm) AS MicrogenYearMonthValue,
MicrogenActiveGenCon.MicrogenContractType AS MicrogenContractType,
EnergyAccount._BusinessPartner AS _BusinessPartner,
EnergyAccount._ContractAccountHeader AS _ContractAccountHeader,
EnergyAccount._UtilitiesInstallation AS _UtilitiesInstallation,
EnergyAccount._MicrogenGlobalTOU AS _MicrogenGlobalTOU,
EnergyAccount._UtilitiesContract AS _UtilitiesContract,
EnergyAccount._MicrogenEnergyType AS _MicrogenEnergyType,
EnergyAccount._UnitOfMeasure AS _UnitOfMeasure,
EnergyAccount._BillingDocumentPeriod AS _BillingDocumentPeriod,
MicrogenActiveGenCon._MicrogenContractType AS _MicrogenContractType
FROM I_BR_McgnEngyAccountCube AS EnergyAccount
INNER JOIN I_BR_McgnActvGnrtrCnsmr AS MicrogenActiveGenCon ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CalendarMonthName AS _MonthName ON _MonthName.CalendarMonth = EnergyAccount.MicrogenBillPeriodMonth -- 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