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

How to implemtn async program ?

carlos_zhang3
Participant
0 Likes
535

Hi Experts ,

I am writinng one function module , and now i need this function one time only can be executed by one process ? just like an async program ....

Is it possible to do that in abap 4 ?

And i also have one question that is is it possbile to share some vars between some "running" abap program ? .....

Thanks .

Best Regards,

Carlos Zhang

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
504

If you use the addition STARTING A NEW TASK in CALL FUNCTION than your FM would be calles as Asyncronous FM


CALL FUNCTION func STARTING NEW TASK task 

Check help on the STARTING keyword.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
504

1) You need to use CALL FUNCTION func STARTING NEW TASK task

2) You need to EXPORT to DATABASE inorder to use the variables from one program to another program, after using you can use DELETE DATABASE.

Thanks

Sudheer

Read only

0 Likes
504

thanks Sudheer .

Is this not good for the performance ?

Best Regards,

Carlos

Read only

carlos_zhang3
Participant
0 Likes
504

EXPORT

MEMORY