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.
|