Skip to Content
0
Former Member
May 17, 2010 at 05:11 AM

Problem in filling field catalog as table is dynamic

35 Views

Hi All,

I have to populate the data using the below function module and i am passing dynamic internal table <f_list> in place of list.

i have to populate the field catalog fc_hier which is getting field by standard program but i have to add additional fields which are coming from dynamic internal table .

fc_hier-fieldname = l_fld_name.

fc_hier-tabname = <f_list>.

fc_hier-seltext_s = wa_char-name_char.

append fc_hier . >>>> but it is not allowing this fc_hier-tabname = <f_list> statement..*

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

i_interface_check = g_interface_check "n777869

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_pri

it_fieldcat = fc_hier[]

i_default = 'X'

i_save = 'A'

is_variant = alv_variant

it_events = gt_events[] "n777869

i_tabname_header = 'HEADER'

i_tabname_item = 'LIST'

is_keyinfo = alv_keyinfo

TABLES

t_outtab_header = header[]

t_outtab_item = <f_list>

  • t_outtab_item = list[]

EXCEPTIONS

program_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

How can i assign table name to fc_hier-tabname as it is not taking <f_list> as input.

Thanks in advance......

Ankur