Ehfnd_Loc_Curr_Rev_All

DDL: EHFND_LOC_CURR_REV_ALL SQL: EHFNDV_LOC_CREVA Type: view

Current revision of a locations

Ehfnd_Loc_Curr_Rev_All is a CDS View that provides data about "Current revision of a locations" in SAP S/4HANA. It reads from 3 data sources (ehfndd_loc_rev, ehfndd_loc_text, ehfndd_loc_text) and exposes 12 fields.

Data Sources (3)

SourceAliasJoin Type
ehfndd_loc_rev ehfndd_loc_rev from
ehfndd_loc_text EHFNDD_LOC_TEXT_def_langu left_outer
ehfndd_loc_text EHFNDD_LOC_TEXT_sy_langu left_outer

Parameters (3)

NameTypeDefault
p_def_langu lang
p_sy_datlo syst_datlo
p_sy_langu lang

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName EHFNDV_LOC_CREVA view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Current revision of a locations view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view

Fields (12)

KeyFieldSource TableSource FieldDescription
rev_key ehfndd_loc_rev db_key UUID
loc_key ehfndd_loc_rev parent_key UUID
status ehfndd_loc_rev status Workflow Status
auth_group ehfndd_loc_rev auth_group AuthorizGroup
plant_id ehfndd_loc_rev plant_id Plant ID
cost_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
type ehfndd_loc_rev type Worklist Type
country ehfndd_loc_rev country Venue: Ctry/Reg
region ehfndd_loc_rev region Venue Region
name

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 Ehfnd_Loc_Curr_Rev_All.
-- 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: EHFNDV_LOC_CREVA
-- Parameters: p_def_langu : lang, p_sy_datlo : syst_datlo, p_sy_langu : lang

CREATE VIEW Ehfnd_Loc_Curr_Rev_All AS
SELECT
  ehfndd_loc_rev.db_key AS rev_key,
  ehfndd_loc_rev.parent_key AS loc_key,
  ehfndd_loc_rev.status AS status,
  ehfndd_loc_rev.auth_group AS auth_group,
  ehfndd_loc_rev.plant_id AS plant_id,
  ehfndd_loc_rev.cost_center AS cost_center,
  ehfndd_loc_rev.company_code AS company_code,
  ehfndd_loc_rev.buss_area AS buss_area,
  ehfndd_loc_rev.type AS type,
  ehfndd_loc_rev.country AS country,
  ehfndd_loc_rev.region AS region,
  COALESCE( EHFNDD_LOC_TEXT_sy_langu.text, EHFNDD_LOC_TEXT_def_langu.text ) AS name
FROM ehfndd_loc_rev
LEFT OUTER JOIN ehfndd_loc_text AS EHFNDD_LOC_TEXT_sy_langu ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ehfndd_loc_text AS EHFNDD_LOC_TEXT_def_langu ON /* join condition not captured in parsed metadata */
;