Disable Parameters in Report Selection Screen

 Q:

Dear all,
I have parameters in my ABAP/4 reporting program:
parameters: date like sy-datum,
                        division (1) type c.
parameters: r1 radiobutton group rad1,
                        r2 radiobutton group rad2.

How to change below code into ABAP/4 language
if r1 ne space.
  division = invisible.
elseif r2 ne space.
  divisio = visible.
endif.

thank you

A:

Try something like this in the even AT SELECTION-SCREEN or AT SELECTION-SCREEN

OUTPUT (whichever makes sense for what you are doing...)

LOOP AT SCREEN.

  If screen-name = division.
    if r1 ne space.
      screen-invisible = 1.
    elseif r2 ne space.
      screen-invisible = 0.
    endif.
    modify screen.
  endif.

ENDLOOP.

You may also try adding a statement for screen-input and/or screen output
instead.  That way they are still visible, but you can't change them.


Converted from CHM to HTML with chm2web Standard 2.7 (unicode)