Skip to Content
avatar image
Former Member

BADI pt_abs_req Error message

     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..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 10, 2015 at 02:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2015 at 11:12 AM
    Add comment
    10|10000 characters needed characters exceeded