Skip to Content
0
Former Member
Dec 22, 2010 at 07:33 PM

Declaring multiple dynamic internal tables

236 Views

Hi,

I'm trying to use function REUSE_ALV_BLOCK_LIST_APPEND to show multiple ALV's on a page. I however need to run this function multiple times, each time with a different internal tables (the number of these tables is never the same). What is the best method to declare a varying amount of internal tables?

I've searched the forum but couldn't find what I wanted. If you could point me to a link or in the right direction that would be great.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
    it_fieldcat                = it_alvfc
    is_layout                  = gp_layout
    i_tabname                  = 'GT_GETDATA'
    it_events                  = gt_alv_event
  TABLES
    t_outtab                   = <dyn_table>
  EXCEPTIONS
    program_error              = 1
    maximum_of_appends_reached = 2
    OTHERS                     = 3.

First run of FM: <dyn_table> refers to certain data

second run: <dyn_table> refers to new data

third run <dyn_table> refers to different data again

Thanks

Edited by: Hin Lai on Dec 22, 2010 9:15 PM

Edited by: Hin Lai on Dec 22, 2010 9:17 PM