05-16-2005 4:46 AM
Hi All,
How would u hide a row of fields in a screen based on a condition ?
Thanks in advance
Archana.
05-16-2005 4:53 AM
Hi,
Please specify ur problem clearly.
Is it in ALV or Normal Report?
Thanks & Regards,
Judith.
05-16-2005 4: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.