Ehhss_Sampling_Campaign_Result
Results of a sampling campaign
Ehhss_Sampling_Campaign_Result is a CDS View that provides data about "Results of a sampling campaign" in SAP S/4HANA. It reads from 2 data sources (Ehhss_Sampling_Agent_Name, Ehhss_Sampling_Campaign_Allres) and exposes 33 fields with key field Sampling_Campaign_key. Part of development package EHHSS_BO_SPLCP_IMPL.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| Ehhss_Sampling_Agent_Name | Ehhss_Sampling_Agent_Name | inner |
| Ehhss_Sampling_Campaign_Allres | Ehhss_Sampling_Campaign_Allres | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| p_def_langu | lang | |
| p_sy_langu | lang |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | EHHSSV_SPLCP_RES | view | |
| EndUserText.label | Results of a sampling campaign | 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 (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Sampling_Campaign_key | Ehhss_Sampling_Campaign_Allres | Sampling_Campaign_key | UUID |
| job_key_ref | Ehhss_Sampling_Campaign_Allres | job_key_ref | Job | |
| cma_key_ref | Ehhss_Sampling_Campaign_Allres | cma_key_ref | Chemical Agent | |
| op_status | Ehhss_Sampling_Campaign_Allres | op_status | Oper. Status | |
| is_reviewed | Ehhss_Sampling_Campaign_Allres | is_reviewed | Reviewed? | |
| subject_name | Ehhss_Sampling_Agent_Name | subject_name | ||
| ListedSubstanceCndnCode | Ehhss_Sampling_Agent_Name | ListedSubstanceCndnCode | ||
| subjecttype | Ehhss_Sampling_Campaign_Allres | subjecttype | Subject Type | |
| value | Ehhss_Sampling_Campaign_Allres | value | Value from table | |
| valueunit | Ehhss_Sampling_Campaign_Allres | valueunit | Unit of Measurement | |
| valuetype | Ehhss_Sampling_Campaign_Allres | valuetype | Value Type | |
| status | Ehhss_Sampling_Campaign_Allres | status | Workflow Status | |
| blank_type | Ehhss_Sampling_Campaign_Allres | blank_type | Blank Sample Type | |
| start_date | Ehhss_Sampling_Campaign_Allres | start_date | Valn start date | |
| start_time | Ehhss_Sampling_Campaign_Allres | start_time | Time Stamp | |
| end_date | Ehhss_Sampling_Campaign_Allres | end_date | Valn End date | |
| end_time | Ehhss_Sampling_Campaign_Allres | end_time | Time Stamp | |
| equipment_id | Ehhss_Sampling_Campaign_Allres | equipment_id | Equipment ID | |
| sample_id | Ehhss_Sampling_Campaign_Allres | sample_id | ||
| media_id | Ehhss_Sampling_Campaign_Allres | media_id | Medium ID | |
| ppe_worn | Ehhss_Sampling_Campaign_Allres | ppe_worn | Control Key | |
| validity | Ehhss_Sampling_Campaign_Allres | validity | Validity (Hr) | |
| method_ref | Ehhss_Sampling_Campaign_Allres | method_ref | Sampling Method | |
| sample_count | Ehhss_Sampling_Campaign_Allres | sample_count | Number of Samples | |
| technician | Ehhss_Sampling_Campaign_Allres | technician | Responsible | |
| planned_date | Ehhss_Sampling_Campaign_Allres | planned_date | Planned Date | |
| loc_name | Ehhss_Sampling_Campaign_Allres | loc_name | Zone name | |
| plant_id | Ehhss_Sampling_Campaign_Allres | plant_id | Plant ID | |
| cost_center | Ehhss_Sampling_Campaign_Allres | cost_center | Posted Cost Center | |
| company_code | Ehhss_Sampling_Campaign_Allres | company_code | Company Code | |
| buss_area | Ehhss_Sampling_Campaign_Allres | buss_area | Business Area | |
| country | Ehhss_Sampling_Campaign_Allres | country | Venue: Ctry/Reg | |
| region | Ehhss_Sampling_Campaign_Allres | region | Venue Region |
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_Sampling_Campaign_Result.
-- 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_SPLCP_RES
-- Parameters: p_def_langu : lang, p_sy_langu : lang
CREATE VIEW Ehhss_Sampling_Campaign_Result AS
SELECT
Ehhss_Sampling_Campaign_Allres.Sampling_Campaign_key AS Sampling_Campaign_key,
Ehhss_Sampling_Campaign_Allres.job_key_ref AS job_key_ref,
Ehhss_Sampling_Campaign_Allres.cma_key_ref AS cma_key_ref,
Ehhss_Sampling_Campaign_Allres.op_status AS op_status,
Ehhss_Sampling_Campaign_Allres.is_reviewed AS is_reviewed,
Ehhss_Sampling_Agent_Name.subject_name AS subject_name,
Ehhss_Sampling_Agent_Name.ListedSubstanceCndnCode AS ListedSubstanceCndnCode,
Ehhss_Sampling_Campaign_Allres.subjecttype AS subjecttype,
Ehhss_Sampling_Campaign_Allres.value AS value,
Ehhss_Sampling_Campaign_Allres.valueunit AS valueunit,
Ehhss_Sampling_Campaign_Allres.valuetype AS valuetype,
Ehhss_Sampling_Campaign_Allres.status AS status,
Ehhss_Sampling_Campaign_Allres.blank_type AS blank_type,
Ehhss_Sampling_Campaign_Allres.start_date AS start_date,
Ehhss_Sampling_Campaign_Allres.start_time AS start_time,
Ehhss_Sampling_Campaign_Allres.end_date AS end_date,
Ehhss_Sampling_Campaign_Allres.end_time AS end_time,
Ehhss_Sampling_Campaign_Allres.equipment_id AS equipment_id,
Ehhss_Sampling_Campaign_Allres.sample_id AS sample_id,
Ehhss_Sampling_Campaign_Allres.media_id AS media_id,
Ehhss_Sampling_Campaign_Allres.ppe_worn AS ppe_worn,
Ehhss_Sampling_Campaign_Allres.validity AS validity,
Ehhss_Sampling_Campaign_Allres.method_ref AS method_ref,
Ehhss_Sampling_Campaign_Allres.sample_count AS sample_count,
Ehhss_Sampling_Campaign_Allres.technician AS technician,
Ehhss_Sampling_Campaign_Allres.planned_date AS planned_date,
Ehhss_Sampling_Campaign_Allres.loc_name AS loc_name,
Ehhss_Sampling_Campaign_Allres.plant_id AS plant_id,
Ehhss_Sampling_Campaign_Allres.cost_center AS cost_center,
Ehhss_Sampling_Campaign_Allres.company_code AS company_code,
Ehhss_Sampling_Campaign_Allres.buss_area AS buss_area,
Ehhss_Sampling_Campaign_Allres.country AS country,
Ehhss_Sampling_Campaign_Allres.region AS region
FROM Ehhss_Sampling_Campaign_Allres
INNER JOIN Ehhss_Sampling_Agent_Name 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