C_UtilsBillgOrdErrorsWithDets

DDL: C_UTILSBILLGORDERRORSWITHDETS Type: view_entity CONSUMPTION

Utilities Billing Order Errors With Details

C_UtilsBillgOrdErrorsWithDets is a Consumption CDS View that provides data about "Utilities Billing Order Errors With Details" in SAP S/4HANA. It reads from 2 data sources (I_LatestOpenBPEMCase, I_UtilsBillingOrder) and exposes 72 fields with key fields UtilitiesContract, UtilitiesInstallation, ScheduledUtilitiesBillingDate, UtilitiesBillingReason. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_LatestOpenBPEMCase LatestOpenBPEMCase left_outer
I_UtilsBillingOrder UtilsBillingOrder from

Associations (4)

CardinalityTargetAliasCondition
[0..*] C_BPEMCaseTP _BPEMCaseTP $projection.UtilitiesInstallation = _BPEMCaseTP.BPEMCaseMainObject and _BPEMCaseTP.BPEMCaseMainObjectType = 'INSTLN' and _BPEMCaseTP.BPEMBusinessProcessCode = 'EBI00001'
[1..1] I_CalendarDate _CalendarDate $projection.ScheduledUtilitiesBillingDate = _CalendarDate.CalendarDate
[0..1] I_OpenBPEMCaseStatusVH _OpenBPEMCaseStatus $projection.BPEMCaseStatus = _OpenBPEMCaseStatus.BPEMCaseStatus
[1..1] I_ContractAccountPartner _ContractAccountPartner $projection.ContractAccount = _ContractAccountPartner.ContractAccount and $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner

Annotations (10)

NameValueLevelField
EndUserText.label Utilities Billing Order Errors With Details view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName {@i18n>@BILLING_ORDER} view
UI.headerInfo.typeNamePlural {@i18n>@BILLING_ORDERS} view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value UtilitiesContract view

Fields (72)

KeyFieldSource TableSource FieldDescription
KEY UtilitiesContract I_UtilsBillingOrder UtilitiesContract
KEY UtilitiesInstallation I_UtilsBillingOrder UtilitiesInstallation
KEY ScheduledUtilitiesBillingDate I_UtilsBillingOrder ScheduledUtilitiesBillingDate
KEY UtilitiesBillingReason I_UtilsBillingOrder UtilitiesBillingReason
BPEMCase
ContractAccount I_UtilsBillingOrder ContractAccount Contract Acct
BPEMCaseCategory
BPEMCaseCurrentProcessor
UserDescription
BPEMCasePreviousProcessor
LastChangedByUserDescription
BPEMBusinessProcessCode
BPEMCaseForwardingReason
BPEMCaseCreationDate
BPEMCaseDueDate
BPEMCaseOriginalDate
BPEMCasePriority
BPEMCaseStatus
UtilitiesPortion I_UtilsBillingOrder UtilitiesPortion
ScheduledMeterReadingDate I_UtilsBillingOrder ScheduledMeterReadingDate
CompanyCode I_UtilsBillingOrder CompanyCode Receiver Company Code
Division I_UtilsBillingOrder Division Internal Division ID
UtilsBillgBlockReason I_UtilsBillingOrder UtilsBillgBlockReason
UtilsBillgUnblockReason I_UtilsBillingOrder UtilsBillgUnblockReason
UtilitiesBillingClass I_UtilsBillingOrder UtilitiesBillingClass
BusinessPartner I_UtilsBillingOrder BusinessPartner Issuing Authority
UtilitiesPremise
UtilitiesRateCategory I_UtilsBillingOrder UtilitiesRateCategory
MeterReadingUnit I_UtilsBillingOrder MeterReadingUnit
UtilitiesMoveInDate I_UtilsBillingOrder UtilitiesMoveInDate
UtilitiesMoveOutDate I_UtilsBillingOrder UtilitiesMoveOutDate
UtilsDefaultBdgtBillgCycle
UtilsContrSpcfcBdgtBillgCycle I_UtilsBillingOrder UtilsContrSpcfcBdgtBillgCycle
UtilitiesAccountDetnCode I_UtilsBillingOrder UtilitiesAccountDetnCode
UtilsBillgOutsortingReason I_UtilsBillingOrder UtilsBillgOutsortingReason
UtilsExternalPointOfDelivery I_UtilsBillingOrder UtilsExternalPointOfDelivery
UtilsPostalAddressFormatted
AddressID
_Address2
AuthorizationGroup I_UtilsBillingOrder AuthorizationGroup AuthorizGroup
CalendarMonth
CalendarMonthName
CalendarYear
_CompanyCode I_UtilsBillingOrder _CompanyCode
_Division I_UtilsBillingOrder _Division
_UtilitiesBillingReason I_UtilsBillingOrder _UtilitiesBillingReason
_UtilitiesInstallation I_UtilsBillingOrder _UtilitiesInstallation
_UtilitiesPortion I_UtilsBillingOrder _UtilitiesPortion
_UtilsBillgBlockReason I_UtilsBillingOrder _UtilsBillgBlockReason
_UtilsBillgUnblockReason I_UtilsBillingOrder _UtilsBillgUnblockReason
_UtilsBillingClass I_UtilsBillingOrder _UtilsBillingClass
_BusinessPartner I_UtilsBillingOrder _BusinessPartner
_ContrAcc I_UtilsBillingOrder _ContrAcc
_UtilitiesRateCategory I_UtilsBillingOrder _UtilitiesRateCategory
_MeterReadingUnit I_UtilsBillingOrder _MeterReadingUnit
_UtilsContrSpcfcBdgtBillgCyc I_UtilsBillingOrder _UtilsContrSpcfcBdgtBillgCyc
_UtilsBillgOutsortingGroup I_UtilsBillingOrder _UtilsBillgOutsortingGroup
_UtilitiesBdgtBillgCyc
_UtilsAccountDetnCode I_UtilsBillingOrder _UtilsAccountDetnCode
_UtilitiesPremise
_BPEMBusinessProcessCode
_BPEMCaseCategory
_BPEMCasePriority
_User
_PreviousUser
_BPEMCaseForwardReason
_BPEMCaseTP _BPEMCaseTP
_CalendarDate _CalendarDate
_CalendarYear _CalendarDate _CalendarYear
_CalendarMonth _CalendarDate _CalendarMonth
_OpenBPEMCaseStatus _OpenBPEMCaseStatus
_ContractAccountPartner _ContractAccountPartner

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 C_UtilsBillgOrdErrorsWithDets.
-- 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.

