Skip to Content

The field XXX cannot be totalled because of field overflow

I've got the following message in my ALV grid report:

"The field Hours cannot be totalled because of field overflow

Message no. 0K 051 "

The column reference is to CATSDB-CATSHOURS (QUAN 4/2).

The fieldcatalog is generated the following way:

Code:

METHOD fill_fieldcatalog.

DATA: r_wa_fieldcat TYPE lvc_s_fcat.

*--> CATSDB

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = 'CATSDB'

i_client_never_display = flagged

CHANGING

ct_fieldcat = r_it_fieldcat.

...

In SE16 I can summarize this field .... but I have no idea why it works there and doesn't in my report.

I found OSS note 435362, it describes the same situation, but we already have the package level mentioned there....so it's not my case.

Any idea?

Thanks in advance,

Incho

Ps:My release is SAP R/3 46C and ALV grid is implemented based on cl_gui_alv_grid.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 27, 2004 at 02:15 PM

    Set the fieldlenght to 10 or something like that in the fieldcatalog for th especifiet field (CATSHOURS) ...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2004 at 03:36 PM

    Probably you get an error only when your total exceeds 9999.99

    Indeed this message appears when arithmetic error occurs in form FB_SUBTOTALS_GET of module pool SKBH:

    catch system-exceptions arithmetic_errors = 5

    conversion_errors = 5.

    ---

    endcatch.

    if sy-subrc = 5.

    ---

    MESSAGE I051(0K) WITH LS_FIELDCAT-SELTEXT.

    endif.

    To avoid this you have to change internal type of your field in catalog, not just then output length. QUAN 4/2 is not enough to store big numbers.

    Add a comment
    10|10000 characters needed characters exceeded

    • No solution, but maybe an explanation....

      the fields is a quantity field with reference to a unit.

      Since the unit determines how many decimals are displayed, I could imagine that a "large" can be summarized if the reference to the unit is ignored but fails if it has to be displayed without decimals.

      Just a thought....

      Christian

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.