P_MaterialShortageProfileUser
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)
| Source | Alias | Join Type |
|---|---|---|
| I_User | I_User | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SDMAreaOfRespyProfile | _profileuser | _profileuser.UserName = $session.user |
| [0..1] | I_SDMAreaOfRespyProfile | _profileuserStar | _profileuserStar.UserName = '*' |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA