2011 Dec 29 3:35 PM
Hi Friends,
I am calliing my Z Function Module in update task from my report, my function module contain reuse alv list display fm which should create a Spool in the spool list.
When ever i am directly executing my Z function module i am getting spool in SP01, but when ever i am calling the Z Function Module in update task from my report i am getting a message as "Express document "Update was terminated" received from author.
I want to call the Function module in update task and it should generate spools .
Syntax:
CALL FUNCTION 'ZLOK_TEST' IN UPDATE TASK.
Commit work.
Thanks Regards,
Sandipan jena
2011 Dec 29 3:57 PM
2011 Dec 29 4:06 PM
Generally this commit work gives Dump in background .
For further analysis we need the screen shot of dump or dump analysis from ST22 Transaction.
Thanks.
2011 Dec 29 4:40 PM
The functions called in UPDATE TASK cannot execute a COMMIT WORK from within the scope of the function call. You may not be doing a COMMIT explicitly but some of the calls you may be doing from your custom function module may be doing a COMMIT WORK. Check this.
Also check out if the function module you created in SE37 is marked "Update module" in SE37 -> Attributes tab
2011 Dec 29 9:11 PM
Hi sandipan jena,
a function called in update task will not create a spool list if not told so to to. Only reports scheduled in a JOB will put the output into spool.
Make sure you have no COMMIT WORK and no MESSAGE output when in UPDATE TASK. You can enter /h and in debugger switch on UPDATE debugging. This will lead you to any error occurring.
You should analyze the errors you get. Mabe NEW-PAGE PRINT ON can help you.
Regards
Clemens
2011 Dec 29 9:26 PM
Sandipan,
A FM called in update task CANNOT have a SUBMIT statement. and i guess you are creating the spool in that FM by submitting a program. That is why you are getting the update error
2012 Jan 06 2:32 PM