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

Display Mode

Former Member
0 Likes
569

Hi ,

I need to make a particular input field with default valu and also make it in Display mode , How can i acheive this ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
544

HI..,

we use INPUT parameter of SCREEN internal table for this..

<b>parameters p_para type i default 245.

at selection-screen output.

loop at screen.

if screen-name = 'P_PARA'.

<b><i>screen-input = 0.</i></b>

modify screen.

endif.

endloop.

start-of-selection.

write p_para.</b>

plz do remember to close the thread when ur problem is solved !! reward all helpful answers !!

regards,

sai ramesh

4 REPLIES 4
Read only

Former Member
0 Likes
545

HI..,

we use INPUT parameter of SCREEN internal table for this..

<b>parameters p_para type i default 245.

at selection-screen output.

loop at screen.

if screen-name = 'P_PARA'.

<b><i>screen-input = 0.</i></b>

modify screen.

endif.

endloop.

start-of-selection.

write p_para.</b>

plz do remember to close the thread when ur problem is solved !! reward all helpful answers !!

regards,

sai ramesh

Read only

Former Member
0 Likes
544

If it is parameter field you can use DEFAULT option

parameter : P-field for ............ default <value> modif 'ABC'.

AT SELECTION SCREEN OUTPUT.

Loop at screen.

if screen-group1 EQ 'ABC'.

screen-input = 0.

endif.

endloop.

Thanks

Sandeep

Reward if helpful

Read only

Former Member
0 Likes
544

Hi Kumar,

Just copy and paste this code......

parameters p_data(15) TYPE C DEFAULT 'INITIAL TEXT'.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

screen-input = 0.

MODIFY SCREEN.

ENDLOOP .

Reward all helpful answers......

Regards,

V.Raghavender.

Read only

Former Member
0 Likes
544

Hi,

Use this Event to achieve the result.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME =’SCR_NAME’.

SCREEN-INPUT = 0. &#61664; this makes the field value in display mode.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards,

Suresh