11-21-2005 4:55 PM
I need to modify an existing program but I don't want to modify the screen logic as the default screen setting is already suitable for me.
How can I make a selection-screen block invisible? Thanks!
11-21-2005 5:03 PM
Hi
If you want those parameter are always invisible, you should use the option NO-DISPLAY
PARAMETERS: P_PAR1 LIKE .... NO-DISPLAY,
P_PAR2 LIKE NO-DISPLAY.
SELEC-OPTIONS: SO_SEL1 FOR ... NO-DISPLAY.
If you want to change the attribute at runtime, you should use the option MODIF ID while deining the parameters and select-options of the block:
PARAMETERS: P_PAR1 LIKE .... MODIF ID AAA,
P_PAR2 LIKE MODIF ID AAA.
SELEC-OPTIONS: SO_SEL1 FOR ... MODIF ID AAA.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'AAA'.
SCREEN-SCTIVE = 0.
MODIFY SCREEN.
ENDLOOP.
You can also create a transaction variant (SHD0), but you need a new transaction for your program.
Max
Message was edited by: max bianchi
11-21-2005 4:57 PM
11-21-2005 5:03 PM
Hi
If you want those parameter are always invisible, you should use the option NO-DISPLAY
PARAMETERS: P_PAR1 LIKE .... NO-DISPLAY,
P_PAR2 LIKE NO-DISPLAY.
SELEC-OPTIONS: SO_SEL1 FOR ... NO-DISPLAY.
If you want to change the attribute at runtime, you should use the option MODIF ID while deining the parameters and select-options of the block:
PARAMETERS: P_PAR1 LIKE .... MODIF ID AAA,
P_PAR2 LIKE MODIF ID AAA.
SELEC-OPTIONS: SO_SEL1 FOR ... MODIF ID AAA.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'AAA'.
SCREEN-SCTIVE = 0.
MODIFY SCREEN.
ENDLOOP.
You can also create a transaction variant (SHD0), but you need a new transaction for your program.
Max
Message was edited by: max bianchi
11-21-2005 5:03 PM
You can try at selection screen output by looping screen fields by below
loop at screen.
if screen-field name = <>.
screen-invisible = 1.
modify screen.
endif.
endloop.
11-21-2005 5:08 PM
Hi Gundam Seed,
If it is rreport you can do that in event 'AT SELECTION-SCREEN OUTPUT'. Like.....
Loop at screen.
if screen-name = 'B_xxx'.
screen-INVISIBLE = 'X'.
modify screen.
endif.
endloop.
Let me know if this not works....
Thanks,
Sanjeev
11-21-2005 5:12 PM
Hi,
Try with SHD0 trasaction code.
Here you can make selectio-screen fields as invisible,mandatory etc. without modifying any code in existing prog.
Regards
Eswar