07-14-2008 10:52 AM
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
07-14-2008 11:00 AM
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.
07-14-2008 10:54 AM
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.
07-14-2008 10:57 AM
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
07-14-2008 11:00 AM
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.
07-14-2008 11:02 AM
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
07-14-2008 11:07 AM
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.
07-14-2008 11:17 AM
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