SAP Function CBIH_MP30_MJ_FIND_BY_MPWA - EHS: Search for Measurements via Work Areas for Measurement Project

Parameter Reference Type Length Default Optional Text
I_DATERANGE RCGDATERANGE u 16 X Period for Historical Search
I_MPWAREC CIHPW_MPWAAPI_WA_TYPE 0 Selection Criteria
I_SEARCHMODE ESESEARCHMODE C 1 ESP1_SEARCHMODE-WEAK X Search Mode
I_VALDAT RCGUADM-VALTO D 8 SY-DATUM X Key Date for Validity

Parameter Reference Type Length Text
E_RECORDS_FOUND SYST-TABIX I 4 No. of entries found

Parameter Reference Length Optional Text
E_KEY_TAB CIHMJ_KEYTAB_TAB_TYPE 0 Record Number of Measurement Jobs Found
I_MP_KEYTAB CIHMP_KEYTAB_TAB_TYPE 0 X Record Key for Measurement Project
I_RECNTWAH_TAB CIHWA_WAFAPI_KEY_TAB_TYPE 0 X Restriction via Work Area Assignment
I_RESTRICTION_TAB CIHPW_KEYTAB_TAB_TYPE 0 X Restriction via Record Numbers

Exception Text
INTERNAL_ERROR Internal Program/System Error

Functionality
This function module is part of theApplication ProgrammingInterface (API) of the Environment, Health and Safety (EH&S)component.
You can use this function module to determine measurement recordnumbers. The search is run using the parameter entered by the user forthe work area in the measurement project.

Notes
The search for a discrete "valid from" or "valid to" date within theheader record I_MPREC is not supported. These values are used forselection in conjunction with the parameter I_VALDAT or I_DATERANGE.
The function module does not support a search via the change number.Before calling the function, the "valid from" date for the change numbermust be set in the parameter I_VALDAT.

Description
Only data that is valid on this date is read.