2008 May 22 11:29 AM
Hi ,
Can anyone tell me what could be effects of calling FM in a new task.
I am trying to use 4 FM in a new task in a single program with different task names.
My program is run in background and will there be any effects(performance wise), and if so how can I avoid them.
Regards
Sunil kumar P
Hi ,
Can anyone tell me what could be effects of calling FM in a new task.
I am trying to use 4 FM in a new task in a single program with different task names.
My program is run in background and will there be any effects(performance wise), and if so how can I avoid them.
Regards
Sunil kumar P
2008 May 22 11:43 AM
Hello,
You better execute the 4 FM in a single task
Function modules that you call using CALL FUNCTION ... IN BACKGROUND TASK DESTINATION are registered for background execution in another SAP System when the program reaches the next COMMIT WORK statement (using Remote Function Call). After the COMMIT WORK, the dialog process does not wait for these function modules to be executed (asynchronous update). All of the function modules that you register in this way are executed together in a single database LUW
if you want to run in normal background i mean the same system, then there is no need to write any thing, you can use call FUNCTION MODULE statment. but make sure that GUI_* and WS_* function modules do not work in background
Edited by: BVS on May 22, 2008 12:44 PM
2008 May 22 11:58 AM
BVS,
Thanks for you reply.
Presently I have ascenario where inside a loop i need to call all the 4 FM's based on different conditions. As they are taking much time to execute a single record, I have planed to use them in a new task where I can go for other record and call the FM again before even completing the process of the first one.
I do not have any commit works. For this program I want to schedule in the background job.
For this instance will ther be any effects of performance.
I have presently using the FM alternatively in new task as if I had used for every record it is giving me error for opening maximum number of sessions.
Sunil Kumar P
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |