09-20-2008 9:00 AM
Hi all,
I am using the function module 'Idoc_Status_write_to_database' in my report to change the idoc status.
I pass the IDOC number in the exporting parameter.
In the tables parameter for IDoc status i pass docnum, status,msgty,msgid,msgno,msgv1,uname,repid.
My report output consists of idoc number,status, message and many other fields.Based on certain criteria the status of the idoc should change to 51 or 53.
So i call the function module 'Idoc_Status_write_to_database'
inside a loop which contains all the idoc numbers in the output internal table.
But it gives a time out error.
But if i comment the function module and run the report it works fine.It does not time out.Any inputs wfor this will be highly appreciated.
Regards,
Subasree.
09-20-2008 9:34 AM
Check out if any table is getting locked due to the function module through SM12.
09-21-2008 5:12 AM
Hello Subashree,
Can you please copy and paste the code snippet. Only the loop untill endloop. So we will have a clear picture.
Regards
Farzan