06-05-2006 3:49 PM
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?
06-05-2006 3:52 PM
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
06-05-2006 3:54 PM
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.
06-05-2006 4:01 PM
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.
06-05-2006 3:54 PM
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
06-05-2006 3:54 PM
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
06-05-2006 4:03 PM
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