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

dump while total in ALV List

Former Member
0 Likes
3,321

Hi all,

After displaying the list in ALV grid, when i total the value of particular column then its giving me dump.

By giving message as

Runtime errors: MESSAGE_TYPE_X

Please help to resolve this issue.

Thanks in advance

Hi all,

After displaying the list in ALV grid, when i total the value of particular column then its giving me dump.

By giving message as

Runtime errors: MESSAGE_TYPE_X

Please help to resolve this issue.

Thanks in advance

10 REPLIES 10
Read only

Former Member
0 Likes
1,972

How did you fill the fieldcatalog for that quantity, the field's type should be a numeric one like QUAN.

Regards,

Ravi

Read only

Former Member
0 Likes
1,972

Refer this link, whetehr u have followed this way of coding.

http://www.sapdevelopment.co.uk/reporting/alvhome.htm

Reward if this helps,

Read only

Former Member
0 Likes
1,972

hi,

try to set the sum field type is like bseg-dmbtr. ( currency or number type )

set ALV_CATALOG-DO_SUM = 'X'.

result will be with sum.

regards

raj

Read only

Former Member
0 Likes
1,972

check the data type of quantity field.

Read only

Former Member
0 Likes
1,972

i am not getting any problem while displaying the list...List of a report is displaying fine...but after that when click on Total Button of ALV Grid List then its giving me Short Dump.

Read only

anversha_s
Active Contributor
0 Likes
1,972

hi,

for getting the total, the field shuld be a numeric type.kindly chk that.

Regards

anver

Read only

0 Likes
1,972

it is numeric type

Read only

Former Member
0 Likes
1,972

hello,

i face the similar problem like u i got the proper solution for that,

u shud look care fully towards urs alv field catalog str. where u populate the fields for output there u might somthing wrong with fields like..

wa_fieldcat-fieldname = 'MENGE'.

wa_fieldcat-seltext_m = 'QUANTITY'.

wa_fieldcat-col_pos = '12'.

  • wa_fieldcat-just = 'L'.

  • wa_fieldcat-DO_SUM = 'X'.

APPEND wa_fieldcat TO it_fieldcat.

CLEAR wa_fieldcat.

instead of this u might b somthing wrong while typing..

like that..

wa_fieldcat-fieldname = 'MANGE'.************************WRONG CAUSE IT IS *********************************NOT IN DB.

wa_fieldcat-seltext_m = 'QUANTITY'.

wa_fieldcat-col_pos = '12'.

  • wa_fieldcat-just = 'L'.

  • wa_fieldcat-DO_SUM = 'X'.

APPEND wa_fieldcat TO it_fieldcat.

CLEAR wa_fieldcat.

BYE..

Read only

1,972

Thanks to all for the help.

i was getting a short dump due to one of the field name not added in my final internal table which was getting displayed in the output.

i had added the filed name & my problem was solved

Read only

anversha_s
Active Contributor
0 Likes
1,972

hi Heta,

kindly assaign points to all peoplr who helped u.

Regards

Anver