I_UtilitiesContractTP

DDL: I_UTILITIESCONTRACTTP Type: view_entity TRANSACTIONAL

Utilities Contract

I_UtilitiesContractTP is a Transactional CDS View that provides data about "Utilities Contract" in SAP S/4HANA. It reads from 3 data sources (I_ContractAccountPartner, I_UtilitiesContract, I_UtilitiesInstallationHist) and exposes 80 fields with key fields UtilitiesContract, UtilitiesInstallation, BusinessPartner, UtilsInstHistValidityEndDate, UtilsInternalPointOfDelivery. It has 9 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_ContractAccountPartner ContractAccountPartner inner
I_UtilitiesContract UtilitiesContract from
I_UtilitiesInstallationHist UtilitiesInstallationHist inner

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_ContractAccountHeader _ContractAccountHeader $projection.ContractAccount = _ContractAccountHeader.ContractAccount
[0..1] I_CABusinessLock _CABusinessLock $projection.UtilitiesContract = _CABusinessLock.CABusinessLockObject and _CABusinessLock.CABusinessLockValidFrom <= $projection.UtilitiesMoveInDate and _CABusinessLock.CABusinessLockValidTo >= $projection.UtilitiesMoveInDate and _CABusinessLock.CABusinessLockObjectCategory = '41'
[0..*] I_UtilsInstIntAndExtPtOfDeliv _UtilsInstIntAndExtPtOfDeliv $projection.UtilitiesInstallation = _UtilsInstIntAndExtPtOfDeliv.UtilitiesInstallation and _UtilsInstIntAndExtPtOfDeliv.UtilsPoDAllocValidityEndDate = '99991231' and _UtilsInstIntAndExtPtOfDeliv.UtilsPoDAllocValidityEndTime = '235959'
[0..1] I_LatestUtilsBillgOrdForContr _LatestUtilsBillgOrdForContr $projection.UtilitiesContract = _LatestUtilsBillgOrdForContr.UtilitiesContract
[0..1] I_LtstUtilsContrBillgBlkRsnChg _LtstUtilsContrBillgBlkRsnChg $projection.UtilitiesContract = _LtstUtilsContrBillgBlkRsnChg.ChangeDocObject
[0..1] I_LtstUtilsBillgDateForContr _LtstUtilsBillgDateForContr $projection.UtilitiesContract = _LtstUtilsBillgDateForContr.UtilitiesContract
[0..1] I_UtilitiesPortion _UtilitiesPortion $projection.utilitiesportion = _UtilitiesPortion.UtilitiesPortion
[0..1] I_UtilitiesPortion _AlternativeUtilitiesPortion $projection.AlternativeUtilitiesPortion = _AlternativeUtilitiesPortion.UtilitiesPortion
[0..1] I_UtilitiesPortion _LastUtilitiesPortion $projection.LastUtilitiesPortion = _LastUtilitiesPortion.UtilitiesPortion

Annotations (10)

NameValueLevelField
EndUserText.label Utilities Contract view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.modelCategory #BUSINESS_OBJECT view
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.personalData.blocking #REQUIRED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.sapObjectNodeType.name UtilitiesContract view

Fields (80)

