Skip to Content
0
May 29, 2008 at 05:41 AM

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

3883 Views

Can someone please help.

I'm using the FM 'REUSE_ALV_GRID_DISPLAY'. The alv gets created and the field catolog apparently works cause the columns have their names. The ALV has got the exact quantity of rows as the populated internal table, but the info does not get displayed. I've debugged this forever and cannot see what I should do differently. The FM receives the table with all the info in it. It passes it to the different calls within itself, but still does not display the table.

The code looks like this.

DATA: BEGIN OF itab_struct,

custn TYPE kna1-name1, "Customer name

cust TYPE vbak-kunnr, "Customer number

plant TYPE vbap-werks, "Plant

type TYPE vbak-auart, "Sales Order type

sales_no TYPE vbap-vbeln, "Sales Order number

so_date TYPE string, "Sales Order Date created

so_time TYPE string, "Sales Order Entry time

dl_no TYPE vbfa-vbeln, "Goods issue number

dl_date TYPE string, "Goods issue date created

dl_time TYPE string, "Goods issue time created

tot_time TYPE string, "Total time spent

so_av TYPE string, "Sales Order average

cust_av TYPE string, "Average by customer

av_time TYPE string, "Average time spent

END OF itab_struct.

DATA: itab LIKE TABLE OF itab_struct WITH HEADER LINE.

... and then I populate the table.

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

EXPORTING

i_list_type = 0

IMPORTING

et_events = i_event.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = w_pgm

i_structure_name = 'itab_struct'

it_events = i_event[]

  • i_callback_user_command = 'USER_COMMAND'

it_fieldcat = wa_fcat[]

  • i_bypassing_buffer = 'X'

  • is_layout = printtab_layout

  • is_print = print

  • i_save = save

TABLES

t_outtab = itab[].