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_UtilsContrToBeBlldInvcdAnlys.
-- 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: CECONTRTBBILINV
CREATE VIEW C_UtilsContrToBeBlldInvcdAnlys AS
SELECT
UtilsContrToBeBlldInvcdAnlys.UtilitiesContract AS UtilitiesContract,
UtilsContrToBeBlldInvcdAnlys.ScheduledUtilitiesBillingDate AS ScheduledUtilitiesBillingDate,
UtilsContrToBeBlldInvcdAnlys.UtilitiesPortion AS UtilitiesPortion,
UtilsContrToBeBlldInvcdAnlys.ScheduledMeterReadingDate AS ScheduledMeterReadingDate,
UtilsContrToBeBlldInvcdAnlys._UtilitiesPortion.UtilitiesPortionName AS UtilitiesPortionName,
UtilsContrToBeBlldInvcdAnlys.BusinessPartner AS BusinessPartner,
UtilsContrToBeBlldInvcdAnlys._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
UtilsContrToBeBlldInvcdAnlys.ContractAccount AS ContractAccount,
UtilsContrToBeBlldInvcdAnlys._ContractAccountHeader.ContractAccountName AS ContractAccountName,
UtilsContrToBeBlldInvcdAnlys.UtilsBillgBlockReason AS UtilsBillgBlockReason,
UtilsContrToBeBlldInvcdAnlys._UtilsBillgBlockReason._Text[1: Language = $session.system_language].UtilsBillgBlockReasonName AS UtilsBillgBlockReasonName,
UtilsContrToBeBlldInvcdAnlys.UtilsBillgUnblockReason AS UtilsBillgUnblockReason,
UtilsContrToBeBlldInvcdAnlys._UtilsBillgUnblockReason._Text[1: Language = $session.system_language].UtilsBillgUnblockReasonName AS UtilsBillgUnblockReasonName,
UtilsContrToBeBlldInvcdAnlys.CompanyCode AS CompanyCode,
UtilsContrToBeBlldInvcdAnlys._CompanyCode.CompanyCodeName AS CompanyCodeName,
UtilsContrToBeBlldInvcdAnlys.Division AS Division,
UtilsContrToBeBlldInvcdAnlys._Division._Text[1: Language = $session.system_language].DivisionName AS DivisionName,
UtilsContrToBeBlldInvcdAnlys.UtilitiesInstallation AS UtilitiesInstallation,
UtilsContrToBeBlldInvcdAnlys.UtilitiesAccountDetnCode AS UtilitiesAccountDetnCode,
UtilsContrToBeBlldInvcdAnlys._UtilsAccountDetnCode._Text[1: Language = $session.system_language].UtilitiesAccountDetnCodeName AS UtilitiesAccountDetnCodeName,
UtilsContrToBeBlldInvcdAnlys.MeterReadingUnit AS MeterReadingUnit,
UtilsContrToBeBlldInvcdAnlys._MeterReadingUnit.MeterReadingUnitName AS MeterReadingUnitName,
UtilsContrToBeBlldInvcdAnlys.UtilitiesMoveInDate AS UtilitiesMoveInDate,
UtilsContrToBeBlldInvcdAnlys.UtilitiesMoveOutDate AS UtilitiesMoveOutDate,
UtilsContrToBeBlldInvcdAnlys.UtilitiesRateCategory AS UtilitiesRateCategory,
UtilsContrToBeBlldInvcdAnlys._UtilitiesRateCategory._UtilitiesRateCategoryText[1: Language = $session.system_language].UtilitiesRateCategoryName AS UtilitiesRateCategoryName,
UtilsContrToBeBlldInvcdAnlys.UtilitiesBillingClass AS UtilitiesBillingClass,
UtilsContrToBeBlldInvcdAnlys._UtilsBillingClass._UtilsBillingClassText[1: Language = $session.system_language].UtilitiesBillingClassName AS UtilitiesBillingClassName,
UtilsContrToBeBlldInvcdAnlys.AltvContractAcctForCollvBills AS AltvContractAcctForCollvBills,
UtilsContrToBeBlldInvcdAnlys._AltvContrAcc.ContractAccountName AS AltvContrAcctForCollvBillsName,
UtilsContrToBeBlldInvcdAnlys.CABusinessLockReason AS CABusinessLockReason,
UtilsContrToBeBlldInvcdAnlys._CAInvcgLockReason._CAInvcgLockReasonText[1: Language = $session.system_language].CAInvcgLockReasonName AS CAInvcgLockReasonName,
UtilsContrToBeBlldInvcdAnlys.UtilsContrToBeBlldType AS UtilsContrToBeBlldType,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeBlldType._Text[1: Language = $session.system_language].UtilsContrToBeBlldTypeName AS UtilsContrToBeBlldTypeName,
UtilsContrToBeBlldInvcdAnlys.UtilsContrToBeBlldDetsType AS UtilsContrToBeBlldDetsType,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeBlldDetsType._Text[1: Language = $session.system_language].UtilsContrToBeBlldDetsTypeName AS UtilsContrToBeBlldDetsTypeName,
UtilsContrToBeBlldInvcdAnlys.UtilsContrToBeInvcdPrgrs AS UtilsContrToBeInvcdPrgrs,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeInvcdPrgrs._Text[1: Language = $session.system_language].UtilsContrToBeInvcdPrgrsTxt AS UtilsContrToBeInvcdPrgrsTxt,
UtilsContrToBeBlldInvcdAnlys.UtilsContrToBeInvcdPrgrsSts AS UtilsContrToBeInvcdPrgrsSts,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeInvcdPrgrsSts._Text[1: Language = $session.system_language].UtilsContrToBeInvcdPrgrsStsTxt AS UtilsContrToBeInvcdPrgrsStsTxt,
UtilsContrToBeBlldInvcdAnlys._UtilsInstIntAndExtPtOfDeliv.UtilsExternalPointOfDelivery AS UtilsExternalPointOfDelivery,
UtilsContrToBeBlldInvcdAnlys.AuthorizationGroup AS AuthorizationGroup,
UtilsContrToBeBlldInvcdAnlys.NmbrOfUtilsContrToBeInvoiced AS NmbrOfUtilsContrToBeInvoiced,
UtilsContrToBeBlldInvcdAnlys._UtilitiesPortion AS _UtilitiesPortion,
UtilsContrToBeBlldInvcdAnlys._BusinessPartner AS _BusinessPartner,
UtilsContrToBeBlldInvcdAnlys._UtilsBillgBlockReason AS _UtilsBillgBlockReason,
UtilsContrToBeBlldInvcdAnlys._UtilsBillgUnblockReason AS _UtilsBillgUnblockReason,
UtilsContrToBeBlldInvcdAnlys._CompanyCode AS _CompanyCode,
UtilsContrToBeBlldInvcdAnlys._Division AS _Division,
UtilsContrToBeBlldInvcdAnlys._UtilitiesInstallation AS _UtilitiesInstallation,
UtilsContrToBeBlldInvcdAnlys._UtilsAccountDetnCode AS _UtilsAccountDetnCode,
UtilsContrToBeBlldInvcdAnlys._MeterReadingUnit AS _MeterReadingUnit,
UtilsContrToBeBlldInvcdAnlys._UtilitiesRateCategory AS _UtilitiesRateCategory,
UtilsContrToBeBlldInvcdAnlys._UtilsBillingClass AS _UtilsBillingClass,
UtilsContrToBeBlldInvcdAnlys._AltvContrAcc AS _AltvContrAcc,
UtilsContrToBeBlldInvcdAnlys._CAInvcgLockReason AS _CAInvcgLockReason,
UtilsContrToBeBlldInvcdAnlys._ContractAccountHeader AS _ContractAccountHeader,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeBlldType AS _UtilsContrToBeBlldType,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeBlldDetsType AS _UtilsContrToBeBlldDetsType,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeInvcdPrgrs AS _UtilsContrToBeInvcdPrgrs,
UtilsContrToBeBlldInvcdAnlys._UtilsContrToBeInvcdPrgrsSts AS _UtilsContrToBeInvcdPrgrsSts,
UtilsContrToBeBlldInvcdAnlys._UtilsInstIntAndExtPtOfDeliv AS _UtilsInstIntAndExtPtOfDeliv
FROM I_UtilsContrToBeBlldInvcdAnlys AS UtilsContrToBeBlldInvcdAnlys
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON ContractAccount = _ContractAccountPartner.ContractAccount AND BusinessPartner = _ContractAccountPartner.BusinessPartner -- association [1..1]
;