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 UUID
valid_from ehenvd_scen_root valid_from Validity Start Time
valid_to ehenvd_scen_root valid_to Validity End Time
rev_key ehfndd_loc_rev db_key UUID
loc_key ehfndd_loc_rev parent_key UUID
type ehfndd_loc_rev type Worklist Type
status ehfndd_loc_rev status Workflow Status
auth_group ehfndd_loc_rev auth_group AuthorizGroup
plant_id ehfndd_loc_rev plant_id Plant ID
const_center ehfndd_loc_rev cost_center Posted Cost Center
company_code ehfndd_loc_rev company_code Company Code
buss_area ehfndd_loc_rev buss_area Business Area

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 Ehenv_Scen_Usr_Active.
-- 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.
-- SQL view name: EHENVV_SCEN_USRA
-- Parameters: p_date : abap.dats, p_role : abap.char(30), p_uname : abap.char(13)

CREATE VIEW Ehenv_Scen_Usr_Active AS
SELECT
  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
FROM ehfndd_loc_rev AS revision
INNER JOIN ehfndd_loc_resp AS Ehfndd_loc_resp_uname ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ehenvd_scen_root AS Scen_root ON /* join condition not captured in parsed metadata */
;