C_UtilsBillgOrdRdyBillgWthDets

DDL: C_UTILSBILLGORDRDYBILLGWTHDETS SQL: CEBLLGORDRDYDET Type: view CONSUMPTION

Billing Order Ready for Billing with Details

C_UtilsBillgOrdRdyBillgWthDets is a Consumption CDS View that provides data about "Billing Order Ready for Billing with Details" in SAP S/4HANA. It reads from 1 data source (I_UtilsBillingOrder) and exposes 59 fields with key fields UtilitiesContract, UtilitiesInstallation, ScheduledUtilitiesBillingDate, UtilitiesBillingReason, UtilsInstHistValidityEndDate. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_UtilsBillingOrder UtilsBillingOrder from

Associations (5)

CardinalityTargetAliasCondition
[0..*] C_UtilitiesBillingOrderHistory _UtilitiesBillingOrderHistory $projection.UtilitiesContract = _UtilitiesBillingOrderHistory.UtilitiesContract
[0..*] C_UtilsBillingDocumentHistory _UtilsBillingDocumentHistory $projection.UtilitiesContract = _UtilsBillingDocumentHistory.UtilitiesContract
[0..*] C_MeterReadingHistoryDetails _MeterReadingHistoryDetails $projection.UtilitiesInstallation = _MeterReadingHistoryDetails.UtilitiesInstallation
[1..1] I_CalendarDate _CalendarDate $projection.ScheduledUtilitiesBillingDate = _CalendarDate.CalendarDate
[1..1] I_ContractAccountPartner _ContractAccountPartner $projection.ContractAccount = _ContractAccountPartner.ContractAccount and $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner

Annotations (12)

NameValueLevelField
EndUserText.label Billing Order Ready for Billing with Details view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CEBLLGORDRDYDET 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
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 (59)

KeyFieldSource TableSource FieldDescription
KEY UtilitiesContract I_UtilsBillingOrder UtilitiesContract
KEY UtilitiesInstallation I_UtilsBillingOrder UtilitiesInstallation
KEY ScheduledUtilitiesBillingDate I_UtilsBillingOrder ScheduledUtilitiesBillingDate
KEY UtilitiesBillingReason I_UtilsBillingOrder UtilitiesBillingReason
KEY UtilsInstHistValidityEndDate I_UtilsBillingOrder UtilsInstHistValidityEndDate
UtilitiesPortion I_UtilsBillingOrder UtilitiesPortion
CompanyCode I_UtilsBillingOrder CompanyCode Receiver Company Code
Division I_UtilsBillingOrder Division Internal Division ID
ContractAccount I_UtilsBillingOrder ContractAccount Contract Acct
BusinessPartner I_UtilsBillingOrder BusinessPartner Issuing Authority
ScheduledMeterReadingDate I_UtilsBillingOrder ScheduledMeterReadingDate
UtilsBillgBlockReason I_UtilsBillingOrder UtilsBillgBlockReason
UtilsBillgUnblockReason I_UtilsBillingOrder UtilsBillgUnblockReason
MeterReadingUnit I_UtilsBillingOrder MeterReadingUnit
UtilitiesRateCategory I_UtilsBillingOrder UtilitiesRateCategory
UtilitiesBillingClass I_UtilsBillingOrder UtilitiesBillingClass
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
UtilsBillgOrdChkBfrBilling I_UtilsBillingOrder UtilsBillgOrdChkBfrBilling
StatusCriticality
UtilsPostalAddressFormatted
AddressID
_Address2
UtilitiesPremise
CalendarMonth
CalendarMonthName
CalendarYear
UtilsContrIsBilledManually I_UtilsBillingOrder UtilsContrIsBilledManually
AuthorizationGroup I_UtilsBillingOrder AuthorizationGroup AuthorizGroup
_UtilitiesInstallation I_UtilsBillingOrder _UtilitiesInstallation
_UtilitiesBillingReason I_UtilsBillingOrder _UtilitiesBillingReason
_UtilitiesPortion I_UtilsBillingOrder _UtilitiesPortion
_CompanyCode I_UtilsBillingOrder _CompanyCode
_Division I_UtilsBillingOrder _Division
_ContrAcc I_UtilsBillingOrder _ContrAcc
_BusinessPartner I_UtilsBillingOrder _BusinessPartner
_UtilsBillgBlockReason I_UtilsBillingOrder _UtilsBillgBlockReason
_UtilsBillgUnblockReason I_UtilsBillingOrder _UtilsBillgUnblockReason
_MeterReadingUnit I_UtilsBillingOrder _MeterReadingUnit
_UtilitiesRateCategory I_UtilsBillingOrder _UtilitiesRateCategory
_UtilsBillingClass I_UtilsBillingOrder _UtilsBillingClass
_UtilitiesBdgtBillgCyc
_UtilsContrSpcfcBdgtBillgCyc I_UtilsBillingOrder _UtilsContrSpcfcBdgtBillgCyc
_UtilsAccountDetnCode I_UtilsBillingOrder _UtilsAccountDetnCode
_UtilsBillgOutsortingGroup I_UtilsBillingOrder _UtilsBillgOutsortingGroup
_UtilsBillgOrdChkBfrBilling I_UtilsBillingOrder _UtilsBillgOrdChkBfrBilling
_UtilitiesPremise
_UtilitiesBillingOrderHistory _UtilitiesBillingOrderHistory
_UtilsBillingDocumentHistory _UtilsBillingDocumentHistory
_MeterReadingHistoryDetails _MeterReadingHistoryDetails
_CalendarDate _CalendarDate
_CalendarMonth _CalendarDate _CalendarMonth
_CalendarYear _CalendarDate _CalendarYear
_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_UtilsBillgOrdRdyBillgWthDets.
-- 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: CEBLLGORDRDYDET

