Hi Siva,
thank you for mentioning me.
As said, the cause is the code in EXIT_SAPXXX_002.
I can not comment on that code as it is not given.
Please ask your DB admin to run (actualize) table statistics on the DB tables involved. This helps in most cases.
Regards Clemens