Skip to Content
Former Member
Apr 19, 2010 at 05:59 PM

Commit Work Delay in Background Job submission


Hello there, I have a function module which gets called by a Service interface proxy. Inside the function module, I have a Job_open, submit to standard sap report (VI04 transaction equivalent) and Job_close. The standard SAP report creates SCD header and saves it. But when the job finishes and Job_close gets called, the data is still not commited to database (I poll to check if there is a record by reference number). I have wait up to 4 seconds and it works most of the time but misses sometimes. Is adding more delay only the solution or is there anything else I can do to quickly force the commit to database so my polling results in success. Thanks in advance.