‎2008 Mar 13 3:10 PM
Hi!
I want to show table data in a table control with no input-possibility in some cases (not in all, so making the whole control as output in the layout-editor is no solution for me).
I tried to make it with "loop at screen" and "screen-xxx" but it doesn´t work like for normal dynpro-fields.
thank you for your answers!
Andreas
‎2008 Mar 13 4:01 PM
Try the following:
process before output.
* Set screen attributes for top part of screen
MODULE modify_screen_0100_top.
* Set screen attributes for table control
LOOP AT itab_0100 with control tab_ctl
cursor tab_ctl-top_line.
MODULE move_data_to_0100.
MODULE modify_screen_0100.
ENDLOOP.
*&---------------------------------------------------------------------*
*& Module MODIFY_SCREEN_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE modify_screen_0100 OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = '001'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE. " MODIFY_SCREEN_0100 OUTPUTRob
‎2008 Mar 13 3:49 PM
You have to specify
output only, input, output attributes for the fields of the table control in SE51.
I hope it helps.
thanks
‎2008 Mar 13 4:01 PM
Try the following:
process before output.
* Set screen attributes for top part of screen
MODULE modify_screen_0100_top.
* Set screen attributes for table control
LOOP AT itab_0100 with control tab_ctl
cursor tab_ctl-top_line.
MODULE move_data_to_0100.
MODULE modify_screen_0100.
ENDLOOP.
*&---------------------------------------------------------------------*
*& Module MODIFY_SCREEN_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE modify_screen_0100 OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = '001'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE. " MODIFY_SCREEN_0100 OUTPUTRob