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

Enqueue Function Module

Hi there,

Is there any generic enqueue function module which will lock the program? I do not want to create a custom Enqueue FM.

Shylesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 16, 2006 at 07:16 PM

    Yes, there is.....

    
    call function 'ENQUEUE_E_TRDIR'
     EXPORTING
    *   MODE_TRDIR           = 'X'
        NAME                 = <report_name>
    *   X_NAME               = ' '
    *   _SCOPE               = '2'
    *   _WAIT                = ' '
    *   _COLLECT             = ' '
    * EXCEPTIONS
    *   FOREIGN_LOCK         = 1
    *   SYSTEM_FAILURE       = 2
    *   OTHERS               = 3
              .
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    
    
    
    
    

    Regards,

    Rich Heilman

    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.