I_UtilsContrToBeBlldData

DDL: I_UTILSCONTRTOBEBLLDDATA SQL: IECONTRTBBILLEDD Type: view COMPOSITE

Utilities Contract to Be Billed Data

I_UtilsContrToBeBlldData is a Composite CDS View that provides data about "Utilities Contract to Be Billed Data" in SAP S/4HANA. It reads from 11 data sources and exposes 73 fields with key fields ScheduledUtilitiesBillingDate, UtilitiesPortion, ScheduledMeterReadingDate.

Data Sources (11)

SourceAliasJoin Type
I_MeterReadingUnit MeterReadingUnit inner
I_MtrRdngUnitScheduleRecord MtrRdngUnitScheduleRecord inner
I_MtrRdngUnitScheduleRecord MtrRdngUnitScheduleRecord inner
I_MtrRsnCorrespgToBillgRsn MtrRsnCorrespgToBillgRsn inner
I_MtrRsnCorrespgToBillgRsn MtrRsnCorrespgToBillgRsn inner
I_UtilitiesContract UtilitiesContract from
I_UtilitiesContract UtilitiesContract union_all
I_UtilitiesInstallationHist UtilitiesInstallationHist inner
I_UtilitiesInstallationHist UtilitiesInstallationHist inner
I_UtilitiesPortionScheduleRecd UtilitiesPortionScheduleRecd inner
I_UtilitiesPortionScheduleRecd UtilitiesPortionScheduleRecd inner

Annotations (8)

NameValueLevelField
EndUserText.label Utilities Contract to Be Billed Data view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName IECONTRTBBILLEDD view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (73)

