Ehhss_Samples_At_Location

DDL: EHHSS_SAMPLES_AT_LOCATION SQL: EHHSSV_SMPL4LOC Type: view Package: EHHSS_BO_SPLCP_IMPL

Sample Values for a Location

Ehhss_Samples_At_Location is a CDS View that provides data about "Sample Values for a Location" in SAP S/4HANA. It reads from 2 data sources (Ehfnd_Lhr_Locations, Ehhss_Sampling_Campaign_Result) and exposes 35 fields. Part of development package EHHSS_BO_SPLCP_IMPL.

Data Sources (2)

SourceAliasJoin Type
Ehfnd_Lhr_Locations Ehfnd_Lhr_Locations inner
Ehhss_Sampling_Campaign_Result Ehhss_Sampling_Campaign_Result from

Parameters (3)

NameTypeDefault
p_def_langu lang
p_sy_datlo syst_datlo
p_sy_langu lang

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName EHHSSV_SMPL4LOC view
EndUserText.label Sample Values for a Location view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (35)

KeyFieldSource TableSource FieldDescription
Sampling_Campaign_key Ehhss_Sampling_Campaign_Result Sampling_Campaign_key
job_key_ref Ehhss_Sampling_Campaign_Result job_key_ref Job
cma_key_ref Ehhss_Sampling_Campaign_Result cma_key_ref Chemical Agent
op_status Ehhss_Sampling_Campaign_Result op_status Oper. Status
subject_name Ehhss_Sampling_Campaign_Result subject_name
ListedSubstanceCndnCode Ehhss_Sampling_Campaign_Result ListedSubstanceCndnCode
subjecttype Ehhss_Sampling_Campaign_Result subjecttype Subject Type
value Ehhss_Sampling_Campaign_Result value Value from table
valueunit Ehhss_Sampling_Campaign_Result valueunit Unit of Measurement
valuetype Ehhss_Sampling_Campaign_Result valuetype Value Type
status Ehhss_Sampling_Campaign_Result status Workflow Status
blank_type Ehhss_Sampling_Campaign_Result blank_type Blank Sample Type
start_date Ehhss_Sampling_Campaign_Result start_date Valn start date
start_time Ehhss_Sampling_Campaign_Result start_time Time Stamp
end_date Ehhss_Sampling_Campaign_Result end_date Valn End date
end_time Ehhss_Sampling_Campaign_Result end_time Time Stamp
equipment_id Ehhss_Sampling_Campaign_Result equipment_id Equipment ID
sample_id Ehhss_Sampling_Campaign_Result sample_id
media_id Ehhss_Sampling_Campaign_Result media_id Medium ID
ppe_worn Ehhss_Sampling_Campaign_Result ppe_worn Control Key
validity Ehhss_Sampling_Campaign_Result validity Validity (Hr)
method_ref Ehhss_Sampling_Campaign_Result method_ref Sampling Method
sample_count Ehhss_Sampling_Campaign_Result sample_count Number of Samples
technician Ehhss_Sampling_Campaign_Result technician Responsible
planned_date Ehhss_Sampling_Campaign_Result planned_date Planned Date
job_name Ehhss_Job_Name name Zone name
plant_id Ehhss_Sampling_Campaign_Result plant_id Plant ID
cost_center Ehhss_Sampling_Campaign_Result cost_center Posted Cost Center
company_code Ehhss_Sampling_Campaign_Result company_code Company Code
buss_area Ehhss_Sampling_Campaign_Result buss_area Business Area
country Ehhss_Sampling_Campaign_Result country Venue: Ctry/Reg
region Ehhss_Sampling_Campaign_Result region Venue Region
method_text Ehfnd_SamplingMethod_Name name Zone name
media_text Ehfnd_Samplingmethod_Media name Zone name
ppe_title Ehfnd_Control_Name name Zone 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 Ehhss_Samples_At_Location.
-- 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: EHHSSV_SMPL4LOC
-- Parameters: p_def_langu : lang, p_sy_datlo : syst_datlo, p_sy_langu : lang

CREATE VIEW Ehhss_Samples_At_Location AS
SELECT
  Ehhss_Sampling_Campaign_Result.Sampling_Campaign_key AS Sampling_Campaign_key,
  Ehhss_Sampling_Campaign_Result.job_key_ref AS job_key_ref,
  Ehhss_Sampling_Campaign_Result.cma_key_ref AS cma_key_ref,
  Ehhss_Sampling_Campaign_Result.op_status AS op_status,
  Ehhss_Sampling_Campaign_Result.subject_name AS subject_name,
  Ehhss_Sampling_Campaign_Result.ListedSubstanceCndnCode AS ListedSubstanceCndnCode,
  Ehhss_Sampling_Campaign_Result.subjecttype AS subjecttype,
  Ehhss_Sampling_Campaign_Result.value AS value,
  Ehhss_Sampling_Campaign_Result.valueunit AS valueunit,
  Ehhss_Sampling_Campaign_Result.valuetype AS valuetype,
  Ehhss_Sampling_Campaign_Result.status AS status,
  Ehhss_Sampling_Campaign_Result.blank_type AS blank_type,
  Ehhss_Sampling_Campaign_Result.start_date AS start_date,
  Ehhss_Sampling_Campaign_Result.start_time AS start_time,
  Ehhss_Sampling_Campaign_Result.end_date AS end_date,
  Ehhss_Sampling_Campaign_Result.end_time AS end_time,
  Ehhss_Sampling_Campaign_Result.equipment_id AS equipment_id,
  Ehhss_Sampling_Campaign_Result.sample_id AS sample_id,
  Ehhss_Sampling_Campaign_Result.media_id AS media_id,
  Ehhss_Sampling_Campaign_Result.ppe_worn AS ppe_worn,
  Ehhss_Sampling_Campaign_Result.validity AS validity,
  Ehhss_Sampling_Campaign_Result.method_ref AS method_ref,
  Ehhss_Sampling_Campaign_Result.sample_count AS sample_count,
  Ehhss_Sampling_Campaign_Result.technician AS technician,
  Ehhss_Sampling_Campaign_Result.planned_date AS planned_date,
  Ehhss_Job_Name.name AS job_name,
  Ehhss_Sampling_Campaign_Result.plant_id AS plant_id,
  Ehhss_Sampling_Campaign_Result.cost_center AS cost_center,
  Ehhss_Sampling_Campaign_Result.company_code AS company_code,
  Ehhss_Sampling_Campaign_Result.buss_area AS buss_area,
  Ehhss_Sampling_Campaign_Result.country AS country,
  Ehhss_Sampling_Campaign_Result.region AS region,
  Ehfnd_SamplingMethod_Name.name AS method_text,
  Ehfnd_Samplingmethod_Media.name AS media_text,
  Ehfnd_Control_Name.name AS ppe_title
FROM Ehhss_Sampling_Campaign_Result
INNER JOIN Ehfnd_Lhr_Locations ON /* join condition not captured in parsed metadata */
;