Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

report output screen when used cl_alv_table_create=>create_dynamic_table

Former Member
0 Kudos

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?

5 REPLIES 5

Sm1tje
Active Contributor
0 Kudos

How did you define your custom container?

Otherwise try to use the FULLSCREEN variant for displaying ALV-grid.

Former Member
0 Kudos

Hi,

Increase the length of the Container on the screen in whcih you are displaying ALV.

Former Member
0 Kudos

Hi,

Using this you have created a dynamic internal table. Please check how you have displayed the contents in output.

Thanks,

Jyoti

Former Member
0 Kudos

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.

0 Kudos

answered