KeyFieldSource TableSource FieldDescription
UtilitiesContract I_UtilitiesContract UtilitiesContract PoD service
ScheduledUtilitiesBillingDate I_UtilitiesPortionScheduleRecd ScheduledUtilitiesBillingDate
UtilitiesPortion I_UtilitiesPortionScheduleRecd UtilitiesPortion Portion
ScheduledMeterReadingDate I_MtrRdngUnitScheduleRecord ScheduledMeterReadingDate
UtilitiesBillingReason I_UtilitiesPortionScheduleRecd UtilitiesBillingReason
CompanyCode I_UtilitiesContract CompanyCode Receiver Company Code
Division I_UtilitiesContract UtilitiesDivision Insurance LOB
UtilitiesInstallation I_UtilitiesContract UtilitiesInstallation Installation
ContractAccount I_UtilitiesContract ContractAccount Contract Acct
UtilsBillgBlockReason I_UtilitiesContract UtilsBillgBlockReason
UtilsBillgUnblockReason I_UtilitiesContract UtilsBillgUnblockReason
MeterReadingUnit I_UtilitiesInstallationHist MeterReadingUnit Portion
UtilitiesRateCategory I_UtilitiesInstallationHist UtilitiesRateCategory Rate category
UtilitiesBillingClass I_UtilitiesInstallationHist UtilitiesBillingClass Billing Class
MeterReadingReason I_MtrRsnCorrespgToBillgRsn MeterReadingReason MR reason
UtilitiesMoveInDate I_UtilitiesContract UtilitiesMoveInDate
UtilitiesMoveOutDate I_UtilitiesContract UtilitiesMoveOutDate
UtilsContrJointInvcType I_UtilitiesContract UtilsContrJointInvcType
UtilitiesAccountDetnCode I_UtilitiesContract UtilitiesAccountDetnCode
UtilsPortionScheduleRecordDate I_UtilitiesPortionScheduleRecd UtilsPortionScheduleRecordDate
SchedldUtilsInvcgPrintoutDate I_UtilitiesPortionScheduleRecd SchedldUtilsInvcgPrintoutDate
UtilitiesBillingHighDate
UtilitiesBillingLowDate
AuthorizationGroup I_UtilitiesContract AuthorizationGroup AuthorizGroup
_UtilitiesPortion I_UtilitiesPortionScheduleRecd _UtilitiesPortion
_UtilitiesBillingReason I_UtilitiesPortionScheduleRecd _UtilitiesBillingReason
_CompanyCode I_UtilitiesContract _CompanyCode
_Division I_UtilitiesContract _Division
_UtilitiesInstallation I_UtilitiesContract _UtilitiesInstallation
_UtilsBillgBlockReason I_UtilitiesContract _UtilsBillgBlockReason
_UtilsBillgUnblockReason I_UtilitiesContract _UtilsBillgUnblockReason
_MeterReadingUnit I_UtilitiesInstallationHist _MeterReadingUnit
_UtilitiesRateCategory I_UtilitiesInstallationHist _UtilitiesRateCategory
_UtilsBillingClass I_UtilitiesInstallationHist _UtilsBillingClass
_MeterReadingReason I_MtrRsnCorrespgToBillgRsn _MeterReadingReason
_InvcUtilsContractsJointly I_UtilitiesContract _InvcUtilsContractsJointly
UtilitiesContract PoD service
KEY ScheduledUtilitiesBillingDate I_UtilitiesPortionScheduleRecd ScheduledUtilitiesBillingDate
KEY UtilitiesPortion I_UtilitiesPortionScheduleRecd UtilitiesPortion Portion
KEY ScheduledMeterReadingDate I_MtrRdngUnitScheduleRecord ScheduledMeterReadingDate
UtilitiesBillingReason I_UtilitiesPortionScheduleRecd UtilitiesBillingReason
CompanyCode I_UtilitiesContract CompanyCode Receiver Company Code
Division I_UtilitiesContract UtilitiesDivision Insurance LOB
UtilitiesInstallation I_UtilitiesContract UtilitiesInstallation Installation
ContractAccount I_UtilitiesContract ContractAccount Contract Acct
UtilsBillgBlockReason I_UtilitiesContract UtilsBillgBlockReason
UtilsBillgUnblockReason I_UtilitiesContract UtilsBillgUnblockReason
MeterReadingUnit I_UtilitiesInstallationHist MeterReadingUnit Portion
UtilitiesRateCategory I_UtilitiesInstallationHist UtilitiesRateCategory Rate category
UtilitiesBillingClass I_UtilitiesInstallationHist UtilitiesBillingClass Billing Class
MeterReadingReason I_MtrRsnCorrespgToBillgRsn MeterReadingReason MR reason
UtilitiesMoveInDate I_UtilitiesContract UtilitiesMoveInDate
UtilitiesMoveOutDate I_UtilitiesContract UtilitiesMoveOutDate
UtilsContrJointInvcType I_UtilitiesContract UtilsContrJointInvcType
UtilitiesAccountDetnCode I_UtilitiesContract UtilitiesAccountDetnCode
UtilsPortionScheduleRecordDate I_UtilitiesPortionScheduleRecd UtilsPortionScheduleRecordDate
SchedldUtilsInvcgPrintoutDate I_UtilitiesPortionScheduleRecd SchedldUtilsInvcgPrintoutDate
UtilitiesBillingHighDate
UtilitiesBillingLowDate
AuthorizationGroup I_UtilitiesContract AuthorizationGroup AuthorizGroup
_UtilitiesPortion I_UtilitiesPortionScheduleRecd _UtilitiesPortion
_UtilitiesBillingReason I_UtilitiesPortionScheduleRecd _UtilitiesBillingReason
_CompanyCode I_UtilitiesContract _CompanyCode
_Division I_UtilitiesContract _Division
_UtilitiesInstallation I_UtilitiesContract _UtilitiesInstallation
_UtilsBillgBlockReason I_UtilitiesContract _UtilsBillgBlockReason
_UtilsBillgUnblockReason I_UtilitiesContract _UtilsBillgUnblockReason
_MeterReadingUnit I_UtilitiesInstallationHist _MeterReadingUnit
_UtilitiesRateCategory I_UtilitiesInstallationHist _UtilitiesRateCategory
_UtilsBillingClass I_UtilitiesInstallationHist _UtilsBillingClass
_MeterReadingReason I_MtrRsnCorrespgToBillgRsn _MeterReadingReason
_InvcUtilsContractsJointly I_UtilitiesContract _InvcUtilsContractsJointly
_UtilsAccountDetnCode I_UtilitiesContract _UtilsAccountDetnCode

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_UtilsContrToBeBlldData.
-- 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: IECONTRTBBILLEDD

