cancel
Showing results for 
Search instead for 
Did you mean: 

Optimistic lock

0 Kudos

Hi ,

we are facing an issue while migrating the webdynpro from 7.0 to 7.3.

we make use of the optimistic lock in 7.0 by sharing the Jco Client for all our model execution. but unfortunately we do not have the Jco Client sharing across the models available in 7.3.

Is there any way to implement the lock mechanism in 7.3?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

To make it clear I will explain you a scenario. I have a summary screen and when you click on a link on the summary page it navigates to the details page.

When you navigate to the details screen, create a new Jco client and we execute one RFC using it , RFC is coded to add a lock entry against the table and user id.

when we move out of the details screen, we have to delete the lock entry.

the lock entry will automatically gets deleted when the Jco session(by which the lock is created) is released. So in order to do that, we release the session when you exit from the details screen.

also  we keep the Jco client session until we exit the details screen as we have an option to share the Jco Client between the RFC calls. we use the same Jco client for all the RFC calls until we exit.

But in 7.3 we do not have that option to share the Jco Client . So is there any way to keep the lock until we exit from the details screen.

Thanks