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

BSEG-DMBTR field calculation error

Former Member
0 Likes
1,671

Hi,

I am having a structure for BSEG table.DMBTR is the field to calculate the amount.while performing loop calculation the amount exceeds CURR13,DEC2 length,and thus gives the following

DUMP: Field too small when calculating totals in internal table.

Should I define a ZDATAELEMENT? When I am assigning the DMBTR field to type STRING,it gives error while doing SELECT.

Please Advice

Hi,

I am having a structure for BSEG table.DMBTR is the field to calculate the amount.while performing loop calculation the amount exceeds CURR13,DEC2 length,and thus gives the following

DUMP: Field too small when calculating totals in internal table.

Should I define a ZDATAELEMENT? When I am assigning the DMBTR field to type STRING,it gives error while doing SELECT.

Please Advice

4 REPLIES 4
Read only

Former Member
0 Likes
1,094

hi,

Try this..

do one thing increase the length of filed in the internal table.

hope this helps

Regards

Ritesh J

Read only

Former Member
0 Likes
1,094

Hello

In internal table declare field DMBTR with size more than CURR13,DEC2 (for example CURR16,DEC2).

Read only

0 Likes
1,094

SOLVED

I have used DMBTR TYPE SCPRCURR

Thanks

Read only

0 Likes
1,094

Hi,

You can fetch the data from table using ORIGINAL length and type of DMBTR and while calculating, you can populate it in a character field like WV_DMBTR(30).

This would solve your problem.

Regards,

Bhavika