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

Background Processing & Update Task

Former Member
0 Likes
4,323

Are "background processing" and "update task" processing the same? I have a function which is timing out and I need to have it run in the background. If I used the CALL FUNCTION <name> IN UPDATE TASK, would that provide the same resource level and time allowance as having the logic run via a SUBMIT?

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
2,498

Hi,

no, they are not same. The update techniques are described [here|http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4cba79e11d1950f0000e82de14a/frameset.htm]. You can call FM in background task directly using RFC.Have a look at ABAP documentation for calling RFC functions.

Cheers

6 REPLIES 6
Read only

mvoros
Active Contributor
0 Likes
2,500

Hi,

no, they are not same. The update techniques are described [here|http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4cba79e11d1950f0000e82de14a/frameset.htm]. You can call FM in background task directly using RFC.Have a look at ABAP documentation for calling RFC functions.

Cheers

Read only

Former Member
0 Likes
2,498

The ABAP documentation for calling RFC functions states: "Note that your RFC calls with CALL FUNCTION are processed in work processes of type DIALOG." This doesn't sound like it will address the time-out issue.

Read only

mvoros
Active Contributor
0 Likes
2,498

Yeap, it looks like you are right. I got confused by option BACKGROUND TASK.

Cheers

Read only

Former Member
0 Likes
2,498

Hi,

This is the F1 documentation for calling a FM 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.

This is the F1 documentation for calling a FM in background task

Flags the function module func to be run asynchronously. That is, it is not executed at once. Instead, the data passed using EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process.

Hope this helps

Regards,

San

Read only

pramodu
Active Participant
0 Likes
2,498

Call function in Background Task and set the Flag = 'X' in the FM .

After calling FM use the satetment

WAIT UNTIL FLag = 'X' UP TO 5 SECONDS.

If sy-subrc = 0.

SUBMIT RSBDCSUB....

endif.

~Pramod

Read only

Former Member
0 Likes
2,498

I went with creating a new program to be run in a background process to call the function.