Ehenv_Scen_Usra_Loc_Curr_Rev
Active Scenarios per user and location current revision
Ehenv_Scen_Usra_Loc_Curr_Rev is a CDS View that provides data about "Active Scenarios per user and location current revision" in SAP S/4HANA. It reads from 3 data sources (Ehfnd_Loc_Curr_Rev_All, ehfndd_loc_resp, ehenvd_scen_root) and exposes 12 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| Ehfnd_Loc_Curr_Rev_All | Ehfnd_Loc_Curr_Rev_All | from |
| ehfndd_loc_resp | Ehfndd_loc_resp_uname | inner |
| ehenvd_scen_root | Scen_root | left_outer |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| p_date | abap.dats | |
| p_role | abap.char(30) | |
| p_uname | abap.char(13) | |
| p_def_langu | lang | |
| p_sy_langu | lang |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | EHENVV_SCEN_USCR | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Active Scenarios per user and location current revision | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | revision | rev_key | UUID | |
| loc_key | revision | loc_key | RL Key | |
| type | revision | type | Worklist Type | |
| status | revision | status | Workflow Status | |
| auth_group | revision | auth_group | AuthorizGroup | |
| plant_id | revision | plant_id | Plant ID | |
| const_center | revision | cost_center | Posted Cost Center | |
| company_code | revision | company_code | Company Code | |
| buss_area | revision | 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_Usra_Loc_Curr_Rev.
-- 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_USCR
-- Parameters: p_date : abap.dats, p_role : abap.char(30), p_uname : abap.char(13), p_def_langu : lang, p_sy_langu : lang
CREATE VIEW Ehenv_Scen_Usra_Loc_Curr_Rev AS
SELECT
Scen_root.db_key AS scen_key,
Scen_root.valid_from AS valid_from,
Scen_root.valid_to AS valid_to,
revision.rev_key AS rev_key,
revision.loc_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 Ehfnd_Loc_Curr_Rev_All
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 */
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA