Skip to Content
0
Former Member
Jan 14, 2008 at 04:29 PM

help in disabling display of record in table control

18 Views

Hi all,

I need to disable the display of record from an internal table in table control.

I have the folllowing code:

PROCESS BEFORE OUTPUT.

  • Set status & title; possibly disable Proceed option

MODULE status_0410.

  • Fill table control with data

LOOP AT ts_cor

INTO z2rlcr_screen_struc

WITH CONTROL tc_cor

CURSOR tc_cor-current_line.

MODULE modify_screen.

ENDLOOP.

module modify_screen output.

  • Don't allow any input for lines that would fail:

if z2rlcr_screen_struc-status_code <> c_yellow or

w_proceed = space.

w_help_screen = c_yes.

  • Iterate through screen

loop at screen.

  • Set screen input to 'off' if screen element is...

if screen-name = 'Z2RLCR_SCREEN_STRUC-MANCODE' or

screen-name = 'Z2RLCR_SCREEN_STRUC-REASDESC'.

screen-input = c_off.

endif.

modify screen.

endloop.

endif.

  • Do not show the line if the line is deleted.

if z2rlcr_screen_struc-del_line eq 'X'.

  • here I need the help if del_line eq 'X' then I should disable the

  • display of the whole record.

endif.

endmodule. " MODIFY_SCREEN OUTPUT

I hope its clear.

Any help will be appreciated.

Thanks

Sukumar.