C_OutsrtdUtilsBillingDoc
Outsorted Utilities Billing Document
C_OutsrtdUtilsBillingDoc is a Consumption CDS View that provides data about "Outsorted Utilities Billing Document" in SAP S/4HANA. It reads from 2 data sources (I_UtilitiesBillingDocumentTP, I_UtilitiesInstallationHist) and exposes 45 fields with key field UtilitiesBillingDocument. It has 4 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_UtilitiesBillingDocumentTP | UtilitiesBillingDocument | from |
| I_UtilitiesInstallationHist | UtilitiesInstallationHist | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ContractAccountHeader | _ContractAccountHeader | $projection.ContractAccount = _ContractAccountHeader.ContractAccount |
| [1..1] | I_UtilsBillgDocOutsrtgDataCntr | _UtilsBillgDocOutsrtgDataCntr | $projection.UtilitiesBillingDocument = _UtilsBillgDocOutsrtgDataCntr.UtilitiesBillingDocument |
| [1..1] | I_UtilsBillgDocOutsrtgDataRsn | _UtilsBillgDocOutsrtgDataRsn | $projection.UtilitiesBillingDocument = _UtilsBillgDocOutsrtgDataRsn.UtilitiesBillingDocument |
| [1..1] | I_CalendarDate | _CalendarDate | $projection.ScheduledUtilitiesBillingDate = _CalendarDate.CalendarDate |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Outsorted Utilities Billing Document | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | CECOUTSRTDBDOC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UtilitiesBillingDocument | I_UtilitiesBillingDocumentTP | UtilitiesBillingDocument | |
| UtilitiesContract | I_UtilitiesBillingDocumentTP | UtilitiesContract | ||
| ScheduledUtilitiesBillingDate | I_UtilitiesBillingDocumentTP | ScheduledUtilitiesBillingDate | ||
| UtilitiesPortion | I_UtilitiesBillingDocumentTP | UtilitiesPortion | ||
| ScheduledMeterReadingDate | I_UtilitiesBillingDocumentTP | ScheduledMeterReadingDate | ||
| UtilitiesBillingReason | I_UtilitiesBillingDocumentTP | UtilitiesBillingReason | ||
| BusinessPartner | I_UtilitiesBillingDocumentTP | BusinessPartner | Issuing Authority | |
| ContractAccount | I_UtilitiesBillingDocumentTP | ContractAccount | Contract Acct | |
| UtilsBillgBlockReason | ||||
| UtilsBillgUnblockReason | ||||
| CompanyCode | ||||
| Division | ||||
| UtilitiesInstallation | I_UtilitiesBillingDocumentTP | UtilitiesInstallation | Installation | |
| MeterReadingUnit | I_UtilitiesBillingDocumentTP | MeterReadingUnit | MR unit | |
| UtilitiesRateCategory | I_UtilitiesInstallationHist | UtilitiesRateCategory | Rate category | |
| UtilitiesBillingClass | I_UtilitiesInstallationHist | UtilitiesBillingClass | Billing Class | |
| UtilsPortionScheduleRecordDate | I_UtilitiesBillingDocumentTP | UtilsBillgPeriodEndDate | ||
| UtilitiesAccountDetnCode | ||||
| UtilitiesBillingCheck | ||||
| UtilsBillgOutsortingReason | ||||
| UtilsBillgOutsortingReasonName | ||||
| CalendarMonth | ||||
| CalendarMonthName | ||||
| CalendarYear | ||||
| AuthorizationGroup | I_UtilitiesBillingDocumentTP | AuthorizationGroup | AuthorizGroup | |
| NmbrOfOutsortedUtilsBillgDocs | ||||
| _UtilitiesContract | I_UtilitiesBillingDocumentTP | _UtilitiesContract | ||
| _UtilitiesPortion | I_UtilitiesBillingDocumentTP | _UtilitiesPortion | ||
| _UtilitiesBillingReason | I_UtilitiesBillingDocumentTP | _UtilitiesBillingReason | ||
| _BusinessPartner | I_UtilitiesBillingDocumentTP | _BusinessPartner | ||
| _UtilsBillgBlockReason | ||||
| _UtilsBillgUnblockReason | ||||
| _CompanyCode | ||||
| _Division | ||||
| _MeterReadingUnit | I_UtilitiesBillingDocumentTP | _MeterReadingUnit | ||
| _UtilitiesRateCategory | I_UtilitiesInstallationHist | _UtilitiesRateCategory | ||
| _UtilsBillingClass | I_UtilitiesInstallationHist | _UtilsBillingClass | ||
| _UtilsAccountDetnCode | ||||
| _ContractAccountHeader | _ContractAccountHeader | |||
| _UtilsBillgDocOutsrtgDataCntr | _UtilsBillgDocOutsrtgDataCntr | |||
| _UtilsBillgDocOutsrtgDataRsn | _UtilsBillgDocOutsrtgDataRsn | |||
| _UtilsBillgOutsortingGroup | ||||
| _CalendarDate | _CalendarDate | |||
| _CalendarMonth | _CalendarDate | _CalendarMonth | ||
| _CalendarYear | _CalendarDate | _CalendarYear |
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_OutsrtdUtilsBillingDoc.
-- 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: CECOUTSRTDBDOC
CREATE VIEW C_OutsrtdUtilsBillingDoc AS
SELECT
UtilitiesBillingDocument.UtilitiesBillingDocument AS UtilitiesBillingDocument,
UtilitiesBillingDocument.UtilitiesContract AS UtilitiesContract,
UtilitiesBillingDocument.ScheduledUtilitiesBillingDate AS ScheduledUtilitiesBillingDate,
UtilitiesBillingDocument.UtilitiesPortion AS UtilitiesPortion,
UtilitiesBillingDocument.ScheduledMeterReadingDate AS ScheduledMeterReadingDate,
UtilitiesBillingDocument.UtilitiesBillingReason AS UtilitiesBillingReason,
UtilitiesBillingDocument.BusinessPartner AS BusinessPartner,
UtilitiesBillingDocument.ContractAccount AS ContractAccount,
UtilitiesBillingDocument._UtilitiesContract.UtilsBillgBlockReason AS UtilsBillgBlockReason,
UtilitiesBillingDocument._UtilitiesContract.UtilsBillgUnblockReason AS UtilsBillgUnblockReason,
UtilitiesBillingDocument._UtilitiesContract.CompanyCode AS CompanyCode,
UtilitiesBillingDocument._UtilitiesContract.UtilitiesDivision AS Division,
UtilitiesBillingDocument.UtilitiesInstallation AS UtilitiesInstallation,
UtilitiesBillingDocument.MeterReadingUnit AS MeterReadingUnit,
UtilitiesInstallationHist.UtilitiesRateCategory AS UtilitiesRateCategory,
UtilitiesInstallationHist.UtilitiesBillingClass AS UtilitiesBillingClass,
UtilitiesBillingDocument.UtilsBillgPeriodEndDate AS UtilsPortionScheduleRecordDate,
UtilitiesBillingDocument._UtilitiesContract.UtilitiesAccountDetnCode AS UtilitiesAccountDetnCode,
_UtilsBillgDocOutsrtgDataCntr._UtilsBillgDocOutsrtgChkGrp.UtilitiesBillingCheck AS UtilitiesBillingCheck,
_UtilsBillgDocOutsrtgDataRsn._UtilsBillgDocOutsrtgData.UtilsBillgOutsortingReason AS UtilsBillgOutsortingReason,
_UtilsBillgDocOutsrtgDataRsn._UtilsBillgDocOutsrtgData._UtilsBillgOutsortingGroup._Text[1: Language=$session.system_language].UtilsBillgOutsortingReasonName AS UtilsBillgOutsortingReasonName,
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,
UtilitiesBillingDocument.AuthorizationGroup AS AuthorizationGroup,
cast(1 as e_outsrtdbillgdoc_nmbr_vdm) AS NmbrOfOutsortedUtilsBillgDocs,
UtilitiesBillingDocument._UtilitiesContract AS _UtilitiesContract,
UtilitiesBillingDocument._UtilitiesPortion AS _UtilitiesPortion,
UtilitiesBillingDocument._UtilitiesBillingReason AS _UtilitiesBillingReason,
UtilitiesBillingDocument._BusinessPartner AS _BusinessPartner,
UtilitiesBillingDocument._UtilitiesContract._UtilsBillgBlockReason AS _UtilsBillgBlockReason,
UtilitiesBillingDocument._UtilitiesContract._UtilsBillgUnblockReason AS _UtilsBillgUnblockReason,
UtilitiesBillingDocument._UtilitiesContract._CompanyCode AS _CompanyCode,
UtilitiesBillingDocument._UtilitiesContract._Division AS _Division,
UtilitiesBillingDocument._MeterReadingUnit AS _MeterReadingUnit,
UtilitiesInstallationHist._UtilitiesRateCategory AS _UtilitiesRateCategory,
UtilitiesInstallationHist._UtilsBillingClass AS _UtilsBillingClass,
UtilitiesBillingDocument._UtilitiesContract._UtilsAccountDetnCode AS _UtilsAccountDetnCode,
_UtilsBillgDocOutsrtgDataRsn._UtilsBillgDocOutsrtgData._UtilsBillgOutsortingGroup AS _UtilsBillgOutsortingGroup,
_CalendarDate._CalendarMonth AS _CalendarMonth,
_CalendarDate._CalendarYear AS _CalendarYear
FROM I_UtilitiesBillingDocumentTP AS UtilitiesBillingDocument
INNER JOIN I_UtilitiesInstallationHist AS UtilitiesInstallationHist ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ContractAccountHeader AS _ContractAccountHeader ON ContractAccount = _ContractAccountHeader.ContractAccount -- association [1..1]
LEFT OUTER JOIN I_UtilsBillgDocOutsrtgDataCntr AS _UtilsBillgDocOutsrtgDataCntr ON UtilitiesBillingDocument = _UtilsBillgDocOutsrtgDataCntr.UtilitiesBillingDocument -- association [1..1]
LEFT OUTER JOIN I_UtilsBillgDocOutsrtgDataRsn AS _UtilsBillgDocOutsrtgDataRsn ON UtilitiesBillingDocument = _UtilsBillgDocOutsrtgDataRsn.UtilitiesBillingDocument -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON ScheduledUtilitiesBillingDate = _CalendarDate.CalendarDate -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA