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

Push buttons not appearing

Former Member
0 Likes
1,070

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
846

Hi,

You have to code your LOOP AT SCREEN in the PBO...

Kr,

Manu.

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.

2 REPLIES 2
Read only

Former Member
0 Likes
847

Hi,

You have to code your LOOP AT SCREEN in the PBO...

Kr,

Manu.

Read only

Former Member
0 Likes
846

Thank you.

I was looping screen in PAI module.