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

The parameters of FM: ENQUEUE_ESFUNCTION

Former Member
0 Likes
929

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!

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
793

Hi,

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

Hi,

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

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
794

Hi,

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

Read only

0 Likes
793

Thanks, a®s.

I have read the thread that you recommended, and I think "RELID = 'ZZ'

SRTF2 = 0

SRTF = (your report name) " is wrong, am I right?

Regards,

feng.

Read only

former_member194669
Active Contributor
0 Likes
793

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

Read only

0 Likes
793

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.