Skip to Content
0
Former Member
Nov 12, 2007 at 12:56 AM

ALV

22 Views

Hi ,

I am just learning ALV reporting.

I have an internal table and I have an issue here.

I am getting the output but the only problem is ...I am not getting the heading(field names ) for the output .

Please review my code and let me know if there is anything else I need to add in it..

-


CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = G_REPID

I_INTERNAL_TABNAME = 'GT_OUTPUT'

I_INCLNAME = G_repid

CHANGING

CT_FIELDCAT = GT_FIELDCAT

EXCEPTIONS

INCONSISTENT

INTERFACE = 1

PROGRAM_ERROR = 2

OTHERS = 3.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = G_REPID

  • IS_LAYOUT = GS_LAYOUT

  • I_SAVE = G_SAVE

  • IS_VARIANT = GS_VARIANT

IT_FIELDCAT = GT_FIELDCAT[]

  • IT_EVENTS = GT_EVENTS[]

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER

  • ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER

TABLES

T_OUTTAB = gt_output

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

IF SY-SUBRC = 0.

endif.