Application Development 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: 

Deactivation of "Execute in background"

Former Member
0 Kudos

Hi at all,

we have a normal report that displays the result in an ALV Table.

Now we have to deactivate the option "Execute in background" at the menu bar.

Within the coding it is possible to catch the value "X" in the sy-batch parameter but is it possible to deactivate the use of the menu point in the programm?

Best regards

Dirk Voigt

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I know we can add function codes using the below to the editor, you can explore the possibilities of remove options also:

SEU00002

SEUED001.

Also i have not tried it but had read somewhere that it can be done using function module 'RS_SET_SELSCREEN_STATUSu2019

at the selection-screen output event.

You would need to create a new interface copying the standard and remove the execute in background option and set it using the above FM.

Let me know if it worked.

Regards,

Himanshu

4 REPLIES 4

Former Member
0 Kudos

Hi,

SAP has menu exits provided for SE38 (ABAP editor) -SEUED001, But when you apply the enhancement, it will apply to all the SE38 menu options. Hence its not possible to deactivate only for your program. Its better to have it in your program to handle it.

Hope this helps

Regards

Shiva

Former Member
0 Kudos

Hi,

I know we can add function codes using the below to the editor, you can explore the possibilities of remove options also:

SEU00002

SEUED001.

Also i have not tried it but had read somewhere that it can be done using function module 'RS_SET_SELSCREEN_STATUSu2019

at the selection-screen output event.

You would need to create a new interface copying the standard and remove the execute in background option and set it using the above FM.

Let me know if it worked.

Regards,

Himanshu

former_member195402
Active Contributor
0 Kudos

Hi Dirk,

when you call "Execute in Background" you are using FCODE "SJOB" of GUI status "%_00" of program RSSYSTDB.

Maybe you can catch it in field SY-UCOMM or SSCRFIELDS-UCOMM in your report.

Regards,

Klaus

0 Kudos

Thanks for all answers.

They were very helpful and this is my solution:

AT SELECTION-SCREEN OUTPUT.

* DV_M1458 Deaktivierung der Hintergrundlaufmöglichkeit
  ls_ucomm = 'SJOB'.
  APPEND ls_ucomm TO lt_ucomm.

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status        = sy-pfkey
*     P_PROGRAM       = ' '
    TABLES
      p_exclude       = lt_ucomm.

VG

Dirk