Application Development 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: 

Hiding fields in a screen

Former Member
0 Kudos

Hi All,

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

Thanks in advance

Archana.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please specify ur problem clearly.

Is it in ALV or Normal Report?

Thanks & Regards,

Judith.

Former Member
0 Kudos

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.