‎2009 Aug 21 11:47 AM
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
‎2009 Aug 21 11:51 AM
‎2009 Aug 21 11:59 AM
‎2009 Aug 21 12:19 PM
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
‎2009 Aug 21 12:27 PM
‎2009 Aug 21 12:34 PM
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
‎2009 Sep 01 10:16 AM
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.