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

Module pool

Former Member
0 Likes
518

hi ,

i created a module pool program ,i wants a functionality that no two users should be in edit mode for the same applivation number,how can i do it.please advice..

Regards

Use meaningful subject for your future questions

Edited by: Vijay Babu Dudla on Jan 18, 2009 11:45 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
493

Hi Kiran.

You can use SAP lock concept by creating the lock object in tcode se11 for locking only field Application Number in exclusive mode.

Hope it helps.

Sayan.

3 REPLIES 3
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
493

Hi Kiran,

Just maintain a flag bit which will be used to identify that either the table control is being edited currently or not. If flag bit is null, allow user to edit, else display an error message.

When user click the edit/change button, the use this code:-


IF flag = ' '. "when first user uses the application
  flag = 'X'. "set flag as checked to avoid other user editing
  " your functionality
ELSEIF flag = 'X'.
  MESSAGE E001(ZMSG). "message user already editing
ENDIF.

And when user changes the mode to display or exits the application, clear the flag bit.


flag = ' '. "set flag bit as null so that next user can access the application

Hope this solves your problem.

Thanks & Regards,

Tarun Gambhir

Read only

Former Member
0 Likes
493

HI i am using ALV grid in the program.

Read only

Former Member
0 Likes
494

Hi Kiran.

You can use SAP lock concept by creating the lock object in tcode se11 for locking only field Application Number in exclusive mode.

Hope it helps.

Sayan.