04-20-2009 1:32 PM
Dear friends,
In report using class cl_alv_table_create=>create_dynamic_table the output grid in the screen is very small even there is so much of space.
can any one tell me how to make the output in full screen?
04-20-2009 1:35 PM
How did you define your custom container?
Otherwise try to use the FULLSCREEN variant for displaying ALV-grid.
04-20-2009 1:39 PM
Hi,
Increase the length of the Container on the screen in whcih you are displaying ALV.
04-21-2009 7:16 AM
Hi,
Using this you have created a dynamic internal table. Please check how you have displayed the contents in output.
Thanks,
Jyoti
04-23-2009 4:03 PM
Hi ,
Please check below sample code
DATA: dyn_table TYPE REF TO data,
dyn_line TYPE REF TO data.
* Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fcat_lvc
IMPORTING
ep_table = dyn_table.
ASSIGN dyn_table->* TO <dyn_table>.
* Create dynamic work area and assign to FS
CREATE DATA dyn_line LIKE LINE OF <dyn_table>.
ASSIGN dyn_line->* TO <dyn_wa>.
LOOP AT it_out_w.
MOVE-CORRESPONDING it_out_w TO <dyn_wa>.
APPEND <dyn_wa> TO <dyn_table>.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
is_layout = x_layout
it_fieldcat = it_fcat
it_sort = it_sort
it_events = it_event
i_save = 'A'
TABLES
t_outtab = <dyn_table>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Suma.
06-04-2009 1:11 PM