Fonction SAP CBIH_LB61_UE_STATUS_CHECK - EHS: User Exit: Checks for Status Change

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27
I_FLG_MJ_STATUS_CHECK ESP1_BOOLEAN 0
I_FLG_MPWA_STATUS_CHECK ESP1_BOOLEAN 0
I_FLG_MP_STATUS_CHECK ESP1_BOOLEAN 0
I_FLG_WITH_MESSAGE ESP1_BOOLEAN 0
I_MJ_IOREC CCIHS_MJIOT u 2416
I_MPWA_IOREC CCIHS_MPWAIOT u 413 Work Area
I_MP_IOREC CCIHS_MPIOT u 1113 Measurement Project Header
I_NEW_STATUS EHSBE_STATUS C 5 New Status

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: Error
E_FLG_STATUS_CHANGE ESP1_BOOLEAN 0 Indicator: Status Change Allowed
E_FLG_WARNING ESP1_BOOLEAN 0

Paramètre Reférence Long. Facultatif Description
I_DVLIST_IOTAB CCIHS_MPDVIOT 370 X Device List
I_MJ_IAVA_IOTAB CCIHS_IHVALIOT 222 X
I_MJ_IOTAB CCIHS_MJIOT 2416 X Measurements
I_MJ_PART_IOTAB CCIHS_RFMJIOT 537 X Measurements - Reference Measurements
I_MJ_PROP_IOTAB CIH01_IHPRAPI_TAB_TYPE 0 X
I_MJ_VALUE_IOTAB CCIHS_MJVAIOT 1408 X Measurements - Measured Values
I_MJ_WAH_IOTAB CCIHS_MJWAIOT 312 X Measurements - Work Areas
I_MPPL_MET_IOTAB CCIHS_MPMTIOT 962 X Measurement Plan - Measurement Method
I_MPPL_SUB_IOTAB CCIHS_MPPLIOT 995 X Measurement Plan - Agents
I_MPPROP_IOTAB CIH01_IHPRAPI_TAB_TYPE 0 X Characteristic Data
I_MPVAL_IOTAB CCIHS_IHVALIOT 222 X Value assignment instances
I_MPWA_IOTAB CCIHS_MPWAIOT 413 X Assigned work areas

Use
With this function module you can execute status checks for statuschanges in measurement projects and measurements.
The function module also serves as a reference function module for thedefinition of the interface of the user exit category IHS_MSTAT.

Preconditions
The user exit name M_STATUS must exist in Customizing forBasic Data and Tools under Manage User Exits and must beassigned a function module.

Features
Using the input parameters I_FLG_MP_STATUS, I_FLG_MPWA_STATUS, andI_FLG_MJ_STATUS you control which check is run when the status ischanged.
If the I_FLG_MP_STATUS indicator is set and the status of themeasurement project is to be switched to "Released," the system checkswhether the log sheets were created for all work areas that belong tothe measurement project. If this is not the case, an error message isstored for each work area with a missing log sheet with the functionmodule MESSAGE_STORE.
If the I_FLG_MPWA_STATUS indicator is set and the status of themeasurement project is to be switched to "Closed," the system checkswhether all measurements that belong to the relevant work area are in afinal status. The measurements are taken from the input tableI_MJ_IOTAB. For each measurement that is not in a final status, an errormessage is stored with the function module MESSAGE_STORE.
If the I_FLG_MJ_STATUS indicator is set and the status of themeasurement is to be switched to "Released" or "Partial Measurement,"the following checks are run:

  • The system checks whether the measurement has an operation status.

  • If the operation status was not specified, a warning is stored with thefunction module MESSAGE_STORE.
    • The system checks whether a refefence value exists for the respective
    • agents.
      If not, an error message is stored with the function moduleMESSAGE_STORE.
      • The system checks whether a measured value or a relevant entry for the
      • detectability exists.
        If not, an error message is stored with the function moduleMESSAGE_STORE.
        • The information on the amounts is checked.

        • If the amount category and the measured value/reference value categorywere not specified, warnings are stored with the function moduleMESSAGE_STORE.

          Notes
          The stored messages are not output in this function module.