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

Locking tables using a RFC Call

Former Member
0 Likes
1,012

Hello,

I am trying to lock a Table in R/3 from BW by calling a Enqueue Function Module which is remote enabled in R/3. The BW Call to R/3 is successful but the table is not getting locked. I wanted to know if this is something that can be done.

I have an assumption once the locking is done in R/3 the connection in R/3 is closed and its getting unlocked automatically.

Please Post your answers if you guys have faced a similar situation.

Rajeev

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
720
I have an assumption once the locking is done in R/3 the connection in R/3 is closed and its getting unlocked automatically.

Your probably right, when making an RFC call, the locking done within, would only last during the execution of that call.

Regards,

Rich Heilman

Hello,

I am trying to lock a Table in R/3 from BW by calling a Enqueue Function Module which is remote enabled in R/3. The BW Call to R/3 is successful but the table is not getting locked. I wanted to know if this is something that can be done.

I have an assumption once the locking is done in R/3 the connection in R/3 is closed and its getting unlocked automatically.

Please Post your answers if you guys have faced a similar situation.

Rajeev

5 REPLIES 5
Read only

Former Member
0 Likes
720

Try to run the RFC FM in debug mode and then see the return sy-subrc for ENQUEUE.

I suppose it should get locked.

After the connection breaks i am not too sure if the lock will persist or maybe it is unlocked automatically.

Revert with results.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
721
I have an assumption once the locking is done in R/3 the connection in R/3 is closed and its getting unlocked automatically.

Your probably right, when making an RFC call, the locking done within, would only last during the execution of that call.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
720

Hello Guys,

Thanks for you posts,

I have a work around for this.

Rajeev

Read only

Former Member
0 Likes
720

Hi, Can you please let me know the way you resolved this

Thanks

Anoop