cancel
Showing results for 
Search instead for 
Did you mean: 

Leaver request performance issue in BADI:pt_abs_req

former_member192023
Active Participant
0 Kudos

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




Accepted Solutions (0)

Answers (1)

Answers (1)

former_member192023
Active Participant
0 Kudos

I checked pa2001 and pa2006 table,

The bad performance employee have lots of data in this 2 tables.

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

former_member192023
Active Participant
0 Kudos

Hi Siddharth,

Thanks very much for the information.

Will implement the notes first.

Regards

Feiyun