Application Development and Automation 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: 
Read only

Selection screen textbox

Former Member
0 Likes
529

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
499

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

3 REPLIES 3
Read only

Former Member
0 Likes
500

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

Read only

Former Member
0 Likes
499

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.

Read only

Former Member
0 Likes
499

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.