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

Effects:Using FM in a new Task

Former Member
0 Likes
537

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

2 REPLIES 2
Read only

Former Member
0 Likes
461

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

Read only

0 Likes
461

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