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: 

SM12 locks for screen programing

Former Member
0 Kudos

Hi,

I am displaying the list of entries in my ALV table ( project specific table entries).

On click opf one row, it will display the details in my screen programing.

I can edit a particular row and update the table. When I am in edit mode of a particular row then other user shoudnt use the same row.

This has to be handled as SM12 lock.

How to use enqueue or dequeue to do this...

Any help is appreciated.Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

The data which you are showing are from a database right? go to se11, and create an lock.While creating the locks, please specify the fields .

For each lock, its automatically create 2 function module.

ENQUEUE and DEQUEUE .

If you use the function module ENQUEUE_<LOCK NAME> before showing the ,screen from your alv automatically the records will come in SM12.

Regards,

Nikhil

Edited by: Nikhil V Kumar on Jul 27, 2010 5:22 PM

4 REPLIES 4

Former Member
0 Kudos

Hi Sumithra,

Create ENqueu/ Dequeue for the table as below.

call function 'ENQUEUE_ZSDAR'
 EXPORTING

    NAME                 = 'TABLE'.

Former Member
0 Kudos

There is no function module available as 'ENQUEUE_ZSDAR'

0 Kudos

ENqueue_ZSDAR where "ZSDAR" is the table name for which we create Locks.

Hope this helps.

Former Member
0 Kudos

The data which you are showing are from a database right? go to se11, and create an lock.While creating the locks, please specify the fields .

For each lock, its automatically create 2 function module.

ENQUEUE and DEQUEUE .

If you use the function module ENQUEUE_<LOCK NAME> before showing the ,screen from your alv automatically the records will come in SM12.

Regards,

Nikhil

Edited by: Nikhil V Kumar on Jul 27, 2010 5:22 PM