on 08-27-2014 3:04 AM
Dear HCM mentor,
I added some checks in BADI "pt_abs_req" and it is works good when user try to create leave request in portal.
But it is very slow in performance when the boss user try to approve the leave requests.
After debug I found Bad performance place are line 98~104
in class interface "CL_PT_ARQ_REQ_EXIT" method "IF_EX_PT_ABS_REQ~SIMULATE_VIA_BLOP."
*---Call BLoP to fill TMW buffer and - if requested - add messages to message handler
CALL METHODCL_PT_ARQ_BADI=>BLOP_MAINTAIN_TIMEDATA
EXPORTING
IM_CHECK_MODE = SPACE
IM_COLLECT_MESSAGES =IM_COLLECT_MESSAGES
CHANGING
CH_BLOP_TAB = LT_BLOP_TAB.
Then I commented line 98~104 in my BADI.
It is really fast when the boss user approving leave request in portal.
But 1 more issue came after that, the error messages will not come any more when user try to create a leave request without enough leave days.
I found a discussion to change the SAP standard source code in
But I feel nervous because I never changed SAP standard source code.
Any comment will be appreciative.
Regards
Feiyun
I checked pa2001 and pa2006 table,
The bad performance employee have lots of data in this 2 tables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well in the same thread, there are many notes, did you apply all the notes? Please ensure all the notes are implemented first. 1850185 1839544 1833463 1822392 1743398 1721247 You can take a trace using ST12 as well In a test system you can try the modification and see too if the above notes doesn't help. Also, Ensure you have less request in SENT, APPROVED status, and error status, Typically we recommend to close out or delete older requests of leave request as they put load in validation.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.