01-19-2009 3:21 AM
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
01-19-2009 3:54 AM
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.
01-19-2009 3:48 AM
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
01-19-2009 5:00 AM
01-19-2009 3:54 AM
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.