I_UTILITIESBILLINGDOCUMENT

CDS View

Billing Document

I_UTILITIESBILLINGDOCUMENT is a CDS View in S/4HANA. Billing Document. It contains 51 fields. 30 CDS views read from this table.

CDS Views using this table (30)

ViewTypeJoinVDMDescription
C_OutsrtdUtilsBillgMaLeApply view inner CONSUMPTION Machine Learning Apply Data for Outsorted Billing
C_OutsrtdUtilsBillgMaLeApply view left_outer CONSUMPTION Machine Learning Apply Data for Outsorted Billing
C_OutsrtdUtilsBillgMaLeTrng view inner CONSUMPTION Machine Learning Training Data for Outsorted Billing
C_OutsrtdUtilsBillgMaLeTrng view left_outer CONSUMPTION Machine Learning Training Data for Outsorted Billing
C_UtilsBillingDocumentHistory view from CONSUMPTION Billing Document History
CRMS4_IU_I_UBD view_entity from Utilities Billing Document
I_ActualUtilsBillingDocument view from COMPOSITE Actual Billing Document
I_BR_McgnAllEngyAccountC view inner COMPOSITE Energy Account of Microgen - Cube
I_BR_McgnEngyCnsmr view inner BASIC Microgen Energy Consumer
I_BR_McgnEngyExpryCube view inner COMPOSITE Expired Energy Information
I_OutsrtdUtilsBillgDocBscData view from COMPOSITE Outsorted Billing Document Basic Data
I_ReversedUtilsBillingDocument view from COMPOSITE Reversed Billing Document
I_SchedldUtilsContrNotInvcd view left_outer COMPOSITE Scheduled Contract Has not Been Invoiced
I_SchedldUtilsContrUrdyInvcg view left_outer COMPOSITE Scheduled Contract is not Ready for Invoicing
I_UtilitiesBillingDocumentTP view_entity from TRANSACTIONAL Billing Document for Transactional Processing
I_UtilsBillgDocDateInformation view from COMPOSITE Date Information for Utilities Billing Document
I_UtilsBillgDocForContract view from COMPOSITE Utilities Billing Document for Contract
I_UtilsBillgDocIntAndExtPoD view from COMPOSITE Internal and External Point of Delivery for Billing Document
I_UtilsBillgDocOutsrtgChkGrp view inner COMPOSITE Outsorting Data with Current Outsorting Check Group
I_UtilsBillgDocOutsrtgDataCntr view inner COMPOSITE Number of Outsorting Data Records and First Entry
I_UtilsBillgDocPrevYrInvcgDoc view from COMPOSITE Previous Year Invoicing Document for Billing Document
I_UtilsBillgDocPrevYrInvcgDoc view inner COMPOSITE Previous Year Invoicing Document for Billing Document
I_UtilsContrAcctInvcgOrderCntr view inner COMPOSITE Number of Invoicing Orders for Contract Account
I_UtilsContrToBeBlld view left_outer COMPOSITE Utilities Contract to Be Billed
I_UtilsContrToBeBlldInvcdAnlys view left_outer COMPOSITE Analysis of Contract to Be Billed and Invoiced
I_UtilsContrToBeInvcd view left_outer COMPOSITE Contract to Be Invoiced
I_UtilsInvcgDocBillingData view inner COMPOSITE Billing Data for Invoicing Document
P_OutsrtdUtilsBillingDocument view from COMPOSITE
SHSM_ISU_F4_EA16 view from Billing Document with Reversal Transaction Search Help
SHSM_ISU_F4_EA16_ALL view from Billing Document Search Help

Fields (51)

KeyField CDS FieldsUsed in Views
KEY BusinessPartner BusinessPartner,MicrogenBusinessPartner 7
KEY ContractAccount ContractAccount,MicrogenContractAccount 5
KEY ScheduledUtilitiesBillingDate ScheduledUtilitiesBillingDate 5
KEY UtilitiesBillingDocument UtilitiesBillingDocument 5
KEY UtilitiesContract MicrogenContract,UtilitiesContract 5
KEY UtilsBillingPeriodValue MicrogenBillPeriodValue 1
_BusinessPartner _BusinessPartner 8
_CompanyCode _CompanyCode 3
_ContractAccountHeader _ContractAccountHeader 3
_ContractAccountPartner _ContractAccountPartner 2
_CreatedByUser _CreatedByUser 2
_Division _Division 3
_LastChangedByUser _LastChangedByUser 2
_ManualUtilsBillgDocCrtnRsn _ManualUtilsBillgDocCrtnRsn 2
_MeterReadingUnit _MeterReadingUnit 3
_UtilitiesBillingReason _UtilitiesBillingReason 4
_UtilitiesContract _UtilitiesContract 5
_UtilitiesPortion _UtilitiesPortion 3
_UtilsAccountClass _UtilsAccountClass 3
_UtilsAccountDetnCode _UtilsAccountDetnCode 2
_UtilsBillgDocDvceLineItem _UtilsBillgDocDvceLineItem 2
_UtilsBillgDocOutsrtgData _UtilsBillgDocOutsrtgData 2
_UtilsBillgDocSimulationRsn _UtilsBillgDocSimulationRsn 2
_UtilsBillingDocReversalRsn _UtilsBillingDocReversalRsn 2
AltvContractAcctForCollvBills AltvContractAcctForCollvBills 2
AuthorizationGroup AuthorizationGroup 4
CompanyCode CompanyCode 4
Division Division 6
ManualUtilsBillgDocCrtnRsn ManualUtilsBillgDocCrtnRsn 2
MeterReadingUnit MeterReadingUnit 3
MnlUtilsBillgDocIsReldForInvcg MnlUtilsBillgDocIsReldForInvcg 2
ScheduledMeterReadingDate ScheduledMeterReadingDate 3
UtilitiesAccountClass UtilitiesAccountClass 5
UtilitiesAccountDetnCode UtilitiesAccountDetnCode 4
UtilitiesBillingReason UtilitiesBillingReason 7
UtilitiesBillingRun UtilitiesBillingRun 2
UtilitiesPortion UtilitiesPortion 5
UtilsBillgDocCreatedByUser UtilsBillgDocCreatedByUser 2
UtilsBillgDocCreationDate UtilsBillgDocCreationDate 2
UtilsBillgDocIsNotReleased UtilsBillgDocIsNotReleased 2
UtilsBillgDocLastChangeDate UtilsBillgDocLastChangeDate 2
UtilsBillgDocLastChangedByUser UtilsBillgDocLastChangedByUser 2
UtilsBillgDocReversalDate UtilsBillgDocReversalDate 2
UtilsBillgDocReversalRsn UtilsBillgDocReversalRsn 2
UtilsBillgPeriodAllocationDate UtilsBillgPeriodAllocationDate 2
UtilsBillgPeriodEndDate MicrogenAllocationDate,MicrogenBillPeriodEndDate,UtilsBillgPeriodEndDate 6
UtilsBillgPeriodStartDate MicrogenBillPeriodStartDate,UtilsBillgPeriodStartDate 6
UtilsBillgSimulationReason UtilsBillgSimulationReason 2
UtilsBusTransactionType UtilsBusTransactionType 2
UtilsPortionScheduleRecordDate UtilsPortionScheduleRecordDate 1
UtilsPreviousBillingDocument UtilsPreviousBillingDocument 2
@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":""
}
}*/