Functionality This function module serves as a copy template and interface definitionfor a user exit> for theimplementation of checks for the status switch of a work area. Within your implementation you can use the passed data to checkwhether a status switch is permitted. The result of the checks isreturned via the export parameter E_FLG_CHANGE_ALLOWED. If the statusswitch is permitted, the indicator is to be set to TRUE, otherwise it isto be set to FALSE. No checks are run in the standard system. The parameterE_FLG_CHANGE_ALLOWED is returned with the value TRUE.Preconditions In Customizing for Basic Data and Tools>, the user exit must existwith the user exit category IHS_STAT and the user exit name WKA_STATand a function module must have been assigned to it.Example Requirement A status switch should be possible only if the user has specified acost center in the work area. Solution You check in your implementation whether the corresponding field wasfilled in the work area header. If this is the case, you set theE_FLG_CHANGE_ALLOWED indicator to TRUE, otherwise to FALSE. Result The user can change the status only if the work area contains a costcenter. Notes INCLUDE EHS_CBIH_USER_EXIT_HINT OBJECT DOKU ID TX |