Application Development 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: 

User restriction based on condition

shivangi_pant
Participant
0 Kudos

Hi, In continuation of my previous question now i want to also check the conditions before locking object. The requirement is the user cannot open two sessions with same values. I have added locks as per last help material but now my problem is in order to compare values of first session with other session in same user, how do i save the values? I used import export for SAP values but it is still not working as expected. Sample code is->

* Define a constant for the memory ID<br>* Export relevant data to memory only if it's the first interaction with the section<br>IF sy-modno = 1 " Track session number<br>Export values.<br>endif.<br><br>import values<br>if condition.<br>sy-subrc = 0<br>locking procedure<br>endif.
.
0 REPLIES 0