‎2008 May 05 9:12 AM
Hi Experts
Following code is going to dump. Pls advise me, anything wrong
form DISPLAY_ALV_REPORT .
gi_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gi_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
is_layout = gi_layout
it_sort = it_sort[]
it_fieldcat = gi_fieldcatalog[]
it_events = gi_events
is_print = gi_prntparams
TABLES
t_outtab = it_material
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
ENDIF.
endform. " DISPLAY_ALV_REPORT
FORM top-of-page.
Program Title
lw_line-typ = 'H'.
lw_line-info = 'Report'.
APPEND lw_line TO lw_header.
CLEAR lw_line.
*Displar Date.
lw_line-typ = 'S'.
lw_line-key = 'Date: '.
CONCATENATE sy-datum+6(2) '/'
sy-datum+4(2) '/'
sy-datum(4) INTO lw_line-info. "todays date
APPEND lw_line TO lw_header.
CLEAR: lw_line.
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDFORM. "top-of-page
‎2008 May 05 9:16 AM
‎2008 May 05 9:17 AM
It may be for the reason that the type of any or more parameter of gi_repid, gi_layout, it_sort, gi_fieldcatalog, gi_events, gi_prntparams, it_material do not match with the parameter of functional module.
‎2008 May 05 9:20 AM
HI,
Try adding these 2 lines in top-of-page initially i.e.:
REFRESH lw_header.
clear lw_line.
FORM top-of-page.
Program Title
lw_line-typ = 'H'.
lw_line-info = 'Report'.
APPEND lw_line TO lw_header.
CLEAR lw_line.
*Displar Date.
lw_line-typ = 'S'.
lw_line-key = 'Date: '.
CONCATENATE sy-datum+6(2) '/'
sy-datum+4(2) '/'
sy-datum(4) INTO lw_line-info. "todays date
APPEND lw_line TO lw_header.
CLEAR: lw_line.
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDFORM. "top-of-page
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2008 May 05 9:21 AM
Hi
FORM top-of-page.
Program Title
lw_line-typ = 'H'.
lw_line-info = 'Report'.
APPEND lw_line TO lw_header.
CLEAR lw_line.
*Displar Date.
lw_line-typ = 'S'.
lw_line-key = 'Date: '.
CONCATENATE sy-datum+6(2) '/'
sy-datum+4(2) '/'
sy-datum(4) INTO lw_line-info. "todays date
APPEND lw_line TO lw_header.
CLEAR: lw_line.
Use FM REUSE_ALV_COMMENTARY_WRITE here
ENDFORM. "top-of-page
What are u geeting error in dump analysis..
‎2008 May 05 9:23 AM
hi Kumar k
just give the error message or write ur enitre code
to get a proper solution.
with regards
Rohan Shetty
‎2008 May 05 9:24 AM
Hi
I Solved the problem myself.
I didn't implement the END-OF-PAge
Thats why its going to dump