Skip to Content
0
Former Member
Sep 30, 2010 at 04:11 AM

Dynamic ALV using REUSE_ALV_HIERSEQ_LIST_DISPLAY

259 Views

Hi All,

My requirement is to display a dynamic output table using REUSE_ALV_HIERSEQ_LIST_DISPLAY.

I was able to successfully display the dynamic output in grid display using REUSE_ALV_GRID_DISPLAY. But when I try to display the hierarchial list, then only the T_OUTTAB_HEADER data is getting displayed. The T_OUTTAB_ITEM is not getting displayed.

I am creating the dynamic table using

CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE

EXPORTING

IT_FIELDCATALOG = I_FIELDCAT_DYN

IMPORTING

EP_TABLE = I_DYNTABLE

ALV Display:

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

I_INTERFACE_CHECK = G_INTERFACE_CHECK

I_CALLBACK_PROGRAM = ALV_REPID

I_CALLBACK_PF_STATUS_SET = 'SET_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

IS_LAYOUT = ALV_LAYOUT

IS_PRINT = ALV_PRINT

IT_FIELDCAT = FC_HIER[]

I_DEFAULT = 'X'

I_SAVE = 'A'

IS_VARIANT = ALV_VARIANT

IT_EVENTS = GT_EVENTS[]

I_TABNAME_HEADER = 'HEADER'

I_TABNAME_ITEM = 'LIST'

IS_KEYINFO = ALV_KEYINFO

TABLES

T_OUTTAB_HEADER = HEADER[]

T_OUTTAB_ITEM = <I_FS_DYNOUT>

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

Any pointers in this regard will be helpful. Also any existing code for dynamic ALV for grid display, will be helpful.

Thanks & Regards,

Sonali.