Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC_STATUS_WRITE_TO_DATABASE

Former Member
0 Kudos
224

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.

2 REPLIES 2

former_member212653
Active Contributor
0 Kudos
62

Check out if any table is getting locked due to the function module through SM12.

0 Kudos
62

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