Skip to Content
0
Former Member
Apr 21, 2008 at 08:02 AM

REUSE_ALV_HIERSEQ_LIST_DISPLAY subtotal

238 Views

Hi gurus,

I'm using the reuse_alv_hierseq_list_display fm in my program and I need to display the subtotal per purchase document.

I had already added codes:

data: gt_sort type slis_t_sortinfo_alv,

gs_sort like line of gt_sort.

gs_sort-spos = 1.

gs_sort-fieldname = 'LIFNR'.

gs_sort-tabname = 'IT_HEADER'.

gs_sort-up = 'X'.

gs_sort-subtot = 'X'.

append gs_sort to gt_sort.

clear gs_sort.

gs_sort-fieldname = 'EBELN'.

gs_sort-tabname = 'IT_DETAIL'.

gs_sort-up = 'X'.

gs_sort-subtot = 'X'.

append gs_sort to gt_sort.

clear gs_sort.

However, this does not work. Is there any other way to force a subtotal?

Kindly advise.

Points will be rewarded.

Thanks!