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.
Saturday, July 26, 2014
5
ABAP Tips: 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...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment