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: 

Update termination error while calling FM in Update task

Former Member
0 Kudos
3,454

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

6 REPLIES 6

nabheetscn
Active Contributor
0 Kudos
515

Please Go to your inbox and paste what is there.

Nabheet

Former Member
0 Kudos
515

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.

Former Member
0 Kudos
515

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

Clemenss
Active Contributor
0 Kudos
515

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

Former Member
0 Kudos
515

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

Former Member
0 Kudos
515

Solved myself by using background task