I_UtilitiesBillingDocument
Billing Document
I_UtilitiesBillingDocument is a Basic CDS View (Dimension) that provides data about "Billing Document" in SAP S/4HANA. It reads from 1 data source (erch) and exposes 52 fields with key field UtilitiesBillingDocument. It has 18 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| erch | erch | from |
Associations (18)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_UtilitiesBillingReason | _UtilitiesBillingReason | $projection.UtilitiesBillingReason = _UtilitiesBillingReason.UtilitiesBillingReason |
| [1..1] | I_UtilsBillgDocSimulationRsn | _UtilsBillgDocSimulationRsn | $projection.UtilsBillgSimulationReason = _UtilsBillgDocSimulationRsn.UtilsBillgSimulationReason |
| [0..1] | I_ManualUtilsBillgDocCrtnRsn | _ManualUtilsBillgDocCrtnRsn | $projection.ManualUtilsBillgDocCrtnRsn = _ManualUtilsBillgDocCrtnRsn.ManualUtilsBillgDocCrtnRsn |
| [1..1] | I_Division | _Division | $projection.Division = _Division.Division |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_UtilsBillingDocReversalRsn | _UtilsBillingDocReversalRsn | $projection.UtilsBillgDocReversalRsn = _UtilsBillingDocReversalRsn.UtilsBillgDocReversalRsn |
| [0..1] | I_UtilitiesPortion | _UtilitiesPortion | $projection.UtilitiesPortion = _UtilitiesPortion.UtilitiesPortion |
| [0..1] | I_MeterReadingUnit | _MeterReadingUnit | $projection.MeterReadingUnit = _MeterReadingUnit.MeterReadingUnit |
| [1..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [1..1] | I_UtilitiesContract | _UtilitiesContract | $projection.UtilitiesContract = _UtilitiesContract.UtilitiesContract |
| [1..1] | I_User | _CreatedByUser | $projection.UtilsBillgDocCreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.UtilsBillgDocLastChangedByUser = _LastChangedByUser.UserID |
| [0..*] | I_UtilsBillgDocOutsrtgData | _UtilsBillgDocOutsrtgData | $projection.UtilitiesBillingDocument = _UtilsBillgDocOutsrtgData.UtilitiesBillingDocument |
| [0..*] | I_UtilsBillgDocDvceLineItem | _UtilsBillgDocDvceLineItem | $projection.UtilitiesBillingDocument = _UtilsBillgDocDvceLineItem.UtilitiesBillingDocument |
| [1..1] | I_UtilsAccountClass | _UtilsAccountClass | $projection.UtilitiesAccountClass = _UtilsAccountClass.UtilitiesAccountClass |
| [1..1] | I_ContractAccountHeader | _ContractAccountHeader | $projection.ContractAccount = _ContractAccountHeader.ContractAccount |
| [1..1] | I_ContractAccountPartner | _ContractAccountPartner | $projection.ContractAccount = _ContractAccountPartner.ContractAccount and $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner |
| [0..1] | I_UtilsAccountDetnCode | _UtilsAccountDetnCode | $projection.UtilitiesAccountDetnCode = _UtilsAccountDetnCode.UtilitiesAccountDetnCode and $projection.Division = _UtilsAccountDetnCode.Division and $projection.CompanyCode = _UtilsAccountDetnCode.CompanyCode |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Billing Document | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IEUTILSBILLGDOC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | UtilitiesBillingDocument | view | |
| Metadata.allowExtensions | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UtilitiesBillingDocument | |||
| CompanyCode | erch | bukrs | ||
| BusinessPartner | erch | gpartner | ||
| ContractAccount | erch | vkont | ||
| UtilitiesContract | erch | vertrag | ||
| UtilsBusTransactionType | erch | hvorg | ||
| UtilitiesBillingReason | ||||
| UtilsBillgPeriodStartDate | ||||
| UtilsBillgPeriodEndDate | ||||
| Division | erch | sparte | ||
| UtilsBillgSimulationReason | ||||
| UtilsBillgDocIsNotReleased | erch | tobreleasd | ||
| UtilsBillgDocReversalDate | erch | stornodat | ||
| UtilsBillgDocReversalRsn | erch | bcreason | ||
| UtilsBillgPeriodAllocationDate | erch | zuorddaa | ||
| UtilitiesPortion | erch | portion | ||
| ScheduledUtilitiesBillingDate | ||||
| MeterReadingUnit | erch | ableinh | ||
| ScheduledMeterReadingDate | ||||
| ManualUtilsBillgDocCrtnRsn | erch | bergrund | ||
| MnlUtilsBillgDocIsReldForInvcg | erch | manbillrel | ||
| UtilitiesBillingRun | erch | billingrunno | ||
| UtilsBillgDocCreationDate | ||||
| UtilsBillgDocCreatedByUser | erch | ernam | ||
| UtilsBillgDocLastChangeDate | erch | aedat | ||
| UtilsBillgDocLastChangedByUser | erch | aenam | ||
| AuthorizationGroup | erch | begru | ||
| UtilitiesAccountClass | erch | ktoklasse | ||
| UtilsPreviousBillingDocument | erch | belnralt | ||
| AltvContractAcctForCollvBills | erch | abwvk | ||
| UtilitiesAccountDetnCode | erch | kofiz | ||
| UtilsPortionScheduleRecordDate | erch | ptermtdat | ||
| UtilsBillgDocHasOutsrtgData | erch | ercho_v | ||
| UtilsBillingPeriodValue | erch | billing_period | ||
| _UtilitiesBillingReason | _UtilitiesBillingReason | |||
| _UtilsBillgDocSimulationRsn | _UtilsBillgDocSimulationRsn | |||
| _ManualUtilsBillgDocCrtnRsn | _ManualUtilsBillgDocCrtnRsn | |||
| _Division | _Division | |||
| _CompanyCode | _CompanyCode | |||
| _UtilsBillingDocReversalRsn | _UtilsBillingDocReversalRsn | |||
| _UtilitiesPortion | _UtilitiesPortion | |||
| _MeterReadingUnit | _MeterReadingUnit | |||
| _BusinessPartner | _BusinessPartner | |||
| _UtilitiesContract | _UtilitiesContract | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _UtilsBillgDocOutsrtgData | _UtilsBillgDocOutsrtgData | |||
| _UtilsBillgDocDvceLineItem | _UtilsBillgDocDvceLineItem | |||
| _UtilsAccountClass | _UtilsAccountClass | |||
| _ContractAccountHeader | _ContractAccountHeader | |||
| _ContractAccountPartner | _ContractAccountPartner | |||
| _UtilsAccountDetnCode | _UtilsAccountDetnCode |
@EndUserText.label: 'Billing Document'
@Analytics.dataCategory: #DIMENSION
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'IEUTILSBILLGDOC'
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'UtilitiesBillingDocument'
//Privileged associations specified
@AccessControl.privilegedAssociations: [ '_CreatedByUser', '_LastChangedByUser' ]
@Metadata.allowExtensions:true
//@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE, #ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE ]
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
define view I_UtilitiesBillingDocument
as select from erch
//association [0..1] to Z_I_UtilsBusinessTransactionTT as _UtilsBusinessTransactionTT on $projection.UtilsBusTransactionType = _UtilsBusinessTransactionTT.UtilsBusTransactionType
association [1..1] to I_UtilitiesBillingReason as _UtilitiesBillingReason on $projection.UtilitiesBillingReason = _UtilitiesBillingReason.UtilitiesBillingReason
association [1..1] to I_UtilsBillgDocSimulationRsn as _UtilsBillgDocSimulationRsn on $projection.UtilsBillgSimulationReason = _UtilsBillgDocSimulationRsn.UtilsBillgSimulationReason
association [0..1] to I_ManualUtilsBillgDocCrtnRsn as _ManualUtilsBillgDocCrtnRsn on $projection.ManualUtilsBillgDocCrtnRsn = _ManualUtilsBillgDocCrtnRsn.ManualUtilsBillgDocCrtnRsn
association [1..1] to I_Division as _Division on $projection.Division = _Division.Division
association [1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_UtilsBillingDocReversalRsn as _UtilsBillingDocReversalRsn on $projection.UtilsBillgDocReversalRsn = _UtilsBillingDocReversalRsn.UtilsBillgDocReversalRsn
association [0..1] to I_UtilitiesPortion as _UtilitiesPortion on $projection.UtilitiesPortion = _UtilitiesPortion.UtilitiesPortion
association [0..1] to I_MeterReadingUnit as _MeterReadingUnit on $projection.MeterReadingUnit = _MeterReadingUnit.MeterReadingUnit
association [1..1] to I_BusinessPartner as _BusinessPartner on $projection.BusinessPartner = _BusinessPartner.BusinessPartner
association [1..1] to I_UtilitiesContract as _UtilitiesContract on $projection.UtilitiesContract = _UtilitiesContract.UtilitiesContract
association [1..1] to I_User as _CreatedByUser on $projection.UtilsBillgDocCreatedByUser = _CreatedByUser.UserID
association [0..1] to I_User as _LastChangedByUser on $projection.UtilsBillgDocLastChangedByUser = _LastChangedByUser.UserID
association [0..*] to I_UtilsBillgDocOutsrtgData as _UtilsBillgDocOutsrtgData on $projection.UtilitiesBillingDocument = _UtilsBillgDocOutsrtgData.UtilitiesBillingDocument
association [0..*] to I_UtilsBillgDocDvceLineItem as _UtilsBillgDocDvceLineItem on $projection.UtilitiesBillingDocument = _UtilsBillgDocDvceLineItem.UtilitiesBillingDocument
association [1..1] to I_UtilsAccountClass as _UtilsAccountClass on $projection.UtilitiesAccountClass = _UtilsAccountClass.UtilitiesAccountClass
association [1..1] to I_ContractAccountHeader as _ContractAccountHeader on $projection.ContractAccount = _ContractAccountHeader.ContractAccount
association [1..1] to I_ContractAccountPartner as _ContractAccountPartner on $projection.ContractAccount = _ContractAccountPartner.ContractAccount
and $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner
association [0..1] to I_UtilsAccountDetnCode as _UtilsAccountDetnCode on $projection.UtilitiesAccountDetnCode = _UtilsAccountDetnCode.UtilitiesAccountDetnCode
and $projection.Division = _UtilsAccountDetnCode.Division
and $projection.CompanyCode = _UtilsAccountDetnCode.CompanyCode
{
key cast(erch.belnr as e_belnr_vdm preserving type) as UtilitiesBillingDocument,
@ObjectModel.foreignKey.association: '_CompanyCode'
erch.bukrs as CompanyCode,
erch.gpartner as BusinessPartner,
//@ObjectModel.foreignKey.association: '_ContractAccount'
erch.vkont as ContractAccount,
@ObjectModel.foreignKey.association: '_UtilitiesContract'
erch.vertrag as UtilitiesContract,
//@ObjectModel.foreignKey.association: '_UtilsBusinessTransactionTT'
erch.hvorg as UtilsBusTransactionType,
@ObjectModel.foreignKey.association: '_UtilitiesBillingReason'
cast(erch.abrvorg as e_abrvorg_vdm preserving type) as UtilitiesBillingReason,
@Semantics.businessDate.from: true
cast(erch.begabrpe as e_begabrpe_vdm preserving type) as UtilsBillgPeriodStartDate,
@Semantics.businessDate.to: true
cast(erch.endabrpe as e_endabrpe_vdm preserving type) as UtilsBillgPeriodEndDate,
@ObjectModel.foreignKey.association: '_Division'
erch.sparte as Division,
@ObjectModel.foreignKey.association: '_UtilsBillgDocSimulationRsn'
cast (erch.simulation as e_simulation_vdm preserving type) as UtilsBillgSimulationReason,
@Semantics.booleanIndicator:true
erch.tobreleasd as UtilsBillgDocIsNotReleased,
erch.stornodat as UtilsBillgDocReversalDate,
@ObjectModel.foreignKey.association: '_UtilsBillingDocReversalRsn'
erch.bcreason as UtilsBillgDocReversalRsn,
erch.zuorddaa as UtilsBillgPeriodAllocationDate,
@ObjectModel.foreignKey.association: '_UtilitiesPortion'
erch.portion as UtilitiesPortion,
@Semantics.businessDate.at: true
cast(erch.abrdats as e_schedld_billg_dte_vdm preserving type) as ScheduledUtilitiesBillingDate,
@ObjectModel.foreignKey.association: '_MeterReadingUnit'
erch.ableinh as MeterReadingUnit,
cast(erch.adatsoll as e_schedld_mtrrdng_dte_vdm preserving type) as ScheduledMeterReadingDate,
@ObjectModel.foreignKey.association: '_ManualUtilsBillgDocCrtnRsn'
erch.bergrund as ManualUtilsBillgDocCrtnRsn,
@Semantics.booleanIndicator:true
erch.manbillrel as MnlUtilsBillgDocIsReldForInvcg,
erch.billingrunno as UtilitiesBillingRun,
@Semantics.systemDate.createdAt: true
cast(erch.erdat as e_erch_erdat_vdm preserving type) as UtilsBillgDocCreationDate,
@Semantics.user.createdBy: true
erch.ernam as UtilsBillgDocCreatedByUser,
@Semantics.systemDate.lastChangedAt: true
erch.aedat as UtilsBillgDocLastChangeDate,
@Semantics.user.lastChangedBy: true
erch.aenam as UtilsBillgDocLastChangedByUser,
erch.begru as AuthorizationGroup,
@ObjectModel.foreignKey.association: '_UtilsAccountClass'
erch.ktoklasse as UtilitiesAccountClass,
erch.belnralt as UtilsPreviousBillingDocument,
erch.abwvk as AltvContractAcctForCollvBills,
@ObjectModel.foreignKey.association: '_UtilsAccountDetnCode'
erch.kofiz as UtilitiesAccountDetnCode,
erch.ptermtdat as UtilsPortionScheduleRecordDate,
@Semantics.booleanIndicator:true
erch.ercho_v as UtilsBillgDocHasOutsrtgData,
erch.billing_period as UtilsBillingPeriodValue,
/* Associations */
//_UtilsBusinessTransactionTT
//_ContractAccount
_UtilitiesBillingReason,
@ObjectModel.association.boundFields.dataMatchesSourceAndTargetTypes: true
_UtilsBillgDocSimulationRsn,
_ManualUtilsBillgDocCrtnRsn,
_Division,
_CompanyCode,
_UtilsBillingDocReversalRsn,
_UtilitiesPortion,
_MeterReadingUnit,
_BusinessPartner,
_UtilitiesContract,
_CreatedByUser,
_LastChangedByUser,
_UtilsBillgDocOutsrtgData,
_UtilsBillgDocDvceLineItem,
_UtilsAccountClass,
_ContractAccountHeader,
_ContractAccountPartner,
_UtilsAccountDetnCode
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ERCH"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_COMPANYCODE",
"I_CONTRACTACCOUNTHEADER",
"I_CONTRACTACCOUNTPARTNER",
"I_DIVISION",
"I_MANUALUTILSBILLGDOCCRTNRSN",
"I_METERREADINGUNIT",
"I_USER",
"I_UTILITIESBILLINGREASON",
"I_UTILITIESCONTRACT",
"I_UTILITIESPORTION",
"I_UTILSACCOUNTCLASS",
"I_UTILSACCOUNTDETNCODE",
"I_UTILSBILLGDOCDVCELINEITEM",
"I_UTILSBILLGDOCOUTSRTGDATA",
"I_UTILSBILLGDOCSIMULATIONRSN",
"I_UTILSBILLINGDOCREVERSALRSN"
],
"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