Skip to Content
0
Jul 02, 2007 at 03:21 PM

Hiding screen fields containing tables

11 Views

HI guyz,

i have created a custom infotype which has 2 subtypes . certain fields should not be displayed when we select the subtypes. i have used the code below. the screen contains a table.

MODULE hide_FIELDS OUTPUT.

IF p9555-subty = '1'.

LOOP AT SCREEN.

IF screen-group2 = 'ABC'.

screen-active = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF p9555-subty = '2'.

LOOP AT SCREEN.

IF screen-group2 = 'XYZ'.

screen-active = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE. " hide_FIELDS OUTPUT

the fields which are not in the table are not getting displayed as required but the fields in the table still appear on the screen(they are grayed out). i do not want them to appear on the screen. can anyone help me with this. Thanks in advance.