I_UtilsInvcgDocBillingData

DDL: I_UTILSINVCGDOCBILLINGDATA SQL: IEINVDOCBILLDATA Type: view COMPOSITE

Billing Data for Invoicing Document

I_UtilsInvcgDocBillingData is a Composite CDS View that provides data about "Billing Data for Invoicing Document" in SAP S/4HANA. It reads from 9 data sources and exposes 55 fields. It has 3 associations to related views.

Data Sources (9)

SourceAliasJoin Type
I_ActvUtilsCAInvcgLockRsn ActvUtilsCAInvcgLockRsn left_outer
I_ActvUtilsContrInvcgLockRsn ActvUtilsContrInvcgLockRsn left_outer
I_ContractAccountPartner ContractAccountPartner inner
I_UtilitiesBillingDocument UtilitiesBillingDocument inner
I_UtilitiesContract UtilitiesContract inner
I_UtilitiesInstallationHist UtilitiesInstallationHist inner
I_UtilitiesInvoicingDocument UtilitiesInvoicingDocument from
I_UtilsBillgDocInvcgHistory UtilsBillgDocInvcgHistory inner
I_UtilsInvcgDocOutsrtgDataCntr UtilsInvcgDocOutsrtgDataCntr left_outer

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_UtilitiesPortionScheduleRecd _UtilitiesPortionScheduleRecd $projection.UtilitiesPortion = _UtilitiesPortionScheduleRecd.UtilitiesPortion and $projection.UtilsPortionScheduleRecordDate = _UtilitiesPortionScheduleRecd.UtilsPortionScheduleRecordDate
[0..1] I_UtilsBillgDocIntAndExtPoD _UtilsBillgDocIntAndExtPoD $projection.UtilitiesBillingDocument = _UtilsBillgDocIntAndExtPoD.UtilitiesBillingDocument
[0..1] I_CAInvcgLockReason _CAInvcgLockReason $projection.CABusinessLockReason = _CAInvcgLockReason.CAInvcgLockReason

Annotations (8)

NameValueLevelField
EndUserText.label Billing Data for Invoicing Document view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName IEINVDOCBILLDATA 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 (55)

KeyFieldSource TableSource FieldDescription
UtilitiesInvoicingDocument I_UtilitiesInvoicingDocument UtilitiesInvoicingDocument Reopen
UtilitiesBillingDocument I_UtilsBillgDocInvcgHistory UtilitiesBillingDocument
BusinessPartner I_UtilitiesInvoicingDocument BusinessPartner Issuing Authority
ContractAccount I_UtilitiesInvoicingDocument ContractAccount Contract Acct
UtilitiesContract I_UtilitiesBillingDocument UtilitiesContract PoD service
CompanyCode I_UtilitiesContract CompanyCode Receiver Company Code
Division I_UtilitiesContract UtilitiesDivision Insurance LOB
UtilitiesInstallation I_UtilitiesContract UtilitiesInstallation Installation
UtilitiesMoveInDate I_UtilitiesContract UtilitiesMoveInDate
UtilitiesMoveOutDate I_UtilitiesContract UtilitiesMoveOutDate
UtilitiesAccountDetnCode I_UtilitiesContract UtilitiesAccountDetnCode Act Determ. ID
UtilsContrJointInvcType I_UtilitiesContract UtilsContrJointInvcType
UtilsBillgOutsortingReason I_UtilitiesContract UtilsBillgOutsortingReason
UtilitiesBillingReason I_UtilitiesBillingDocument UtilitiesBillingReason Billing Trans.
UtilsBillgPeriodStartDate I_UtilitiesBillingDocument UtilsBillgPeriodStartDate
UtilsBillgPeriodEndDate I_UtilitiesBillingDocument UtilsBillgPeriodEndDate
UtilitiesPortion I_UtilitiesBillingDocument UtilitiesPortion Portion
ScheduledUtilitiesBillingDate I_UtilitiesBillingDocument ScheduledUtilitiesBillingDate
UtilsPortionScheduleRecordDate I_UtilitiesBillingDocument UtilsPortionScheduleRecordDate EBP frm portion
MeterReadingUnit I_UtilitiesBillingDocument MeterReadingUnit MR unit
ScheduledMeterReadingDate I_UtilitiesBillingDocument ScheduledMeterReadingDate
UtilsBillgDocCreationDate I_UtilitiesBillingDocument UtilsBillgDocCreationDate
UtilitiesAccountClass I_UtilitiesBillingDocument UtilitiesAccountClass Account Class
UtilsContrSpcfcBdgtBillgCycle I_UtilitiesContract UtilsContrSpcfcBdgtBillgCycle
UtilsDefaultBdgtBillgCycle
UtilitiesRateCategory I_UtilitiesInstallationHist UtilitiesRateCategory Rate category
UtilitiesBillingClass I_UtilitiesInstallationHist UtilitiesBillingClass Billing Class
AltvContractAcctForCollvBills
UtilsInvcgDocIsNotReleased I_UtilitiesInvoicingDocument UtilsInvcgDocIsNotReleased Not released
UtilsInvcgDocIsSimulated I_UtilitiesInvoicingDocument UtilsInvcgDocIsSimulated Simulation Doc.
UtilsInvcgDocIsReversed I_UtilitiesInvoicingDocument UtilsInvcgDocIsReversed Reversed
AuthorizationGroup I_UtilitiesInvoicingDocument AuthorizationGroup AuthorizGroup
NmbrOfUtilsInvoicingDocuments
NumberOfUtilitiesContracts
_UtilitiesBillingDocument I_UtilsBillgDocInvcgHistory _UtilitiesBillingDocument
_BusinessPartner I_UtilitiesInvoicingDocument _BusinessPartner
_UtilitiesContract I_UtilitiesBillingDocument _UtilitiesContract
_CompanyCode I_UtilitiesContract _CompanyCode
_Division I_UtilitiesContract _Division
_UtilitiesInstallation I_UtilitiesContract _UtilitiesInstallation
_UtilsAccountDetnCode I_UtilitiesContract _UtilsAccountDetnCode
_InvcUtilsContractsJointly I_UtilitiesContract _InvcUtilsContractsJointly
_UtilsBillgOutsortingGroup I_UtilitiesContract _UtilsBillgOutsortingGroup
_UtilitiesBillingReason I_UtilitiesBillingDocument _UtilitiesBillingReason
_UtilitiesPortion I_UtilitiesBillingDocument _UtilitiesPortion
_MeterReadingUnit I_UtilitiesBillingDocument _MeterReadingUnit
_UtilsAccountClass I_UtilitiesBillingDocument _UtilsAccountClass
_UtilsContrSpcfcBdgtBillgCyc I_UtilitiesContract _UtilsContrSpcfcBdgtBillgCyc
_UtilitiesBdgtBillgCyc
_UtilitiesRateCategory I_UtilitiesInstallationHist _UtilitiesRateCategory
_UtilsBillingClass I_UtilitiesInstallationHist _UtilsBillingClass
_AltvContrAcc I_ContractAccountPartner _AltvContrAcc
_UtilitiesPortionScheduleRecd _UtilitiesPortionScheduleRecd
_UtilsBillgDocIntAndExtPoD _UtilsBillgDocIntAndExtPoD
_CAInvcgLockReason _CAInvcgLockReason

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_UtilsInvcgDocBillingData.
-- 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: IEINVDOCBILLDATA

