SAP has provided a Badi for tracking acceptance or denial of Benefit Terms and Conditions (HRESS_BEN_TERMS_AND_CONDITIONS). There is only one parameter (importing) available for method PROCESS_USER_SELECTIONS. If an error is encountered in the update of infotype 0035, such as an authorization error, how do you pass the message back to the BADI HANDLER? I have looked at the sample implementation (HRESS_BEN_TERMS_AND_CONDITIONS) but it does not do any error handling although there is a local variable, lo_message type ref to cl_hrpa_message_list.
WebDynpro Component HRESS_C_BEN_ENRL_CONFIG contains a Component Controller Method CHECK_AGREEMENT. This method only deals with the value of the user selection for accept or decline (lv_agreement). It does not deal with any errors in the badi.