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: 

De-activating text field

Former Member
0 Kudos
103

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

dani_mn
Active Contributor
0 Kudos
66

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

2 REPLIES 2

Former Member
0 Kudos
66

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

dani_mn
Active Contributor
0 Kudos
67

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