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

Enqueue / Dequeue in RFC

Former Member
0 Likes
1,046

Hi All,

I am facing problem with dequeue.

I ahve created the lock objects on the primary key fields for the DB table i wanted to use.

Now the enqueue is used in FM1 which locks the data and passes the entries to front Java application.

Java does its processing and doesnt have any interaction with the backend SAP.

Once processing is complete, Java submits its details through RFC FM2.

Now in this FM2, since the processing is all over i want to dequeue the entries.

But the dequeue doesnt seem to remove the locks from SM12.

After reading through many materials i understood, when FM1 gets executed one LUW is created.

When FM2 gets executed its in a different LUW and hence the dequeue doesnt work.

Can any one please help me with this issues?

Should I be passing any additional parameters during the Enqueue / Dequeue FM calls?

2 REPLIES 2
Read only

Former Member
0 Likes
589

Well Enqueue / Dequeue should always happen in 1 LUW.

Now for Enqueue / Dequeue since you are making calls to RFC Checkbox "Allow RFC" should be enbabled in

attributes section.

And pass the paramter scope = 1.

Regards

Bhanu Malik

Read only

Former Member
0 Likes
589

Setting the attribute is not possible as it asks for Access key.

Even after passing the _scope = '1' it didnt help.

Any other possible ways?