‎2007 Feb 23 6:55 AM
Hi all
I need to display a text box on the selection screen with only single value but it should be in invisible mode.The value in this textbox should be displayed on the selection screen but I should not able to see the textbox on the screen.Please help me to do this.
Thank You.
Regards
Mamatha.
‎2007 Feb 23 6:59 AM
U can make the screen active as 0.
[code]SELECT-OPTIONS: s_date FOR sy-datum Default sy-datum.[/code]
[code]*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-name eq 'PNPS$MSL'. (get the name from screen field)
screen-active = 0.
endif.
modify screen.
endloop.[/code]
Use the debugger to determine what the name of the field is that you want to hide.
refer this
https://www.sdn.sap.com/irj/sdn/collaboration
Message was edited by:
Judith Jessie Selvi
‎2007 Feb 23 6:59 AM
U can make the screen active as 0.
[code]SELECT-OPTIONS: s_date FOR sy-datum Default sy-datum.[/code]
[code]*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-name eq 'PNPS$MSL'. (get the name from screen field)
screen-active = 0.
endif.
modify screen.
endloop.[/code]
Use the debugger to determine what the name of the field is that you want to hide.
refer this
https://www.sdn.sap.com/irj/sdn/collaboration
Message was edited by:
Judith Jessie Selvi
‎2007 Feb 23 7:04 AM
Hi,
parameter: G_var type c As checkbox default 'X'.
AT SEELCTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-FILED = 'G_VAR'.
SCREEN-ACTIVE = '1'
SCREEN-INPUT = '0'.
Modify Screen.
ENDIF.
ENDLOOP.
‎2007 Feb 23 7:12 AM
Hi,
you can use the option NO-DISPLAY which is present in both PARAMETERS and SELECT-OPTIONS.
But I did not get the requirement at all. Why would you want to default a value to a Selection Screen field and not display it at all. This is like hard coding a value and you can do it without creating a field in the Selection Screen.