Application Development 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: 

Screen Field in display

Former Member
0 Kudos

Hi Friends

i have two fields on selection screen and when user enter some value in one field and click on other field that field should become in display mode no input

how can we do that and it should happend without pressing Enter .

I have tried this but this will work only when u press Enter and not when u Click on field.

LOOP AT SCREEN.

*IF screen-group1 = 'FID'.

IF p_pernr IS NOT INITIAL.

if screen-name = 'PCHOBJID-LOW'

OR

screen-name = 'PCHOBJID-HIGH'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

Pls share your input on this.

Regards

Smeeta

3 REPLIES 3

Former Member
0 Kudos

Hi,

Suppose if a checkbox or radiobutton is placed and when user click on them, the other fields should get disabled/no input..

In such case define using USER_COMMAND <us> while defining the paramters..

Regards

Shiva

Former Member
0 Kudos

Hi,

Try like this,

I dont think single clik will trigger any event. So

ask user to double clik the field ( which is to be set as display only), then it will trigger PAI event

In At selection-screen event.

set flag based on which field is having value .( Declare flag variable ).

Ex. If field1 is not initial

flag = 'a'.

elseif field2 is not initial.

flag = 'b'.

endif.

Now in at selection-screen output event.

Based on flag value change the field attribute to display.

Regards,

S.Senthil

Former Member
0 Kudos

ok