12-13-2010 9:18 AM
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
12-13-2010 9:31 AM
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
12-13-2010 9:29 AM
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
12-13-2010 9:31 AM
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
12-13-2010 9:50 AM
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
12-13-2010 1:21 PM
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