Application Development and Automation 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: 
Read only

Update termination error while calling FM in Update task

Former Member
0 Likes
5,152

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
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,213

Please Go to your inbox and paste what is there.

Nabheet

Read only

Former Member
0 Likes
2,213

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.

Read only

Former Member
0 Likes
2,213

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

Read only

Clemenss
Active Contributor
0 Likes
2,213

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

Read only

Former Member
0 Likes
2,213

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

Read only

Former Member
0 Likes
2,213

Solved myself by using background task