Skip to Content
author's profile photo Former Member
Former Member

Dump when summing up CURR field in ALV GRID display

Hi All,

I am getting dump when I try to sum the CURR field in my ALV Grid Display. The field is of CURR 23. I am using classes and methods to display alv grid.

I tried passing <fs_fieldcat>-do_sum = 'X'. When I did this, it is dumping without even displaying the alv grid.

Here is the part it is throwing dump:

ls_lvc_data-value = space.

clear ls_lvc_data-style.

loop at it_fcat_local assigning <ls_fcat>

where tech ne 'X' and no_out ne 'X'.

if l_invisible eq 'X'.

clear l_invisible.

if <ls_fcat>-do_sum is initial.

continue.

else.

clear ls_lvc_data-col_pos.

endif.

endif.

add 1 to ls_lvc_data-col_pos.

assign component <ls_fcat>-fieldname

of structure <ls_data> to <l_field_value>.

_if sy-subrc ne 0.

message x000(0k).

endif._

Regards,

Guru

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2010 at 04:14 PM

    Some one help me with this..

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Clemens Li

      Thank you Clemens. I did checked my fieldcatalog thoroughly and found that one of the field is not specified correctly.

      But just to develop my knowledge, I wanted to know more abt and I checked the link about the consistency check but couldnt understand much from the link you have given.

      Can you please explain how to check that with a small example.

      Regards,

      Guru.

  • Posted on Oct 23, 2010 at 07:57 PM

    Hi GuruCharan,

    the first thing you should do is run the [ALV consistency test.|http://help.sap.com/saphelp_nw70/helpdata/EN/d6/23253963143e6ae10000000a11402f/content.htm]

    Check the field catalog.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.