KeyFieldSource TableSource FieldDescription
KEY UtilitiesContract I_UtilitiesContract UtilitiesContract PoD service
KEY UtilitiesInstallation I_UtilitiesContract UtilitiesInstallation Installation
KEY BusinessPartner I_ContractAccountPartner BusinessPartner Issuing Authority
KEY UtilsInstHistValidityEndDate I_UtilitiesInstallationHist UtilsInstHistValidityEndDate
KEY UtilsInternalPointOfDelivery _UtilsInstIntAndExtPtOfDeliv UtilsInternalPointOfDelivery
CompanyCode I_UtilitiesContract CompanyCode Receiver Company Code
UtilitiesDivision I_UtilitiesContract UtilitiesDivision Insurance LOB
AlternativeUtilitiesPortion I_UtilitiesContract AlternativeUtilitiesPortion Portion
UtilsContrIsBilledManually I_UtilitiesContract UtilsContrIsBilledManually
UtilsBillgBlockReason I_UtilitiesContract UtilsBillgBlockReason
UtilsBillgUnblockReason I_UtilitiesContract UtilsBillgUnblockReason
ContractAccount I_UtilitiesContract ContractAccount Contract Acct
UtilitiesMoveInDate I_UtilitiesContract UtilitiesMoveInDate
UtilitiesMoveOutDate I_UtilitiesContract UtilitiesMoveOutDate
UtilsContrIsFinallyBilled I_UtilitiesContract UtilsContrIsFinallyBilled BillRel.Termin.
UtilsPlantOrCompanyConsumption I_UtilitiesContract UtilsPlantOrCompanyConsumption Plant/company
UtilsContrJointInvcType I_UtilitiesContract UtilsContrJointInvcType
UtilitiesContractCanclnDate I_UtilitiesContract UtilitiesContractCanclnDate Canc. Date
UtilitiesContractRenewalDate I_UtilitiesContract UtilitiesContractRenewalDate Renewal date
CADunningProcedure I_UtilitiesContract CADunningProcedure Dunning Proc.
UtilitiesServiceProvider I_UtilitiesContract UtilitiesServiceProvider Serv. Provider
UtilsContractProcessingSts I_UtilitiesContract UtilsContractProcessingSts
AuthorizationGroup I_UtilitiesContract AuthorizationGroup AuthorizGroup
DeletionIndicator I_UtilitiesContract DeletionIndicator Deletion Ind.
UtilsOutsrtgCheckGrpForBillg I_UtilitiesContract UtilsOutsrtgCheckGrpForBillg Outsort.chk grp
UtilitiesContractDescription I_UtilitiesContract UtilitiesContractDescription Text contract
UtilitiesAccountDetnCode I_UtilitiesContract UtilitiesAccountDetnCode
UtilsContrSpcfcBdgtBillgCycle I_UtilitiesContract UtilsContrSpcfcBdgtBillgCycle
UtilsBillgOutsortingReason I_UtilitiesContract UtilsBillgOutsortingReason
UtilitiesPortion
UtilitiesBillingClass I_UtilitiesInstallationHist UtilitiesBillingClass Billing Class
MeterReadingUnit I_UtilitiesInstallationHist MeterReadingUnit MR unit
UtilitiesRateCategory I_UtilitiesInstallationHist UtilitiesRateCategory Rate category
ContractAccountCategory
CAApplicationArea
CAAlternativeInvoiceRecipient
CABPIsAccountHolder
BusinessPartnerName
LastUtilitiesPortion I_UtilitiesContract LastUtilitiesPortion Last Portion
CreatedByUser
UserDescription
CreationDate
UtilitiesBillingDocument
UtilsBillgPeriodEndDate _LtstUtilsBillgDateForContr UtilsBillgPeriodEndDate
UtilsBillgPeriodStartDate
UtilsBillgDocCreationDate
UtilsExternalPointOfDelivery _UtilsInstIntAndExtPtOfDeliv UtilsExternalPointOfDelivery
UtilitiesPremise
_Division I_UtilitiesContract _Division
_CompanyCode I_UtilitiesContract _CompanyCode
_UtilsBillgBlockReason I_UtilitiesContract _UtilsBillgBlockReason
_UtilsBillgUnblockReason I_UtilitiesContract _UtilsBillgUnblockReason
_UtilitiesPortion _UtilitiesPortion
_AlternativeUtilitiesPortion _AlternativeUtilitiesPortion
_UtilitiesInstallation I_UtilitiesContract _UtilitiesInstallation
_UtilsOutsrtgChkGrpBillg I_UtilitiesContract _UtilsOutsrtgChkGrpBillg
_UtilsContrSpcfcBdgtBillgCyc I_UtilitiesContract _UtilsContrSpcfcBdgtBillgCyc
_UtilsAccountDetnCode I_UtilitiesContract _UtilsAccountDetnCode
_UtilsPlantOrCompanyCnsmpn I_UtilitiesContract _UtilsPlantOrCompanyCnsmpn
_InvcUtilsContractsJointly I_UtilitiesContract _InvcUtilsContractsJointly
_CADunningProcedure I_UtilitiesContract _CADunningProcedure
_UtilsContrProcessingStatus I_UtilitiesContract _UtilsContrProcessingStatus
_UtilitiesServiceProvider I_UtilitiesContract _UtilitiesServiceProvider
_UtilsBillgOutsortingGroup I_UtilitiesContract _UtilsBillgOutsortingGroup
_ContractAccountHeader _ContractAccountHeader
_ApplArea
_CABusinessLock _CABusinessLock
_UtilsInstIntAndExtPtOfDeliv _UtilsInstIntAndExtPtOfDeliv
_UtilitiesPremise
_UtilitiesRateCategory I_UtilitiesInstallationHist _UtilitiesRateCategory
_UtilsBillingClass I_UtilitiesInstallationHist _UtilsBillingClass
_MeterReadingUnit I_UtilitiesInstallationHist _MeterReadingUnit
_BusinessPartner I_ContractAccountPartner _BusinessPartner
_ContractAccountCategory
_AltvInvoiceRecipient I_ContractAccountPartner _AltvInvoiceRecipient
_LatestUtilsBillgOrdForContr _LatestUtilsBillgOrdForContr
_LtstUtilsBillgDateForContr _LtstUtilsBillgDateForContr
_LtstUtilsContrBillgBlkRsnChg _LtstUtilsContrBillgBlkRsnChg
_User
_LastUtilitiesPortion _LastUtilitiesPortion

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_UtilitiesContractTP.
-- 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 I_UtilitiesContractTP AS
SELECT
  UtilitiesContract.UtilitiesContract AS UtilitiesContract,
  UtilitiesContract.UtilitiesInstallation AS UtilitiesInstallation,
  ContractAccountPartner.BusinessPartner AS BusinessPartner,
  UtilitiesInstallationHist.UtilsInstHistValidityEndDate AS UtilsInstHistValidityEndDate,
  _UtilsInstIntAndExtPtOfDeliv.UtilsInternalPointOfDelivery AS UtilsInternalPointOfDelivery,
  UtilitiesContract.CompanyCode AS CompanyCode,
  UtilitiesContract.UtilitiesDivision AS UtilitiesDivision,
  UtilitiesContract.AlternativeUtilitiesPortion AS AlternativeUtilitiesPortion,
  UtilitiesContract.UtilsContrIsBilledManually AS UtilsContrIsBilledManually,
  UtilitiesContract.UtilsBillgBlockReason AS UtilsBillgBlockReason,
  UtilitiesContract.UtilsBillgUnblockReason AS UtilsBillgUnblockReason,
  UtilitiesContract.ContractAccount AS ContractAccount,
  UtilitiesContract.UtilitiesMoveInDate AS UtilitiesMoveInDate,
  UtilitiesContract.UtilitiesMoveOutDate AS UtilitiesMoveOutDate,
  UtilitiesContract.UtilsContrIsFinallyBilled AS UtilsContrIsFinallyBilled,
  UtilitiesContract.UtilsPlantOrCompanyConsumption AS UtilsPlantOrCompanyConsumption,
  UtilitiesContract.UtilsContrJointInvcType AS UtilsContrJointInvcType,
  UtilitiesContract.UtilitiesContractCanclnDate AS UtilitiesContractCanclnDate,
  UtilitiesContract.UtilitiesContractRenewalDate AS UtilitiesContractRenewalDate,
  UtilitiesContract.CADunningProcedure AS CADunningProcedure,
  UtilitiesContract.UtilitiesServiceProvider AS UtilitiesServiceProvider,
  UtilitiesContract.UtilsContractProcessingSts AS UtilsContractProcessingSts,
  UtilitiesContract.AuthorizationGroup AS AuthorizationGroup,
  UtilitiesContract.DeletionIndicator AS DeletionIndicator,
  UtilitiesContract.UtilsOutsrtgCheckGrpForBillg AS UtilsOutsrtgCheckGrpForBillg,
  UtilitiesContract.UtilitiesContractDescription AS UtilitiesContractDescription,
  UtilitiesContract.UtilitiesAccountDetnCode AS UtilitiesAccountDetnCode,
  UtilitiesContract.UtilsContrSpcfcBdgtBillgCycle AS UtilsContrSpcfcBdgtBillgCycle,
  UtilitiesContract.UtilsBillgOutsortingReason AS UtilsBillgOutsortingReason,
  UtilitiesInstallationHist._MeterReadingUnit.UtilitiesPortion AS UtilitiesPortion,
  UtilitiesInstallationHist.UtilitiesBillingClass AS UtilitiesBillingClass,
  UtilitiesInstallationHist.MeterReadingUnit AS MeterReadingUnit,
  UtilitiesInstallationHist.UtilitiesRateCategory AS UtilitiesRateCategory,
  cast(ContractAccountPartner._ContrAcc.ContractAccountCategory as e_vktyp_vdm preserving type) AS ContractAccountCategory,
  ContractAccountPartner._ContrAcc.CAApplicationArea AS CAApplicationArea,
  cast(ContractAccountPartner.CAAlternativeInvoiceRecipient as e_altinvrec_vdm preserving type ) AS CAAlternativeInvoiceRecipient,
  ContractAccountPartner._RelshpOfBP.CABPIsAccountHolder AS CABPIsAccountHolder,
  ContractAccountPartner._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
  UtilitiesContract.LastUtilitiesPortion AS LastUtilitiesPortion,
  _LtstUtilsContrBillgBlkRsnChg._UtilsContrBillgBlkRsnChgs.CreatedByUser AS CreatedByUser,
  _LtstUtilsContrBillgBlkRsnChg._UtilsContrBillgBlkRsnChgs._User.UserDescription AS UserDescription,
  _LtstUtilsContrBillgBlkRsnChg._UtilsContrBillgBlkRsnChgs.CreationDate AS CreationDate,
  _LtstUtilsBillgDateForContr._UtilsBillgDocForContract.UtilitiesBillingDocument AS UtilitiesBillingDocument,
  _LtstUtilsBillgDateForContr.UtilsBillgPeriodEndDate AS UtilsBillgPeriodEndDate,
  _LtstUtilsBillgDateForContr._UtilsBillgDocForContract.UtilsBillgPeriodStartDate AS UtilsBillgPeriodStartDate,
  _LtstUtilsBillgDateForContr._UtilsBillgDocForContract.UtilsBillgDocCreationDate AS UtilsBillgDocCreationDate,
  _UtilsInstIntAndExtPtOfDeliv.UtilsExternalPointOfDelivery AS UtilsExternalPointOfDelivery,
  UtilitiesContract._UtilitiesInstallation.UtilitiesPremise AS UtilitiesPremise,
  UtilitiesContract._Division AS _Division,
  UtilitiesContract._CompanyCode AS _CompanyCode,
  UtilitiesContract._UtilsBillgBlockReason AS _UtilsBillgBlockReason,
  UtilitiesContract._UtilsBillgUnblockReason AS _UtilsBillgUnblockReason,
  UtilitiesContract._UtilitiesInstallation AS _UtilitiesInstallation,
  UtilitiesContract._UtilsOutsrtgChkGrpBillg AS _UtilsOutsrtgChkGrpBillg,
  UtilitiesContract._UtilsContrSpcfcBdgtBillgCyc AS _UtilsContrSpcfcBdgtBillgCyc,
  UtilitiesContract._UtilsAccountDetnCode AS _UtilsAccountDetnCode,
  UtilitiesContract._UtilsPlantOrCompanyCnsmpn AS _UtilsPlantOrCompanyCnsmpn,
  UtilitiesContract._InvcUtilsContractsJointly AS _InvcUtilsContractsJointly,
  UtilitiesContract._CADunningProcedure AS _CADunningProcedure,
  UtilitiesContract._UtilsContrProcessingStatus AS _UtilsContrProcessingStatus,
  UtilitiesContract._UtilitiesServiceProvider AS _UtilitiesServiceProvider,
  UtilitiesContract._UtilsBillgOutsortingGroup AS _UtilsBillgOutsortingGroup,
  ContractAccountPartner._ContrAcc._ApplArea AS _ApplArea,
  UtilitiesContract._UtilitiesInstallation._UtilitiesPremise AS _UtilitiesPremise,
  UtilitiesInstallationHist._UtilitiesRateCategory AS _UtilitiesRateCategory,
  UtilitiesInstallationHist._UtilsBillingClass AS _UtilsBillingClass,
  UtilitiesInstallationHist._MeterReadingUnit AS _MeterReadingUnit,
  ContractAccountPartner._BusinessPartner AS _BusinessPartner,
  ContractAccountPartner._ContrAcc._Category AS _ContractAccountCategory,
  ContractAccountPartner._AltvInvoiceRecipient AS _AltvInvoiceRecipient,
  _LtstUtilsContrBillgBlkRsnChg._UtilsContrBillgBlkRsnChgs._User AS _User
