Application Development and Automation 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: 
Read only

ALV Grid-dump

Former Member
0 Likes
794

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

6 REPLIES 6
Read only

peter_ruiz2
Active Contributor
0 Likes
768

hi kumar,

can you paste the error message?

regards,

Peter

Read only

Former Member
0 Likes
768

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.

Read only

Former Member
0 Likes
768

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

Read only

Former Member
0 Likes
768

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..

Read only

Former Member
0 Likes
768

hi Kumar k

just give the error message or write ur enitre code

to get a proper solution.

with regards

Rohan Shetty

Read only

Former Member
0 Likes
768

Hi

I Solved the problem myself.

I didn't implement the END-OF-PAge

Thats why its going to dump