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

De-activating text field

Former Member
0 Likes
534

Hi all,

In selection-screen i m defining three infield and a check box.

Of which two are select-options and one is parameter.

When user select the check box one input field I want to deactivate or don't want to display .

How to do that with select-options and with parameter field ?

Thanx.

-Umesh

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
497

Hi,

FOR parameter.

<b>


REPORT ZWA_TEST2 .

parameter: chk_box as checkbox USER-COMMAND ab.
parameter: a(10) MODIF ID ABC.



at selection-screen output.
If chk_box = 'X'.
loop at screen.

if screen-group1 = 'ABC'.
   screen-active = 0.
   modify screen.
endif.

endloop.

endif.

</b>

FOR select-options.

<b>

REPORT ZWA_TEST2 .

tables: bkpf.

parameter: chk_box as checkbox USER-COMMAND ab.
parameter: a(10) MODIF ID ABC.
select-options: b for bkpf-belnr MODIF ID SEL.


at selection-screen output.
  If chk_box = 'X'.
    loop at screen.

      if screen-group1 = 'SEL'.
        screen-active = 0.
        modify screen.
      endif.

    endloop.

  endif.

</b>

Regards,

Wasim Ahmed

Message was edited by: Wasim Ahmed

Hi all,

In selection-screen i m defining three infield and a check box.

Of which two are select-options and one is parameter.

When user select the check box one input field I want to deactivate or don't want to display .

How to do that with select-options and with parameter field ?

Thanx.

-Umesh

2 REPLIES 2
Read only

Former Member
0 Likes
497

Hi umesh ,

u have to put ur logic and do changes @

loop at screen.

screen-INVISIBLE = '1'.

screen-group = '' group name of paramter.

modify screen.

endloop.

Regards

Prabhu

Read only

dani_mn
Active Contributor
0 Likes
498

Hi,

FOR parameter.

<b>


REPORT ZWA_TEST2 .

parameter: chk_box as checkbox USER-COMMAND ab.
parameter: a(10) MODIF ID ABC.



at selection-screen output.
If chk_box = 'X'.
loop at screen.

if screen-group1 = 'ABC'.
   screen-active = 0.
   modify screen.
endif.

endloop.

endif.

</b>

FOR select-options.

<b>

REPORT ZWA_TEST2 .

tables: bkpf.

parameter: chk_box as checkbox USER-COMMAND ab.
parameter: a(10) MODIF ID ABC.
select-options: b for bkpf-belnr MODIF ID SEL.


at selection-screen output.
  If chk_box = 'X'.
    loop at screen.

      if screen-group1 = 'SEL'.
        screen-active = 0.
        modify screen.
      endif.

    endloop.

  endif.

</b>

Regards,

Wasim Ahmed

Message was edited by: Wasim Ahmed