Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

REUSE_ALV_GRID_DISPLAY_LVC + Top_of_page

Former Member
0 Kudos

I have used function module "REUSE_ALV_GRID_DISPLAY_LVC",my top_of_page event is not getting triggered .I have put a break-point in th subroutine of top-of-page.its not going to debugging mode only .i built events and then passed to it_events even then its not working,,Is this the problem of the Function Module ? Any solutions.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Wt are the importing parameters you are using in the FM?

Regards,

Nilesh.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Wt are the importing parameters you are using in the FM?

Regards,

Nilesh.

0 Kudos
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
*     i_structure_name = 'QALS'
      is_layout_lvc    = gs_layout2
      it_fieldcat_lvc  = gt_fcat2
      i_callback_top_of_page  = 'TOP' ---Have Tried this 
*      it_events = it_event                  ---Have Tried this   but not even getting break-point.
    TABLES
      t_outtab         = gt_display
    EXCEPTIONS
      program_error    = 1
      OTHERS           = 2.

0 Kudos

How have you defined the form "TOP" ? Provide the code so that we can analyse.

0 Kudos

Please pass I_CALLBACK_PROGRAM with your program name. This should solve the issue.

Regards,

Nilesh.

Former Member
0 Kudos

Are you using the FM REUSE_ALV_COMMENTARY_WRITE?

example:

----


  • FORM TOP_OF_PAGE *

----


  • Even TOP-OF-PAGE *

----


FORM top_of_page.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = header

i_logo = 'LOGO'

ENDFORM. "TOP_OF_PAGE