CREATE VIEW I_UtilsInvcgDocBillingData AS
SELECT
  UtilitiesInvoicingDocument.UtilitiesInvoicingDocument AS UtilitiesInvoicingDocument,
  UtilsBillgDocInvcgHistory.UtilitiesBillingDocument AS UtilitiesBillingDocument,
  UtilitiesInvoicingDocument.BusinessPartner AS BusinessPartner,
  UtilitiesInvoicingDocument.ContractAccount AS ContractAccount,
  UtilitiesBillingDocument.UtilitiesContract AS UtilitiesContract,
  UtilitiesContract.CompanyCode AS CompanyCode,
  UtilitiesContract.UtilitiesDivision AS Division,
  UtilitiesContract.UtilitiesInstallation AS UtilitiesInstallation,
  UtilitiesContract.UtilitiesMoveInDate AS UtilitiesMoveInDate,
  UtilitiesContract.UtilitiesMoveOutDate AS UtilitiesMoveOutDate,
  UtilitiesContract.UtilitiesAccountDetnCode AS UtilitiesAccountDetnCode,
  UtilitiesContract.UtilsContrJointInvcType AS UtilsContrJointInvcType,
  UtilitiesContract.UtilsBillgOutsortingReason AS UtilsBillgOutsortingReason,
  UtilitiesBillingDocument.UtilitiesBillingReason AS UtilitiesBillingReason,
  UtilitiesBillingDocument.UtilsBillgPeriodStartDate AS UtilsBillgPeriodStartDate,
  UtilitiesBillingDocument.UtilsBillgPeriodEndDate AS UtilsBillgPeriodEndDate,
  UtilitiesBillingDocument.UtilitiesPortion AS UtilitiesPortion,
  UtilitiesBillingDocument.ScheduledUtilitiesBillingDate AS ScheduledUtilitiesBillingDate,
  UtilitiesBillingDocument.UtilsPortionScheduleRecordDate AS UtilsPortionScheduleRecordDate,
  UtilitiesBillingDocument.MeterReadingUnit AS MeterReadingUnit,
  UtilitiesBillingDocument.ScheduledMeterReadingDate AS ScheduledMeterReadingDate,
  UtilitiesBillingDocument.UtilsBillgDocCreationDate AS UtilsBillgDocCreationDate,
  UtilitiesBillingDocument.UtilitiesAccountClass AS UtilitiesAccountClass,
  UtilitiesContract.UtilsContrSpcfcBdgtBillgCycle AS UtilsContrSpcfcBdgtBillgCycle,
  UtilitiesBillingDocument._UtilitiesPortion.UtilsDefaultBdgtBillgCycle AS UtilsDefaultBdgtBillgCycle,
  UtilitiesInstallationHist.UtilitiesRateCategory AS UtilitiesRateCategory,
  UtilitiesInstallationHist.UtilitiesBillingClass AS UtilitiesBillingClass,
  cast(ContractAccountPartner.AltvContractAcctForCollvBills as e_collvbillacct_vdm preserving type) AS AltvContractAcctForCollvBills,
  UtilitiesInvoicingDocument.UtilsInvcgDocIsNotReleased AS UtilsInvcgDocIsNotReleased,
  UtilitiesInvoicingDocument.UtilsInvcgDocIsSimulated AS UtilsInvcgDocIsSimulated,
  UtilitiesInvoicingDocument.UtilsInvcgDocIsReversed AS UtilsInvcgDocIsReversed,
  UtilitiesInvoicingDocument.AuthorizationGroup AS AuthorizationGroup,
  cast(1 as e_invoicingdoc_vdm) AS NmbrOfUtilsInvoicingDocuments,
  cast(1 as e_nrofutilscontr_vdm) AS NumberOfUtilitiesContracts,
  UtilsBillgDocInvcgHistory._UtilitiesBillingDocument AS _UtilitiesBillingDocument,
  UtilitiesInvoicingDocument._BusinessPartner AS _BusinessPartner,
  UtilitiesBillingDocument._UtilitiesContract AS _UtilitiesContract,
  UtilitiesContract._CompanyCode AS _CompanyCode,
  UtilitiesContract._Division AS _Division,
  UtilitiesContract._UtilitiesInstallation AS _UtilitiesInstallation,
  UtilitiesContract._UtilsAccountDetnCode AS _UtilsAccountDetnCode,
  UtilitiesContract._InvcUtilsContractsJointly AS _InvcUtilsContractsJointly,
  UtilitiesContract._UtilsBillgOutsortingGroup AS _UtilsBillgOutsortingGroup,
  UtilitiesBillingDocument._UtilitiesBillingReason AS _UtilitiesBillingReason,
  UtilitiesBillingDocument._UtilitiesPortion AS _UtilitiesPortion,
  UtilitiesBillingDocument._MeterReadingUnit AS _MeterReadingUnit,
  UtilitiesBillingDocument._UtilsAccountClass AS _UtilsAccountClass,
  UtilitiesContract._UtilsContrSpcfcBdgtBillgCyc AS _UtilsContrSpcfcBdgtBillgCyc,
  UtilitiesBillingDocument._UtilitiesPortion._UtilitiesBdgtBillgCyc AS _UtilitiesBdgtBillgCyc,
  UtilitiesInstallationHist._UtilitiesRateCategory AS _UtilitiesRateCategory,
  UtilitiesInstallationHist._UtilsBillingClass AS _UtilsBillingClass,
  ContractAccountPartner._AltvContrAcc AS _AltvContrAcc
