on 03-16-2005 11:06 AM
Hello,
I am using an adaptive RFC model inside a Web Dynpro Application to maintain data residing on a SAP Enterprise system.
This RFC also sets a lock in order to make sure nobody else tries to change the same data.
I use pessimistic locking which means:
1. Web Dynpro calls a RFC
2. The RFC first locks the data then reads the data and returns the result back to Web Dynpro
3. The user changes the data and presses a save button
4. Web Dynpro calls the RFC to write and unlock the data
The problem i have is the fact that after locking and reading of the data the RFC is ended and the data is received by the Web Dynpro App. But at the same moment the lock is automatically unlocked because the RFC has ended succesfully.
How can i achieve that the lock is still there at the moment i want to change the data or is this procedure of pessimistic locking not possible?
Bertil
Hi Bertil
I had the same problem and we were able to work past it by dedicating a separate model for the locking RFC and setting a scope for the model . I had written a web log on this check the last section.
/people/sap.user72/blog/2005/01/08/adaptive-rfc-models-in-web-dynprosome-pointers
Regards
Pran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I'm facing the same situation: I'd like to create locks in same kind of scenario.
Did you find a solution ?
I'm really interested in knowing how to do !
Thanks in advance for any help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.