Application Development 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: 

synchronization of FM in background mode

Former Member
0 Kudos

Hi all!

I need to implement a function module in background mode that contains a call transaction.

The problem is that i need a synchronization between consecutive calls, so i have to insure that one FM is processsed completely to start the next one. I tried with qrfc's but that solution only insures the order of the functions. Any suggestions?

I appreciate if anyone can check this statement once.

Thanks!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

in second and subsequent FM u need to check whether the previous job has been completed or not. U can find the session name in a table wherein the execution process fields are also present, Using this u can do it.

5 REPLIES 5

Former Member
0 Kudos

in second and subsequent FM u need to check whether the previous job has been completed or not. U can find the session name in a table wherein the execution process fields are also present, Using this u can do it.

0 Kudos

Hi Ramesh!

Could you specify this table? Anyone?

Thanks in advance.

LucianoBentiveg
Active Contributor
0 Kudos

Use lock object ESFUNCTION, to lock the function execution,

Regards.

0 Kudos

Ok, peluka. I'm going to try this way but, what happens when another process wants to execute a FM that is locked? Is this process waiting until unlock? This is what i need.

Thanks!

0 Kudos

How can I know if a function module is locked?

Thanks in advance!