Ansicht
Dokumentation

CBIH_LB61_UE_STATUS_CHECK - EHS: User Exit: Checks for Status Change

CBIH_LB61_UE_STATUS_CHECK - EHS: User Exit: Checks for Status Change

ABAP Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Use

With this function module you can execute status checks for status changes in measurement projects and measurements.

The function module also serves as a reference function module for the definition of the interface of the user exit category IHS_MSTAT.

Requirements

The user exit name M_STATUS must exist in Customizing for Basic Data and Tools under Manage User Exits and must be assigned a function module.

Features

Using the input parameters I_FLG_MP_STATUS, I_FLG_MPWA_STATUS, and I_FLG_MJ_STATUS you control which check is run when the status is changed.

If the I_FLG_MP_STATUS indicator is set and the status of the measurement project is to be switched to "Released," the system checks whether the log sheets were created for all work areas that belong to the measurement project. If this is not the case, an error message is stored for each work area with a missing log sheet with the function module MESSAGE_STORE.

If the I_FLG_MPWA_STATUS indicator is set and the status of the measurement project is to be switched to "Closed," the system checks whether all measurements that belong to the relevant work area are in a final status. The measurements are taken from the input table I_MJ_IOTAB. For each measurement that is not in a final status, an error message is stored with the function module MESSAGE_STORE.

If the I_FLG_MJ_STATUS indicator is set and the status of the measurement 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 the function 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 module MESSAGE_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 module MESSAGE_STORE.
  • The information on the amounts is checked.
If the amount category and the measured value/reference value category were not specified, warnings are stored with the function module MESSAGE_STORE.

Example

Notes

The stored messages are not output in this function module.

Further information

Functionality

Example

Notes

Further information





Parameters

E_FLG_ERROR
E_FLG_STATUS_CHANGE
E_FLG_WARNING
I_ADDINF
I_DVLIST_IOTAB
I_FLG_MJ_STATUS_CHECK
I_FLG_MPWA_STATUS_CHECK
I_FLG_MP_STATUS_CHECK
I_FLG_WITH_MESSAGE
I_MJ_IAVA_IOTAB
I_MJ_IOREC
I_MJ_IOTAB
I_MJ_PART_IOTAB
I_MJ_PROP_IOTAB
I_MJ_VALUE_IOTAB
I_MJ_WAH_IOTAB
I_MPPL_MET_IOTAB
I_MPPL_SUB_IOTAB
I_MPPROP_IOTAB
I_MPVAL_IOTAB
I_MPWA_IOREC
I_MPWA_IOTAB
I_MP_IOREC
I_NEW_STATUS

Exceptions

Function Group

CBIH_LB61

General Material Data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 3622 Date: 20240523 Time: 090138     sap01-206 ( 67 ms )