Ehenv_Scen_Usr_Active
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)
| Source | Alias | Join Type |
|---|---|---|
| ehfndd_loc_resp | Ehfndd_loc_resp_uname | inner |
| ehfndd_loc_rev | revision | from |
| ehenvd_scen_root | Scen_root | left_outer |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| p_date | abap.dats | |
| p_role | abap.char(30) | |
| p_uname | abap.char(13) |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
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