P_MaterialShortageProfileUser

DDL: P_MATERIALSHORTAGEPROFILEUSER SQL: PMATSHRTGPRFLUSR Type: view CONSUMPTION

P_MaterialShortageProfileUser is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_User) and exposes 1 field with key field UserID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_User I_User from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_SDMAreaOfRespyProfile _profileuser _profileuser.UserName = $session.user
[0..1] I_SDMAreaOfRespyProfile _profileuserStar _profileuserStar.UserName = '*'

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMATSHRTGPRFLUSR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (1)

KeyFieldSource TableSource FieldDescription
KEY UserID UserID
@AbapCatalog.sqlViewName: 'PMATSHRTGPRFLUSR'
@AbapCatalog.compiler.compareFilter: true
@AccessControl: {authorizationCheck: #NOT_REQUIRED,
                personalData.blocking: #NOT_REQUIRED
}
@ObjectModel: {
    usageType: {serviceQuality: #A, sizeCategory: #L, dataClass: #MIXED }
}
@VDM.private: true
@VDM.viewType: #CONSUMPTION
define view P_MaterialShortageProfileUser as select  from I_User
association [0..1] to I_SDMAreaOfRespyProfile as _profileuser on _profileuser.UserName = $session.user
association [0..1] to I_SDMAreaOfRespyProfile as _profileuserStar on _profileuserStar.UserName = '*'
{
    key UserID,
   case
   when _profileuser.MaterialShortageProfile is null and _profileuserStar.MaterialShortageProfile is not null
   then _profileuserStar.MaterialShortageProfile

   when _profileuser.MaterialShortageProfile is not null
   then _profileuser.MaterialShortageProfile

   else
   'SAP000000001' end  as MaterialShortageProfile
}
where UserID = $session.user
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SDMAREAOFRESPYPROFILE",
"I_USER"
],
"ASSOCIATED":
[
"I_SDMAREAOFRESPYPROFILE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/