Skip to Content
author's profile photo Former Member
Former Member

Push buttons not appearing

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2011 at 02:03 PM

    Hi,

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

    Kr,

    Manu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2011 at 06:51 AM

    Thank you.

    I was looping screen in PAI module.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.