Skip to Content
0
Former Member
Nov 23, 2011 at 10:05 AM

Push buttons not appearing

51 Views

Hello Experts,

I had made push buttons on my screen through layout editor and set property as invisible (By Checking Invisible checkbox).

Now, based on some conditions at run time I want those push buttons to appear on screen.

For this I had written following code:

if sy-dynnr = 0101.
  loop at screen.
    if screen-name = 'CUNDFILTER'.
      screen-active = 1.
      screen-invisible = 0.
      elseif screen-name = 'CFILTER'.
        screen-active = 1.
        screen-invisible = 0.
        ELSEIF screen-name = 'DSELALL'.
          screen-active = 1.
          screen-invisible = 0.
          elseif screen-name = 'SELECTALL'.
          screen-active = 1.
          screen-invisible = 0.
     endif.
     modify screen.
   endloop.
   endif.

I had checked in debug mode, above lines are getting executed but push buttons are not appearing on the screen at runtime.

Please help.