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: 

avoid selection-screen

Former Member
0 Kudos

Hi,

i want to avoid the selection-screen for special users.

I tried this:

PARAMETERS: P_MATKL LIKE MARA-MATKL MODIF ID DI0.

PARAMETERS: P_MATNR LIKE MARA-MATNR MODIF ID DI0.

*

AT SELECTION-SCREEN OUTPUT.

*

LOOP AT SCREEN.

IF SCREEN-GROUP1 EQ 'DI0' and sy-uname = 'TTEST'.

SCREEN-INVISIBLE = '1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

*

The selection screen is empty (it's OK) but i have to press F8 to get the result. How can i avoid pressing F8 and

getting dirct the result of the report.

Thanks, Regards, Dieter

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You could try creating separate transaction codes for your users.

- Give normal users access to a normal transaction code which will require them to go via selection screen.

- Give the special users a "parameter transaction" which will allow them to skip the selection screen.

6 REPLIES 6

former_member188829
Active Contributor
0 Kudos

Hi,

Use RANGES.

We Can't Get Selection-Screen By Ranges.

Check This Example.

RANGES : R_matnr FOR mara-matnr.

R_matnr-LOW = 100.
R_matnr-HIGH = 200.
R_matnr-OPTION = 'BT'.
R_matnr-SIGN = 'I'.
APPEND R_matnr.

START-OF-SELECTION.
  WRITE: R_Matnr-low,R_matnr-high.

Former Member
0 Kudos

Try this.

SUBMIT REPORT01

VIA SELECTION-SCREEN

USING SELECTION-SET 'VARIANT1'

USING SELECTION-SETS OF PROGRAM 'REPORT00'

AND RETURN.

awrd points if helpful

Bhupal

Edited by: Bhupal on Jul 14, 2008 12:04 PM

Former Member
0 Kudos

You could try creating separate transaction codes for your users.

- Give normal users access to a normal transaction code which will require them to go via selection screen.

- Give the special users a "parameter transaction" which will allow them to skip the selection screen.

Former Member
0 Kudos

Hi,

With PARAMETERS or SELECTION-SCREEN statement you can never avoid default SELECTION SCREEN

So, better try with RANGE .

Check the link for detail:

[http://help.sap.com/saphelp_webas620/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm]

Regards,

Anirban Bhattacharjee

Former Member
0 Kudos

Hello Deiter,

If you want to hide unwanted screens and fields in any SAP program without changing it, the use of the Transaction Variant is the best solution.

Execute transaction SHD0 and create a Transaction Variant against the original transaction using screen variants or transaction variants.

Validate it according to the user.

Indu.

former_member787646
Contributor
0 Kudos

Hi,

First Design the Selection Screen as follows...

SELECTION-SCREEN BEGIN OF SCREEN '111'.

.......

........

SELECTION-SCREEN END OF SCREEN....

Now Based on the conditon you can display the selection screen like...

IF SY-UNAME = 'XYZ'.

CALL SELECTION-SCREEN '111'.

ENDIF.

Hope this would help you.

Murthy