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

Hiding fields in a screen

Hi All,

How would u hide a row of fields in a screen based on a condition ?

Thanks in advance

Archana.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 16, 2005 at 03:53 AM

    Hi,

    Please specify ur problem clearly.

    Is it in ALV or Normal Report?

    Thanks & Regards,

    Judith.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2005 at 03:54 AM

    Hi Archana,

    All screen modifications are generally done in the PBO. If you have three elements on the screen, say P_ONE, P_TWO and P_THREE, then in the PBO, you will have something like this -

    IF <the condition you want to check>.
      LOOP AT SCREEN.
        IF ( SCREEN-NAME EQ 'P_ONE'  OR
             SCREEN-NAME EQ 'P_TWO'  OR
             SCREEN-NAME EQ 'P_THREE' ).
          SCREEN-ACTIVE = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDIF.

    The PBO for a selection screen would be the AT SELECTION-SCREEN OUTPUT event, while for a normal screen, it can be any of the PBO Modules.

    Regards,

    Anand Mandalika.

    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.