be careful using
RPTARQERR as it ll only CHANGE THE STATUS, hence you need to use this only when the leave is available in IT and still in error status There can be many reasosn for error status, locks, WF lock read here https://scn.sap.com/thread/3517472https://scn.sap.com/thread/1863460 Rptarqpost also picks error status requests, keep it as a scheduled job