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

CALL FM In BACKGROUND TASK

manubhutani
Active Contributor
0 Likes
2,270

HI GURU's

Can anybody please tell me the difference between calling a fm in background task and in update task

please dont provide me with the links.

Please explain in brief

I will be very thankful to you....

Thanks and Regards

Manu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,708

Call function in update task

Flags the function module func for execution in the update task. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and a subsequent COMMIT WORK then causes the function module to be executed by the update task. Update function modules must be flagged as such in the function library.

Call function in background task

Flags the function module func to be run asynchronously. It is not executed at once, but the data passed with EXPORTING bzw. TABLES is placed in a database table and the next COMMIT WORK then executes the function module in another work process.

Hope this will help you to understand the difference in two options. Please close the thread if this answers your question.

HI GURU's

Can anybody please tell me the difference between calling a fm in background task and in update task

please dont provide me with the links.

Please explain in brief

I will be very thankful to you....

Thanks and Regards

Manu

3 REPLIES 3
Read only

Former Member
0 Likes
1,709

Call function in update task

Flags the function module func for execution in the update task. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and a subsequent COMMIT WORK then causes the function module to be executed by the update task. Update function modules must be flagged as such in the function library.

Call function in background task

Flags the function module func to be run asynchronously. It is not executed at once, but the data passed with EXPORTING bzw. TABLES is placed in a database table and the next COMMIT WORK then executes the function module in another work process.

Hope this will help you to understand the difference in two options. Please close the thread if this answers your question.

Read only

0 Likes
1,708

Thanks a lot for the reply.

You said that in background task

fn module is executed with next commit work

as a separate process.

Can u please explain this 'separate process'?

and is this the opnly difference between the two?

Read only

0 Likes
1,708

For Background task, If the specified destination is not available for COMMIT WORK, an executable called RSARFCSE is started in the background. This attempts to start the functional modules registered for an SAP LUW in their destination, every 15 minutes up to a total of 30 times. You can make changes to these parameters using transaction SM59. If the destination does not become available within the given time, this is noted in the database table ARFCSDATA as a CPICERR entry. By default, this entry in database table ARFCSSTATE is deleted after 8 days.

This is one of the major difference but if you need all details, SAP help explains the same in a detail way. Please check this link.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbae4e35c111d1829f0000e829fbfe/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm

ashish