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

Lock table from RFC

Former Member
0 Likes
2,025

Hi,

I'm using SAPRFC for PHP in one of our applications. Particular data (table PRPS) gets changed both from SAP R/3 and via RFC from my web application. I have implemented the locking logic in SAP R/3 (in custom report users are using), now I need to do the same in web application. I have created custom lock object, it is RFC enabled. The problem is, when I call enqueue module to lock the table via RFC, the lock is created, but vanishes as soon as the web page is rendered. I guess thats when RFC processing stops. My question is, is there a way, how to disable automatic lock disappearing when they are called via RFC? Or any other solution, that would work.

Thanks in advance.

Regards,

Tomas

6 REPLIES 6
Read only

Former Member
0 Likes
1,147

Hi,

Try to get answer from here:

Read only

Former Member
0 Likes
1,147

hii,

have a luk to this link.hope it will solce your purpose.

regards,

Shweta

Edited by: Shweta Joon on Aug 21, 2009 1:00 PM

Read only

Former Member
0 Likes
1,147

Hi,

You can do this by locking object.

RS_ACCESS_PERMISSION : To lock or unlock a program.

Use the function module:

ENQUEUE_E_TABLE

  • do the updates

DEQUEUE_E_TABLE

Hope, it would help you.

with regards,

Mamta

Read only

Former Member
0 Likes
1,147

Hi Tomas,

Plz check the link to solve your query:

[Locking table from RFC|;

Hope , it helps you.

Thanks,

Sarita Singh

Read only

Former Member
0 Likes
1,147

Hi guys,

the problem is not that I wouldn't have the modules RFC enabled, they are and even if they wouldn't, I could write a wrapper FM to do this. The problem remaining is that RFC connection breaks when the web page is rendered (that is, when the RFC call finishes), and that the default behaviour is the remove the lock when RFC breaks. Now I need to know, if it is possible either to make RFC connection persistent (it should be possible in principle, portal applications do it this way), or, if it's possible to order the lock to remain even when RFC connection breaks.

Thanks anyway,

Best regards,

Tomas

Read only

Former Member
0 Likes
1,147

Marking the question as answered, as my requirement is not possible to implement. Persistent RFC connection are AFAIK possible only with new version of RFC library, not the one SAPRFC for PHP uses.