FROM I_UtilitiesContract AS UtilitiesContract
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_ContractAccountHeader AS _ContractAccountHeader ON ContractAccount = _ContractAccountHeader.ContractAccount  -- association [1..1]
LEFT OUTER JOIN I_CABusinessLock AS _CABusinessLock ON UtilitiesContract = _CABusinessLock.CABusinessLockObject AND _CABusinessLock.CABusinessLockValidFrom <= UtilitiesMoveInDate AND _CABusinessLock.CABusinessLockValidTo >= UtilitiesMoveInDate AND _CABusinessLock.CABusinessLockObjectCategory = '41'  -- association [0..1]
LEFT OUTER JOIN I_UtilsInstIntAndExtPtOfDeliv AS _UtilsInstIntAndExtPtOfDeliv ON UtilitiesInstallation = _UtilsInstIntAndExtPtOfDeliv.UtilitiesInstallation AND _UtilsInstIntAndExtPtOfDeliv.UtilsPoDAllocValidityEndDate = '99991231' AND _UtilsInstIntAndExtPtOfDeliv.UtilsPoDAllocValidityEndTime = '235959'  -- association [0..*]
LEFT OUTER JOIN I_LatestUtilsBillgOrdForContr AS _LatestUtilsBillgOrdForContr ON UtilitiesContract = _LatestUtilsBillgOrdForContr.UtilitiesContract  -- association [0..1]
LEFT OUTER JOIN I_LtstUtilsContrBillgBlkRsnChg AS _LtstUtilsContrBillgBlkRsnChg ON UtilitiesContract = _LtstUtilsContrBillgBlkRsnChg.ChangeDocObject  -- association [0..1]
LEFT OUTER JOIN I_LtstUtilsBillgDateForContr AS _LtstUtilsBillgDateForContr ON UtilitiesContract = _LtstUtilsBillgDateForContr.UtilitiesContract  -- association [0..1]
LEFT OUTER JOIN I_UtilitiesPortion AS _UtilitiesPortion ON utilitiesportion = _UtilitiesPortion.UtilitiesPortion  -- association [0..1]
LEFT OUTER JOIN I_UtilitiesPortion AS _AlternativeUtilitiesPortion ON AlternativeUtilitiesPortion = _AlternativeUtilitiesPortion.UtilitiesPortion  -- association [0..1]
LEFT OUTER JOIN I_UtilitiesPortion AS _LastUtilitiesPortion ON LastUtilitiesPortion = _LastUtilitiesPortion.UtilitiesPortion  -- association [0..1]
;