‎2010 Feb 03 10:20 PM
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?
‎2010 Feb 03 10:46 PM
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
‎2010 Feb 03 10:46 PM
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
‎2010 Feb 04 6:04 PM
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.
‎2010 Feb 04 10:28 PM
Yeap, it looks like you are right. I got confused by option BACKGROUND TASK.
Cheers
‎2010 Feb 03 10:54 PM
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
‎2010 Feb 04 1:31 AM
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
‎2010 Feb 22 4:09 PM
I went with creating a new program to be run in a background process to call the function.