Skip to Content
0
Former Member
Apr 18, 2007 at 10:27 PM

Group REUSE_ALV_BLOCK_LIST_APPEND

111 Views

Hi,

I have a problem with REUSE_ALV_BLOCK_LIST_APPEND, i try grouping MATERIAL NUMBER but dont work, i do the next,

xs_event-name = slis_ev_top_of_page.

xs_event-form = 'XTOP_OF_PAGE'.

APPEND xs_event TO gt_xevents.

ls_sort-fieldname = 'MATNR'.

ls_sort-tabname = 'A004'.

ls_sort-spos = '1'.

ls_sort-subtot = 'X'.

ls_sort-up = 'X'.

APPEND ls_sort TO d_sortcat.

CLEAR ls_sort.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

is_layout = x_layout

it_fieldcat = xfield

i_tabname = 'A004'

it_events = gt_xevents

it_sort = d_sortcat[]

i_text = 'MATERIAL'

TABLES

t_outtab = ti_a004.

I hope you can help me,

Tks