SUIM_USER_VALID_STATE

DDL: SUIM_USER_VALID_STATE Type: view_entity

SUIM | Get User Valid Status

SUIM_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 4 fields with key field bname.

Data Sources (1)

SourceAliasJoin Type
usr02 usr02 from

Annotations (6)

NameValueLevelField
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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY bname usr02 bname User name
class usr02 class User Group
system_datethenXelseendastime_intv_valid
ustypCthenTelseXendasuser_dia_type

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 SUIM_USER_VALID_STATE.
-- 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 SUIM_USER_VALID_STATE AS
SELECT
  usr02.bname AS bname,
  usr02.class AS class,
  case when ( usr02.gltgv <= $session.system_date and usr02.gltgb >= $session.system_date ) then 'X' else '' end as time_intv_valid AS system_datethenXelseendastime_intv_valid,
  case when usr02.zbvmaster = 'X' then ' ' when usr02.ustyp = 'L' then ' ' when usr02.ustyp = 'B' then 'T' when usr02.ustyp = 'C' then 'T' else 'X' end as user_dia_type AS ustypCthenTelseXendasuser_dia_type
FROM usr02
;