Skip to Content
0
Oct 19, 2005 at 03:20 AM

REUSE_ALV_FIELDCATALOG_MERGE

28 Views

Hi

I am facing a problem using this FM. I have an Internal Table called OUT_TAB[] which is to be output using ALV List. Now to construct the FieldCatalog i used this FM and passed the name of the itab in the i_internal_tabname parameter. But it gives me a dump. So i created a structure called STR_NAME in ABAP Dictionary and referenced it in the FM. Now it is working fine. But i still dont want to create a strcuture unnecessarily. Can anyone help.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

  • i_internal_tabname = OUT_TAB

i_structure_name = 'STR_NAME'

  • I_CLIENT_NEVER_DISPLAY = 'X'

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

CHANGING

ct_fieldcat = fieldcat[]

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3