I_UtilsProdRateCat

DDL: I_UTILSPRODRATECAT SQL: IUILPRODRATEC Type: view COMPOSITE

Rate Category for Utilities Product

I_UtilsProdRateCat is a Composite CDS View that provides data about "Rate Category for Utilities Product" in SAP S/4HANA. It reads from 3 data sources (I_ClfnCharacteristic, I_UtilsCommonFields, I_Product) and exposes 8 fields with key fields CharcInternalID, UtilitiesProduct. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_ClfnCharacteristic _C inner
I_UtilsCommonFields _Comm inner
I_Product _P inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_UtilitiesRateCategory _RateCategory $projection.UtilitiesRateCategory = _RateCategory.UtilitiesRateCategory
[0..1] I_UtilsBillingClassesT _BillingClassText _RateCategory.UtilitiesBillingClass = _BillingClassText.UtilitiesBillingClass and _BillingClassText.Language = $session.system_language

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IUILPRODRATEC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Rate Category for Utilities Product view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CharcInternalID CharacteristicsValue CharcInternalID
KEY UtilitiesProduct CharacteristicsValue ClfnObjectID
Characteristic I_ClfnCharacteristic Characteristic
UtilitiesRateCategory CharacteristicsValue CharcValue
ProductGroup I_Product ProductGroup
_RateCategory _RateCategory
UtilitiesBillingClass _RateCategory UtilitiesBillingClass
_BillingClassText _BillingClassText
@AbapCatalog.sqlViewName: 'IUILPRODRATEC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Rate Category for Utilities Product'
define view I_UtilsProdRateCat
  as select distinct from I_ClfnObjectCharcValue as CharacteristicsValue
    inner join            I_ClfnCharacteristic   as _C    on _C.CharcInternalID = CharacteristicsValue.CharcInternalID
    inner join            I_Product              as _P    on _P.Product = CharacteristicsValue.ClfnObjectID
    inner join            I_UtilsCommonFields    as _Comm on _Comm.UtilsProductGroup          = _P.ProductGroup
                                                          or _Comm.UtilsReferenceProductGroup = _P.ProductGroup
  association [0..1] to I_UtilitiesRateCategory as _RateCategory     on  $projection.UtilitiesRateCategory = _RateCategory.UtilitiesRateCategory
  association [0..1] to I_UtilsBillingClassesT  as _BillingClassText on  _RateCategory.UtilitiesBillingClass = _BillingClassText.UtilitiesBillingClass
                                                                     and _BillingClassText.Language          = $session.system_language

{
  key CharacteristicsValue.CharcInternalID,
  key CharacteristicsValue.ClfnObjectID as UtilitiesProduct,
      _C.Characteristic,
      //      cast(CharacteristicsValue.CharcValue as tariftyp) as UtilitiesRateCategory,

      CharacteristicsValue.CharcValue   as UtilitiesRateCategory,
      _P.ProductGroup,
      _RateCategory,
      _RateCategory.UtilitiesBillingClass,
      //      _BillingClassText.UtilitiesBillingClassName,

      _BillingClassText
}
where
  _C.Characteristic = _Comm.RateCatCharacteristic
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CLFNCHARACTERISTIC",
"I_CLFNOBJECTCHARCVALUE",
"I_PRODUCT",
"I_UTILITIESRATECATEGORY",
"I_UTILSCOMMONFIELDS"
],
"ASSOCIATED":
[
"I_UTILITIESRATECATEGORY",
"I_UTILSBILLINGCLASSEST"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/