01-29-2008 1:42 PM
Hi. I've got a TABLEWIEV object on my subscreen. I'd like to determine if particular row can be editable. I'd like to set those rows which cannot be edited shaded. The editable rows should be set to white color. Could You give me a tip how to reach that? Greetings. P.
01-29-2008 2:16 PM
In the PBO when LOOPing on internal table with table control, do something like
LOOP AT itab
WITH CONTROL ctrl
CURSOR ctrl-current_line.
MODULE itab_map_fields.
MODULE itab_line_attr.
MODULE itab_get_lines.
ENDLOOP.
In MODULE itab_line_attr set read-only attributes
MODULE itab_line_attr OUTPUT.
LOOP AT SCREEN.
IF <your test on itab-fields>
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
Regards
01-29-2008 2:16 PM
In the PBO when LOOPing on internal table with table control, do something like
LOOP AT itab
WITH CONTROL ctrl
CURSOR ctrl-current_line.
MODULE itab_map_fields.
MODULE itab_line_attr.
MODULE itab_get_lines.
ENDLOOP.
In MODULE itab_line_attr set read-only attributes
MODULE itab_line_attr OUTPUT.
LOOP AT SCREEN.
IF <your test on itab-fields>
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
Regards