Hi,
We had a validation to be done before applying Leave. So we identified a Standard BADI Definition(PT_ABS_REQ) and created a new Implementation. Well, we found out the appropiate method and we kept our validation, but we dont understand HOW TO SEND MESSAGE. I saw the default Implementation of the same BADI, and found some code as below.
CALL METHOD message_handler->add_message
EXPORTING
im_type = 'E'
im_cl = 'HRTIM_ABS_REQ'
im_number = '063'
im_par1 = lcl_msgv1
im_par2 = lcl_msgv2
im_par3 = 'BLOP'
im_context = '(Begdate:Enddate)'
im_subcontext = ''
im_classname = 'CL_PT_ARQ_BLOP_ADAPTER'
im_methodname = 'CHECK_DATES_FOR_REQUEST'.
We tried using the same code changing the Message Number.
But we are getting an error(RFC_ERROR_SYSTEM_FAILURE) in Enterprise Portal with our message.
Our validation is getting tested, but we are not successful in passing an error message.
Can anyone help us in understanding the above coding?Especially the last four parameters.
Regards,
Raja Sekhar