SAIS_USER_VALID_STATE
SUIM | Get User Valid Status
SAIS_USER_VALID_STATE is a CDS View that provides data about "SUIM | Get User Valid Status" in SAP S/4HANA. It reads from 1 data source (usr02) and exposes 8 fields with key field bname. Part of development package SAIS_TOOLS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| usr02 | usr02 | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | SUIM | Get User Valid Status | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'SUIM | Get User Valid Status'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
//----------------------------------------------------------------------
// SAIS helper view to get status flags regarding user validity status
// - used in SAIS_JOB_USER and more
// - ask the owner before reuse
//----------------------------------------------------------------------
define view entity SAIS_USER_VALID_STATE
as select from usr02 as usr02
{
key usr02.bname,
usr02.class,
usr02.ustyp,
usr02.uflag,
usr02.gltgv,
usr02.gltgb,
usr02.security_policy,
case when ( usr02.gltgv is initial and usr02.gltgb is initial ) then 'X'
when ( usr02.gltgv is initial and usr02.gltgb >= $session.system_date ) then 'X'
when ( usr02.gltgv <= $session.system_date and usr02.gltgb is initial ) then 'X'
when ( usr02.gltgv <= $session.system_date and usr02.gltgb >= $session.system_date ) then 'X'
else ''
end as time_intv_valid,
case usr02.uflag
when 0 then 'X'
when 128 then 'X' // Locked Due To Incorrect Logons (Limited Term) ... SSO is possible
else ''
end as user_unlocked,
case when usr02.zbvmaster = 'X' then ' ' // zbvmaster user ... no logon possible
when usr02.ustyp = 'L' then ' ' // reference user ... no logon possible
when usr02.ustyp = 'B' then 'T' // system user ... background user (technical)
when usr02.ustyp = 'C' then 'T' // communication user ... technical purpose
else 'X' // local dialog and service user ... can be used in applications
end as user_dia_type
}
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