Skip to Content
author's profile photo Former Member
Former Member

SM12 locks for screen programing

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2010 at 11:52 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2010 at 11:46 AM

    Hi Sumithra,

    Create ENqueu/ Dequeue for the table as below.

    call function 'ENQUEUE_ZSDAR'
     EXPORTING
    
        NAME                 = 'TABLE'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2010 at 11:48 AM

    There is no function module available as 'ENQUEUE_ZSDAR'

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.