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

The parameters of FM: ENQUEUE_ESFUNCTION

Hi, all.

Just now I learned the FM ENQUEUE_ESFUNCTION.

ENQUEUE_ESFUNCTION - Lock an abap program so that it cannot be executed. Set the parameters as follows:

RELID = 'ZZ'

SRTF2 = 0

SRTF = (your report name)

Please note that you should not use SY-REPID to pass your report name to the function. The value of SY-REPID will change as it is being passed to the function module, and will no longer hold the value of the calling report.

But I see it's parameters in SE37, I didn't find the parameters like RELID, SRTF2, SRTF.There are MODE_TFDIR, FUNCNAME, X_FUNCNAME, _SCOPE, _WAIT, _COLLECT.

Can you explain this? Thanks in advance!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 04, 2007 at 04:04 AM

    Hi,

    See this thread i found in this forum, May this will help you out.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 05:05 AM

    Yes you are right, sy-repid not to be used

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks again, a®s.

      I think all this is wrong:

      "ENQUEUE_ESFUNCTION - Lock an abap program so that it cannot be executed. Set the parameters as follows:

      RELID = 'ZZ'

      SRTF2 = 0

      SRTF = (your report name)

      Please note that you should not use SY-REPID to pass your report name to the function. The value of SY-REPID will change as it is being passed to the function module, and will no longer hold the value of the calling report. ", because there no such parameters, such as relid, srtf2,srtf.

      Am I right?

      Regards,

      feng.

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.