on 01-10-2015 5:12 AM
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..
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can check this wiki:
Validations for ESS Leave request - ERP Human Capital Management - SCN Wiki
Also can check the page 12 of the following document:
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.