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 Function in Background Task

Former Member
0 Likes
430

Hi all,

I have written a method in which I call a function in background task, I would like to perform a task after the function has ended succesfully. this is possible with the addition PERFORMING 'next_task' ON END OF TASK.

This is sadly not possible in a global class.

How can I get info back on the state of the function in the background?

greetings Fred.

3 REPLIES 3
Read only

Former Member
0 Likes
392

Hi,

try using export import statement in FM

call function ...

flay = 'Y'.

export flag to memory id 'TESt'

endfunction

import flag from memory id 'TEST'.

if flag = 'Y'.

perform next_task.

endif.

Regards

amole

Read only

0 Likes
392

Hello Fred,

I am trying to implement a similar thing at my end. I need to get the resultant list generated by my program after the function call has been completed in the background task..

Did you solve this?

Rgds

Priyanka

Read only

Former Member
0 Likes
392

Fred,

We have an option in SE36 to scheduling a task with triggering an EVENT. You could go through the wiziard available there for the correct event for your job.

Hope I could shed some light.

~thomas