CREATE VIEW C_UtilsBillgOrdRdyBillgWthDets AS
SELECT
  UtilsBillingOrder.UtilitiesContract AS UtilitiesContract,
  UtilsBillingOrder.UtilitiesInstallation AS UtilitiesInstallation,
  UtilsBillingOrder.ScheduledUtilitiesBillingDate AS ScheduledUtilitiesBillingDate,
  UtilsBillingOrder.UtilitiesBillingReason AS UtilitiesBillingReason,
  UtilsBillingOrder.UtilsInstHistValidityEndDate AS UtilsInstHistValidityEndDate,
  UtilsBillingOrder.UtilitiesPortion AS UtilitiesPortion,
  UtilsBillingOrder.CompanyCode AS CompanyCode,
  UtilsBillingOrder.Division AS Division,
  UtilsBillingOrder.ContractAccount AS ContractAccount,
  UtilsBillingOrder.BusinessPartner AS BusinessPartner,
  UtilsBillingOrder.ScheduledMeterReadingDate AS ScheduledMeterReadingDate,
  UtilsBillingOrder.UtilsBillgBlockReason AS UtilsBillgBlockReason,
  UtilsBillingOrder.UtilsBillgUnblockReason AS UtilsBillgUnblockReason,
  UtilsBillingOrder.MeterReadingUnit AS MeterReadingUnit,
  UtilsBillingOrder.UtilitiesRateCategory AS UtilitiesRateCategory,
  UtilsBillingOrder.UtilitiesBillingClass AS UtilitiesBillingClass,
  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,
  UtilsBillingOrder.UtilsBillgOrdChkBfrBilling AS UtilsBillgOrdChkBfrBilling,
  case when UtilsBillingOrder.UtilsBillgOrdChkBfrBilling is not null then 1 end AS StatusCriticality,
  cast('' as abap.sstring( 256 )) AS UtilsPostalAddressFormatted,
  UtilsBillingOrder._UtilitiesInstallation._UtilitiesPremise._UtilsTechObjLocationAddr.AddressID AS AddressID,
  UtilsBillingOrder._UtilitiesInstallation._UtilitiesPremise._UtilsTechObjLocationAddr._Address2 AS _Address2,
  UtilsBillingOrder._UtilitiesInstallation.UtilitiesPremise AS UtilitiesPremise,
  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.UtilsContrIsBilledManually AS UtilsContrIsBilledManually,
  UtilsBillingOrder.AuthorizationGroup AS AuthorizationGroup,
  UtilsBillingOrder._UtilitiesInstallation AS _UtilitiesInstallation,
  UtilsBillingOrder._UtilitiesBillingReason AS _UtilitiesBillingReason,
  UtilsBillingOrder._UtilitiesPortion AS _UtilitiesPortion,
  UtilsBillingOrder._CompanyCode AS _CompanyCode,
  UtilsBillingOrder._Division AS _Division,
  UtilsBillingOrder._ContrAcc AS _ContrAcc,
  UtilsBillingOrder._BusinessPartner AS _BusinessPartner,
  UtilsBillingOrder._UtilsBillgBlockReason AS _UtilsBillgBlockReason,
  UtilsBillingOrder._UtilsBillgUnblockReason AS _UtilsBillgUnblockReason,
  UtilsBillingOrder._MeterReadingUnit AS _MeterReadingUnit,
  UtilsBillingOrder._UtilitiesRateCategory AS _UtilitiesRateCategory,
  UtilsBillingOrder._UtilsBillingClass AS _UtilsBillingClass,
  UtilsBillingOrder._UtilitiesPortion._UtilitiesBdgtBillgCyc AS _UtilitiesBdgtBillgCyc,
  UtilsBillingOrder._UtilsContrSpcfcBdgtBillgCyc AS _UtilsContrSpcfcBdgtBillgCyc,
  UtilsBillingOrder._UtilsAccountDetnCode AS _UtilsAccountDetnCode,
  UtilsBillingOrder._UtilsBillgOutsortingGroup AS _UtilsBillgOutsortingGroup,
  UtilsBillingOrder._UtilsBillgOrdChkBfrBilling AS _UtilsBillgOrdChkBfrBilling,
  UtilsBillingOrder._UtilitiesInstallation._UtilitiesPremise AS _UtilitiesPremise,
  _CalendarDate._CalendarMonth AS _CalendarMonth,
  _CalendarDate._CalendarYear AS _CalendarYear
FROM I_UtilsBillingOrder AS UtilsBillingOrder
LEFT OUTER JOIN C_UtilitiesBillingOrderHistory AS _UtilitiesBillingOrderHistory ON UtilitiesContract = _UtilitiesBillingOrderHistory.UtilitiesContract  -- association [0..*]
LEFT OUTER JOIN C_UtilsBillingDocumentHistory AS _UtilsBillingDocumentHistory ON UtilitiesContract = _UtilsBillingDocumentHistory.UtilitiesContract  -- association [0..*]
LEFT OUTER JOIN C_MeterReadingHistoryDetails AS _MeterReadingHistoryDetails ON UtilitiesInstallation = _MeterReadingHistoryDetails.UtilitiesInstallation  -- association [0..*]
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON ScheduledUtilitiesBillingDate = _CalendarDate.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON ContractAccount = _ContractAccountPartner.ContractAccount AND BusinessPartner = _ContractAccountPartner.BusinessPartner  -- association [1..1]
;