CREATE VIEW I_UtilsContrToBeBlldData AS
SELECT
  UtilitiesContract.UtilitiesContract AS UtilitiesContract,
  UtilitiesPortionScheduleRecd.ScheduledUtilitiesBillingDate AS ScheduledUtilitiesBillingDate,
  UtilitiesPortionScheduleRecd.UtilitiesPortion AS UtilitiesPortion,
  MtrRdngUnitScheduleRecord.ScheduledMeterReadingDate AS ScheduledMeterReadingDate,
  UtilitiesPortionScheduleRecd.UtilitiesBillingReason AS UtilitiesBillingReason,
  UtilitiesContract.CompanyCode AS CompanyCode,
  UtilitiesContract.UtilitiesDivision AS Division,
  UtilitiesContract.UtilitiesInstallation AS UtilitiesInstallation,
  UtilitiesContract.ContractAccount AS ContractAccount,
  UtilitiesContract.UtilsBillgBlockReason AS UtilsBillgBlockReason,
  UtilitiesContract.UtilsBillgUnblockReason AS UtilsBillgUnblockReason,
  UtilitiesInstallationHist.MeterReadingUnit AS MeterReadingUnit,
  UtilitiesInstallationHist.UtilitiesRateCategory AS UtilitiesRateCategory,
  UtilitiesInstallationHist.UtilitiesBillingClass AS UtilitiesBillingClass,
  MtrRsnCorrespgToBillgRsn.MeterReadingReason AS MeterReadingReason,
  UtilitiesContract.UtilitiesMoveInDate AS UtilitiesMoveInDate,
  UtilitiesContract.UtilitiesMoveOutDate AS UtilitiesMoveOutDate,
  UtilitiesContract.UtilsContrJointInvcType AS UtilsContrJointInvcType,
  UtilitiesContract.UtilitiesAccountDetnCode AS UtilitiesAccountDetnCode,
  UtilitiesPortionScheduleRecd.UtilsPortionScheduleRecordDate AS UtilsPortionScheduleRecordDate,
  UtilitiesPortionScheduleRecd.SchedldUtilsInvcgPrintoutDate AS SchedldUtilsInvcgPrintoutDate,
  dats_add_days(UtilitiesPortionScheduleRecd.ScheduledUtilitiesBillingDate, cast( MtrRdngUnitScheduleRecord._MeterReadingUnit.UtilsMtrRdngIntervalInDays as abap.int4) , 'INITIAL' ) AS UtilitiesBillingHighDate,
  dats_add_days(UtilitiesPortionScheduleRecd.ScheduledUtilitiesBillingDate, cast( MtrRdngUnitScheduleRecord._MeterReadingUnit.UtilsMtrRdngIntervalInDays as abap.int4) * -1 , 'INITIAL' ) AS UtilitiesBillingLowDate,
  UtilitiesContract.AuthorizationGroup AS AuthorizationGroup,
  UtilitiesPortionScheduleRecd._UtilitiesPortion AS _UtilitiesPortion,
  UtilitiesPortionScheduleRecd._UtilitiesBillingReason AS _UtilitiesBillingReason,
  UtilitiesContract._CompanyCode AS _CompanyCode,
  UtilitiesContract._Division AS _Division,
  UtilitiesContract._UtilitiesInstallation AS _UtilitiesInstallation,
  UtilitiesContract._UtilsBillgBlockReason AS _UtilsBillgBlockReason,
  UtilitiesContract._UtilsBillgUnblockReason AS _UtilsBillgUnblockReason,
  UtilitiesInstallationHist._MeterReadingUnit AS _MeterReadingUnit,
  UtilitiesInstallationHist._UtilitiesRateCategory AS _UtilitiesRateCategory,
  UtilitiesInstallationHist._UtilsBillingClass AS _UtilsBillingClass,
  MtrRsnCorrespgToBillgRsn._MeterReadingReason AS _MeterReadingReason,
  UtilitiesContract._InvcUtilsContractsJointly AS _InvcUtilsContractsJointly,
  UtilitiesContract._UtilsAccountDetnCode AS _UtilsAccountDetnCode
FROM I_UtilitiesContract AS UtilitiesContract
INNER JOIN I_UtilitiesPortionScheduleRecd AS UtilitiesPortionScheduleRecd ON /* join condition not captured in parsed metadata */
INNER JOIN I_UtilitiesInstallationHist AS UtilitiesInstallationHist ON /* join condition not captured in parsed metadata */
INNER JOIN I_MtrRsnCorrespgToBillgRsn AS MtrRsnCorrespgToBillgRsn ON /* join condition not captured in parsed metadata */
INNER JOIN I_MtrRdngUnitScheduleRecord AS MtrRdngUnitScheduleRecord ON /* join condition not captured in parsed metadata */
INNER JOIN I_MeterReadingUnit AS MeterReadingUnit ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_UtilitiesContract
;