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

SM12 locks for screen programing

Former Member
0 Likes
726

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
Read only

Former Member
0 Likes
654

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
Read only

Former Member
0 Likes
654

Hi Sumithra,

Create ENqueu/ Dequeue for the table as below.

call function 'ENQUEUE_ZSDAR'
 EXPORTING

    NAME                 = 'TABLE'.

Read only

Former Member
0 Likes
654

There is no function module available as 'ENQUEUE_ZSDAR'

Read only

0 Likes
654

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

Hope this helps.

Read only

Former Member
0 Likes
655

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