CREATE VIEW C_UtilsBillgOrdErrorsWithDets AS
SELECT
  UtilsBillingOrder.UtilitiesContract AS UtilitiesContract,
  UtilsBillingOrder.UtilitiesInstallation AS UtilitiesInstallation,
  UtilsBillingOrder.ScheduledUtilitiesBillingDate AS ScheduledUtilitiesBillingDate,
  UtilsBillingOrder.UtilitiesBillingReason AS UtilitiesBillingReason,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCase as e_clarificationcase_vdm preserving type) AS BPEMCase,
  UtilsBillingOrder.ContractAccount AS ContractAccount,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCaseCategory as e_clarcasecategory_vdm preserving type) AS BPEMCaseCategory,
  LatestOpenBPEMCase._BPEMCase.BPEMCaseCurrentProcessor AS BPEMCaseCurrentProcessor,
  LatestOpenBPEMCase._BPEMCase._User.UserDescription AS UserDescription,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCasePreviousProcessor as e_clarcaseprevproc_vdm preserving type) AS BPEMCasePreviousProcessor,
  LatestOpenBPEMCase._BPEMCase._PreviousUser.UserDescription AS LastChangedByUserDescription,
  LatestOpenBPEMCase._BPEMCase.BPEMBusinessProcessCode AS BPEMBusinessProcessCode,
  LatestOpenBPEMCase._BPEMCase.BPEMCaseForwardingReason AS BPEMCaseForwardingReason,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCaseCreationDate as e_clarcasecreationdate_vdm preserving type) AS BPEMCaseCreationDate,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCaseDueDate as e_clarcaseduedate_vdm preserving type) AS BPEMCaseDueDate,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCaseOriginalDate as e_clarcaseorigdate_vdm preserving type) AS BPEMCaseOriginalDate,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCasePriority as e_clarcasepriority_vdm preserving type) AS BPEMCasePriority,
  cast(LatestOpenBPEMCase._BPEMCase.BPEMCaseStatus as e_clarcasestatus_vdm) AS BPEMCaseStatus,
  UtilsBillingOrder.UtilitiesPortion AS UtilitiesPortion,
  UtilsBillingOrder.ScheduledMeterReadingDate AS ScheduledMeterReadingDate,
  UtilsBillingOrder.CompanyCode AS CompanyCode,
  UtilsBillingOrder.Division AS Division,
  UtilsBillingOrder.UtilsBillgBlockReason AS UtilsBillgBlockReason,
  UtilsBillingOrder.UtilsBillgUnblockReason AS UtilsBillgUnblockReason,
  UtilsBillingOrder.UtilitiesBillingClass AS UtilitiesBillingClass,
  UtilsBillingOrder.BusinessPartner AS BusinessPartner,
  UtilsBillingOrder._UtilitiesInstallation.UtilitiesPremise AS UtilitiesPremise,
  UtilsBillingOrder.UtilitiesRateCategory AS UtilitiesRateCategory,
  UtilsBillingOrder.MeterReadingUnit AS MeterReadingUnit,
  UtilsBillingOrder.UtilitiesMoveInDate AS UtilitiesMoveInDate,
  UtilsBillingOrder.UtilitiesMoveOutDate AS UtilitiesMoveOutDate,
  UtilsBillingOrder._UtilitiesPortion.UtilsDefaultBdgtBillgCycle AS UtilsDefaultBdgtBillgCycle,
  UtilsBillingOrder.UtilsContrSpcfcBdgtBillgCycle AS UtilsContrSpcfcBdgtBillgCycle,
  UtilsBillingOrder.UtilitiesAccountDetnCode AS UtilitiesAccountDetnCode,
  UtilsBillingOrder.UtilsBillgOutsortingReason AS UtilsBillgOutsortingReason,
  UtilsBillingOrder.UtilsExternalPointOfDelivery AS UtilsExternalPointOfDelivery,
  cast('' as abap.sstring( 256 )) AS UtilsPostalAddressFormatted,
  UtilsBillingOrder._UtilitiesInstallation._UtilitiesPremise._UtilsTechObjLocationAddr.AddressID AS AddressID,
  UtilsBillingOrder._UtilitiesInstallation._UtilitiesPremise._UtilsTechObjLocationAddr._Address2 AS _Address2,
  UtilsBillingOrder.AuthorizationGroup AS AuthorizationGroup,
  cast(_CalendarDate.CalendarMonth as e_schdldmnth_vdm preserving type ) AS CalendarMonth,
  _CalendarDate._CalendarMonth._Text[1: Language = $session.system_language].CalendarMonthName AS CalendarMonthName,
  cast(_CalendarDate.CalendarYear as e_schdldyr_vdm preserving type ) AS CalendarYear,
  UtilsBillingOrder._CompanyCode AS _CompanyCode,
  UtilsBillingOrder._Division AS _Division,
  UtilsBillingOrder._UtilitiesBillingReason AS _UtilitiesBillingReason,
  UtilsBillingOrder._UtilitiesInstallation AS _UtilitiesInstallation,
  UtilsBillingOrder._UtilitiesPortion AS _UtilitiesPortion,
  UtilsBillingOrder._UtilsBillgBlockReason AS _UtilsBillgBlockReason,
  UtilsBillingOrder._UtilsBillgUnblockReason AS _UtilsBillgUnblockReason,
  UtilsBillingOrder._UtilsBillingClass AS _UtilsBillingClass,
  UtilsBillingOrder._BusinessPartner AS _BusinessPartner,
  UtilsBillingOrder._ContrAcc AS _ContrAcc,
  UtilsBillingOrder._UtilitiesRateCategory AS _UtilitiesRateCategory,
  UtilsBillingOrder._MeterReadingUnit AS _MeterReadingUnit,
  UtilsBillingOrder._UtilsContrSpcfcBdgtBillgCyc AS _UtilsContrSpcfcBdgtBillgCyc,
  UtilsBillingOrder._UtilsBillgOutsortingGroup AS _UtilsBillgOutsortingGroup,
  UtilsBillingOrder._UtilitiesPortion._UtilitiesBdgtBillgCyc AS _UtilitiesBdgtBillgCyc,
  UtilsBillingOrder._UtilsAccountDetnCode AS _UtilsAccountDetnCode,
  UtilsBillingOrder._UtilitiesInstallation._UtilitiesPremise AS _UtilitiesPremise,
  LatestOpenBPEMCase._BPEMCase._BPEMBusinessProcessCode AS _BPEMBusinessProcessCode,
  LatestOpenBPEMCase._BPEMCase._BPEMCaseCategory AS _BPEMCaseCategory,
  LatestOpenBPEMCase._BPEMCase._BPEMCasePriority AS _BPEMCasePriority,
  LatestOpenBPEMCase._BPEMCase._User AS _User,
  LatestOpenBPEMCase._BPEMCase._PreviousUser AS _PreviousUser,
  LatestOpenBPEMCase._BPEMCase._BPEMCaseForwardReason AS _BPEMCaseForwardReason,
  _CalendarDate._CalendarYear AS _CalendarYear,
  _CalendarDate._CalendarMonth AS _CalendarMonth
FROM I_UtilsBillingOrder AS UtilsBillingOrder
LEFT OUTER JOIN I_LatestOpenBPEMCase AS LatestOpenBPEMCase ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_BPEMCaseTP AS _BPEMCaseTP ON UtilitiesInstallation = _BPEMCaseTP.BPEMCaseMainObject AND _BPEMCaseTP.BPEMCaseMainObjectType = 'INSTLN' AND _BPEMCaseTP.BPEMBusinessProcessCode = 'EBI00001'  -- association [0..*]
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON ScheduledUtilitiesBillingDate = _CalendarDate.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_OpenBPEMCaseStatusVH AS _OpenBPEMCaseStatus ON BPEMCaseStatus = _OpenBPEMCaseStatus.BPEMCaseStatus  -- association [0..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON ContractAccount = _ContractAccountPartner.ContractAccount AND BusinessPartner = _ContractAccountPartner.BusinessPartner  -- association [1..1]
;