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: 

How to skip the Selection screen completely for certain users?

Former Member
0 Kudos

Hi All,

I want to skip the entire selection screen based on sy-uname. I check if the sy-uname has sufficient authorization and based on that..I want to skip the entire selection screen. How do I do that?

6 REPLIES 6

Former Member
0 Kudos

u can <b>submit the report</b> directly for those users

u can store the usernames in a table and validate them

if authorized u can directly submit the report

Former Member
0 Kudos

I am not sure if this will work, but you can try it.

AT SELECTION-SCREEN BEFORE OUTPUT.

IF <user has auth>.

LOOP AT SCREEN.

SCREEN-ACTIVE = '0'.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

0 Kudos

Rachna,

The one I gave you doesnot work, only gives you a blank screen which probably you don't want. You want to skip the screen completely, isn't it?

Then the only way I can think of is you have to build a module pool instead of a report program. And there you call or donot call the screen for selection based on user authorization. Should not be a big task.

Former Member
0 Kudos

Rachana,

I am confused, If you are skipping the selection screen for specific users, where will the values for the parameters come from.

As such there is no direct way of implementing the logic. In your program you will have to check if the values have been filled only for specific users. You cannot make the parameters mandatory at the selection screen level.

Regards,

Ravi

Note :Please mark the helpful answers

former_member181962
Active Contributor
0 Kudos

1) IN the initialization section submit the same report.

initialization.

if sy-uname = 'TEST'.

submit sy-repid with <s_range1> in <s_range1>

<range2> in <range2>.

endif.

Regards,

Ravi

Former Member
0 Kudos

Hi Rachna,

use

<b>SUBMIT program

with sy-uname = 'TEST'

and return.</b>

If u specify and return the control will come back and execute the next line in the report.

It is giving the output directly without showing the selection screen.

If u r pressing back also it is not showing the selction screen.

This will work

Regards

Naresh