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: 

Module pool

Former Member
0 Kudos

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

Former Member
0 Kudos

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

I355602
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

HI i am using ALV grid in the program.

Former Member
0 Kudos

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.