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

Activating and deactivating selection screen box.

Former Member
0 Likes
424

Hi all,

In my program on selection screen there are two selection box.

Each has different function .

I want, when i use any one selection box then other one should be deactivated.

can any one me guide me in this regard.

Thanks

Chetan.

Hi all,

In my program on selection screen there are two selection box.

Each has different function .

I want, when i use any one selection box then other one should be deactivated.

can any one me guide me in this regard.

Thanks

Chetan.

2 REPLIES 2
Read only

Former Member
0 Likes
400

LOOP AT SCREEN.

IF SCREEN-NAME = <FIELDNAME> AND SCREEN-INPUT = 1.

LOOP AT SCREEN.

IF SCREEN-NAME = <FIELDNAME>

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

Thanks,

Santosh

Message was edited by:

SKJ

Read only

Former Member
0 Likes
400

Hi,

I hope follwing code will solve your problem.


LOOP AT screen.
  IF first_selection_box = 'X' AND screen-name = 'second_selection_box in upper case'.
    screen-input = 0. 
  ENDIF.
  IF second_selection_box = 'X' AND screen-name = 'first_selection_box in upper case'.
    screen-input = 0.
  ENDIF.
  MODIFY screen.
ENDLOOP.

Reward points if the answer is helpful.

Megards,

Mukul