FROM I_UtilitiesInvoicingDocument AS UtilitiesInvoicingDocument
INNER JOIN I_UtilsBillgDocInvcgHistory AS UtilsBillgDocInvcgHistory ON /* join condition not captured in parsed metadata */
INNER JOIN I_UtilitiesBillingDocument AS UtilitiesBillingDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_UtilitiesContract AS UtilitiesContract 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_ContractAccountPartner AS ContractAccountPartner ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ActvUtilsCAInvcgLockRsn AS ActvUtilsCAInvcgLockRsn ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ActvUtilsContrInvcgLockRsn AS ActvUtilsContrInvcgLockRsn ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UtilsInvcgDocOutsrtgDataCntr AS UtilsInvcgDocOutsrtgDataCntr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UtilitiesPortionScheduleRecd AS _UtilitiesPortionScheduleRecd ON UtilitiesPortion = _UtilitiesPortionScheduleRecd.UtilitiesPortion AND UtilsPortionScheduleRecordDate = _UtilitiesPortionScheduleRecd.UtilsPortionScheduleRecordDate  -- association [0..1]
LEFT OUTER JOIN I_UtilsBillgDocIntAndExtPoD AS _UtilsBillgDocIntAndExtPoD ON UtilitiesBillingDocument = _UtilsBillgDocIntAndExtPoD.UtilitiesBillingDocument  -- association [0..1]
LEFT OUTER JOIN I_CAInvcgLockReason AS _CAInvcgLockReason ON CABusinessLockReason = _CAInvcgLockReason.CAInvcgLockReason  -- association [0..1]
;