Fonction SAP CBIH_LB10_CHECK_STATUS_CHANGE - EHS: User Exit Template for Checks on Status Changes

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 EHS: Additional Information for Function Module Calls
I_HEADER_WA CIHWA_WAHAPI_WA_TYPE 0 Work area header record

Paramètre Reférence Type Long. Description
E_FLG_CHANGE_ALLOWED ESP1_BOOLEAN 0 Indicator Is TRUE If Status Switch Permitted

Paramètre Reférence Long. Facultatif Description
I_ACLOCNAM_TAB CIHWA_WAADAPI_TAB_TYPE 0 X
I_ACLOC_TAB CIHWA_WAAAPI_TAB_TYPE 0 X
I_ACTION_LTXT_TAB CIHAC_ACLTAPI_TAB_TYPE 0 X
I_ACTION_TAB CIHAC_ACHAPI_TAB_TYPE 0 X
I_DESCRIPTION_TAB CIHWA_WALDAPI_TAB_TYPE 0 X
I_DESCR_LONGTEXT_TAB CIHWA_WALTAPI_TAB_TYPE 0 X
I_EXP_PROFILE_TAB CIHWA_EPIAPI_TAB_TYPE 0 X
I_FREETEXT_LTXT_TAB CIH01_DFTLTAPI_TAB_TYPE 0 X
I_FREETEXT_TAB CIH01_DFTAPI_TAB_TYPE 0 X
I_IH_DATA_TAB CIH01_IHVALAPI_TAB_TYPE 0 X
I_INFO_JOIN_TAB CIHWA_WADOAPI_TAB_TYPE 0 X
I_PROP_DATA_TAB CIH01_IHPRAPI_TAB_TYPE 0 X
I_PTCP_TAB CIHWA_PTCPAPI_TAB_TYPE 0 X
I_WAPT_TAB CIHWA_WAPTAPI_TAB_TYPE 0 X
I_WAQS_TAB CIHWA_WAQSAPI_TAB_TYPE 0 X

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