I_UtilitiesBillingOrder

DDL: I_UTILITIESBILLINGORDER SQL: IEBILLGORDER Type: view BASIC

Billing Order

I_UtilitiesBillingOrder (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Utilities

I_UtilitiesBillingOrder is a Basic CDS View (Dimension) that provides data about "Billing Order" in SAP S/4HANA. It reads from 1 data source (etrg) and exposes 29 fields with key fields UtilitiesInstallation, ScheduledUtilitiesBillingDate, UtilitiesBillingReason. It has 11 associations to related views.

SAP Help Documentation

CategoryBilling
Data CategoryDimension
Purpose
This CDS view retrieves data for a billing order. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations The following authorization objects are required to use this CDS view: E_INSTLN (Authorization to display IS-U installations)

Structure
Important fields in this view include the following: Field Name Description UtilitiesInstallation Installation ScheduledUtilitiesBillingDate Scheduled Billing Date UtilitiesBillingReason Contract UtilitiesBillingReason Billing Reason UtilitiesPortion Portion MeterReadingUnit Meter Reading Unit

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessUtilities
Application ComponentIS-U-BI
CapabilitiesData Source in SQL Select, Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageUtilities for SAP S/4HANA
Description <p>This CDS view retrieves data for a billing order.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
etrg etrg from

Associations (11)

CardinalityTargetAliasCondition
[1..1] I_UtilitiesInstallation _UtilitiesInstallation $projection.UtilitiesInstallation = _UtilitiesInstallation.UtilitiesInstallation
[1..1] I_UtilitiesBillingReason _UtilitiesBillingReason $projection.UtilitiesBillingReason = _UtilitiesBillingReason.UtilitiesBillingReason
[1..1] I_Division _Division $projection.Division = _Division.Division
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_MeterReadingUnit _MeterReadingUnit $projection.MeterReadingUnit = _MeterReadingUnit.MeterReadingUnit
[1..1] I_UtilitiesPortion _UtilitiesPortion $projection.UtilitiesPortion = _UtilitiesPortion.UtilitiesPortion
[1..1] I_UtilsBillingOrderStatus _UtilsBillingOrderStatus $projection.UtilsBillingOrderStatus = _UtilsBillingOrderStatus.UtilsBillingOrderStatus
[1..1] I_User _CreatedByUser $projection.UtilsBillgOrderCreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.UtilsBillgOrdLastChangedByUser = _LastChangedByUser.UserID
[1..1] I_UtilitiesBillingReason _SuppressedUtilsBillgReason $projection.SuppressedUtilsBillgReason = _SuppressedUtilsBillgReason.UtilitiesBillingReason
[1..1] I_UtilsBillingOrderIndicator _UtilsBillingOrderIndicator $projection.UtilsBillingOrderIndicator = _UtilsBillingOrderIndicator.UtilsBillingOrderIndicator

Annotations (14)

NameValueLevelField
EndUserText.label Billing Order view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IEBILLGORDER view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey ScheduledUtilitiesBillingDate view
Metadata.allowExtensions true view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY UtilitiesInstallation etrg anlage Installation
KEY ScheduledUtilitiesBillingDate Scheduled Billing Date
KEY UtilitiesBillingReason Billing Reason
CompanyCode etrg bukrs Company Code
Division etrg sparte Insurance LOB
UtilsBillingOrderStatus etrg trigstat Status of Billing Order
UtilitiesPortion etrg portion Portion
MeterReadingUnit Meter Reading Unit
ScheduledMeterReadingDate Scheduled Meter Reading Date
UtilsBillgPeriodAllocationDate etrg zuorddat Allocation date for billing
UtilsBillgOrderCreationDate etrg erdat Record Created On
UtilsBillgOrderCreatedByUser etrg ernam Name of Person Responsible for Creating the Object
UtilsBillgOrderLastChangeDate etrg aedat Last Changed On
UtilsBillgOrdLastChangedByUser etrg aenam Name of Person Who Changed Object
SuppressedUtilsSchedldBillgDte Scheduled Billing Date for Suppressed Billing Order
SuppressedSchedldMtrRdngDte Scheduled Meter Read. Date of Suppressed Meter Reading Order
SuppressedUtilsBillgReason Billing Reason for Suppressed Billing Order
UtilsBillingOrderIndicator Billing Order Indicator for Errors
_UtilitiesInstallation _UtilitiesInstallation
_UtilitiesBillingReason _UtilitiesBillingReason
_Division _Division
_CompanyCode _CompanyCode
_MeterReadingUnit _MeterReadingUnit
_UtilitiesPortion _UtilitiesPortion
_UtilsBillingOrderStatus _UtilsBillingOrderStatus
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_SuppressedUtilsBillgReason _SuppressedUtilsBillgReason
_UtilsBillingOrderIndicator _UtilsBillingOrderIndicator

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_UtilitiesBillingOrder.
-- 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: IEBILLGORDER

CREATE VIEW I_UtilitiesBillingOrder AS
SELECT
  etrg.anlage AS UtilitiesInstallation,
  cast(etrg.abrdats as e_schedld_billg_dte_vdm preserving type) AS ScheduledUtilitiesBillingDate,
  cast( etrg.abrvorg as e_abrvorg_vdm preserving type) AS UtilitiesBillingReason,
  etrg.bukrs AS CompanyCode,
  etrg.sparte AS Division,
  etrg.trigstat AS UtilsBillingOrderStatus,
  etrg.portion AS UtilitiesPortion,
  cast(etrg.ableinh as ableinheit preserving type) AS MeterReadingUnit,
  cast(etrg.adatsoll as e_schedld_mtrrdng_dte_vdm preserving type) AS ScheduledMeterReadingDate,
  etrg.zuorddat AS UtilsBillgPeriodAllocationDate,
  etrg.erdat AS UtilsBillgOrderCreationDate,
  etrg.ernam AS UtilsBillgOrderCreatedByUser,
  etrg.aedat AS UtilsBillgOrderLastChangeDate,
  etrg.aenam AS UtilsBillgOrdLastChangedByUser,
  cast( etrg.abrdatsu as e_abrdatsu_vdm preserving type) AS SuppressedUtilsSchedldBillgDte,
  cast( etrg.adatsollu as e_adatsollu_vdm preserving type) AS SuppressedSchedldMtrRdngDte,
  cast( etrg.abrvorgu as e_abrvorgu_vdm preserving type) AS SuppressedUtilsBillgReason,
  cast( etrg.billg_err as e_billgordind_vdm preserving type) AS UtilsBillingOrderIndicator
FROM etrg
LEFT OUTER JOIN I_UtilitiesInstallation AS _UtilitiesInstallation ON UtilitiesInstallation = _UtilitiesInstallation.UtilitiesInstallation  -- association [1..1]
LEFT OUTER JOIN I_UtilitiesBillingReason AS _UtilitiesBillingReason ON UtilitiesBillingReason = _UtilitiesBillingReason.UtilitiesBillingReason  -- association [1..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_MeterReadingUnit AS _MeterReadingUnit ON MeterReadingUnit = _MeterReadingUnit.MeterReadingUnit  -- association [1..1]
LEFT OUTER JOIN I_UtilitiesPortion AS _UtilitiesPortion ON UtilitiesPortion = _UtilitiesPortion.UtilitiesPortion  -- association [1..1]
LEFT OUTER JOIN I_UtilsBillingOrderStatus AS _UtilsBillingOrderStatus ON UtilsBillingOrderStatus = _UtilsBillingOrderStatus.UtilsBillingOrderStatus  -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON UtilsBillgOrderCreatedByUser = _CreatedByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON UtilsBillgOrdLastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_UtilitiesBillingReason AS _SuppressedUtilsBillgReason ON SuppressedUtilsBillgReason = _SuppressedUtilsBillgReason.UtilitiesBillingReason  -- association [1..1]
LEFT OUTER JOIN I_UtilsBillingOrderIndicator AS _UtilsBillingOrderIndicator ON UtilsBillingOrderIndicator = _UtilsBillingOrderIndicator.UtilsBillingOrderIndicator  -- association [1..1]
;