cancel
Showing results for 
Search instead for 
Did you mean: 

BADI pt_abs_req Error message

Former Member
0 Kudos

     Hi All,

I am enhancing ESS using badi pt_abs_req. I have done some validations in method simulate_via_blop.

My problem is, In ESS portal, when ever I click on create leave request, this methods gets called. And also some random date will be passed to it and will go through all my validations. Hence error message coming even before I apply leave.

How can I rectify this? Please help me..

Accepted Solutions (1)

Accepted Solutions (1)

ajithprakash
Member
0 Kudos

Hi Subin,

Use the method CHECK_TIME_CONSTR_FOR_SUBTY of BADI PT_ABS_REQ to do validations.

Add


IF infty EQ '2001' AND ( wa_attabs-operation = 'INS' OR wa_attabs-operation = 'MOD' ).

**According to your requirement.

Throw error message as shown below

CALL METHOD message_handler->add_message

               EXPORTING

                 im_type       = 'E'

                 im_cl         = 'ZHR_MSG_CLS'

                 im_number     = '010'

                 im_par1       = im_par1

                 im_context    = 'CHECK TIME CONSTRAINTS'

                 im_subcontext = ''

                 im_classname  = 'ZCL_PT_ARQ_REQ_EXIT'

                 im_methodname = 'CHECK_TIME_CONSTR_FOR_SUBTY'.

Regards,

Ajith

Answers (1)

Answers (1)

Former Member
0 Kudos