Ehenv_Scen_Usr_Active

DDL: EHENV_SCEN_USR_ACTIVE SQL: EHENVV_SCEN_USRA Type: view

Active Scenarios for a User

Ehenv_Scen_Usr_Active is a CDS View that provides data about "Active Scenarios for a User" in SAP S/4HANA. It reads from 3 data sources (ehfndd_loc_resp, ehfndd_loc_rev, ehenvd_scen_root) and exposes 12 fields.

Data Sources (3)

SourceAliasJoin Type
ehfndd_loc_resp Ehfndd_loc_resp_uname inner
ehfndd_loc_rev revision from
ehenvd_scen_root Scen_root left_outer

Parameters (3)

NameTypeDefault
p_date abap.dats
p_role abap.char(30)
p_uname abap.char(13)

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName EHENVV_SCEN_USRA view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Active Scenarios for a User view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view

Fields (12)

KeyFieldSource TableSource FieldDescription
scen_key ehenvd_scen_root db_key
valid_from ehenvd_scen_root valid_from
valid_to ehenvd_scen_root valid_to
rev_key ehfndd_loc_rev db_key
loc_key ehfndd_loc_rev parent_key
type ehfndd_loc_rev type
status ehfndd_loc_rev status
auth_group ehfndd_loc_rev auth_group
plant_id ehfndd_loc_rev plant_id
const_center ehfndd_loc_rev cost_center
company_code ehfndd_loc_rev company_code
buss_area ehfndd_loc_rev buss_area
@ClientHandling.algorithm: #SESSION_VARIABLE //Inserted by VDM CDS Suite Plugin

@AbapCatalog.sqlViewName: 'EHENVV_SCEN_USRA'
//Commented by VDM CDS Suite Plugin:@ClientDependent: true

@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Active Scenarios for a User'

//CDS View Performance annotation

@ObjectModel.usageType:{ serviceQuality: #B,        // < 2 msec

                         sizeCategory:  #S,         // < 1.000

                         dataClass: #MASTER }

define view Ehenv_Scen_Usr_Active
  with parameters p_date:abap.dats,
                  p_role:abap.char(30),
                  p_uname:abap.char(13)
as select from ehfndd_loc_rev as revision
  inner join ehfndd_loc_resp as Ehfndd_loc_resp_uname
  on Ehfndd_loc_resp_uname.person_id = $parameters.p_uname and
     Ehfndd_loc_resp_uname.role = $parameters.p_role and
     Ehfndd_loc_resp_uname.parent_key = revision.db_key 
  left outer join ehenvd_scen_root as Scen_root
  on Scen_root.loc_root_key_ref = revision.parent_key and
     Scen_root.valid_from <= $parameters.p_date and
     Scen_root.status = '01'
{
  Scen_root.db_key as scen_key,
  Scen_root.valid_from as valid_from,
  Scen_root.valid_to as valid_to,
  revision.db_key as rev_key,
  revision.parent_key as loc_key,
  revision.type as type,
  revision.status as status,
  revision.auth_group as auth_group,
  revision.plant_id as plant_id,
  revision.cost_center as const_center,
  revision.company_code as company_code,
  revision.buss_area as buss_area
}

where revision.split_date <= $parameters.p_date    
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"EHENVD_SCEN_ROOT",
"EHFNDD_LOC_RESP",
"EHFNDD_LOC_REV"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/