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

fields type problem

Former Member
0 Likes
759

hi,

i have to take care in program that have dump(not mine), what happen is that the program doing sum to field type char10 but it sum fields (10 fields) of curr 15.2 and when i check in the debuger (the fields of doing sum into)i see number

like *052364588 (num with asterisk ) i dont now way the program is working like that but what can be the problem?

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
727

Hi,

Please try to use data type F (Floating point number) or I (Integer) for your sum calculation.

Regards,

Ferry Lianto

7 REPLIES 7
Read only

Former Member
0 Likes
727

It shows the value has exceeded the sum field length of 10.

Thats the reason why you are seeing *052364588.

You have to increase the field length, such that it holds the summation value.

Hope this helps.

Vinodh Balakrishnan

Read only

mnicolai_77
Active Participant
0 Likes
727

hi,

you havev to increase the dimension of the field. from char10 to char17 or more.

bye

Marco

Read only

Former Member
0 Likes
727

hi ,

in st22 i get this erorr what it is?

Error analysis

Since the caller of the procedure could not have expected this exception

to occur, the running program was terminated.

The reason for the exception is:

The program attempted to interpret the value "*005926427" as a number, but

since the value contravenes the rules for correct number formats,

this was not possible.

Integers are represented in ABAP using a sequence of digits and, in some

cases, a preceding sign.

The system offers the following options for displaying floating point

numbers:

[sign][mantissa]E[sign][exponent]

[sign][whole number part].[fractional part]

e.g. -12E+34, +12E-34, 12E34, 12.34

If the error occurred in one of your own programs or in an SAP program

that you modified, try to correct it yourself.

Read only

Former Member
0 Likes
727

hi,

any idea?

regards

Read only

0 Likes
727

Try this.

Split <char variable> at * into <val1> ..

Now the * is removed from ur value.

Now u can use that Val1 in ur calculations.

awrd points if useful

Bhupal

Read only

0 Likes
727

thanks

i try it an let u now

Regards

Read only

ferry_lianto
Active Contributor
0 Likes
728

Hi,

Please try to use data type F (Floating point number) or I (Integer) for your sum calculation.

Regards,

Ferry Lianto