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: 

Restrict 'Executing report in background' from selection screen

Former Member
0 Kudos
735

I want user to not to select option for executing report in background from Selection Screen of the program.

i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.

Thanks,

Falguni

1 ACCEPTED SOLUTION

Former Member
0 Kudos
490

Hi Falguni,

Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :



AT SELECTION-SCREEN

CASE SY-UCOMM.

WHEN 'SJOB'.

MESSAGE E000 WITH 'You cannot schedule background job'.

ENDCASE.

Thanks & Regards,

Faheem.

2 REPLIES 2

Former Member
0 Kudos
490

Hi,

Please use mainu painter,

Select what the menu required. then put pf_status in your report.

This way you can disable the back ground schedule option.

Regrds,

Nayan Lad

Former Member
0 Kudos
491

Hi Falguni,

Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :



AT SELECTION-SCREEN

CASE SY-UCOMM.

WHEN 'SJOB'.

MESSAGE E000 WITH 'You cannot schedule background job'.

ENDCASE.

Thanks & Regards,

Faheem.