Skip to Content
0
Aug 27, 2014 at 02:04 AM

Leaver request performance issue in BADI:pt_abs_req

131 Views

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