Skip to Content
avatar image
Former Member

report output screen when used cl_alv_table_create=>create_dynamic_table

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Apr 20, 2009 at 12:35 PM

    How did you define your custom container?

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 20, 2009 at 12:39 PM

    Hi,

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2009 at 06:16 AM

    Hi,

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

    Thanks,

    Jyoti

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 23, 2009 at 03: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.

    Add comment
    10|10000 characters needed characters exceeded