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

report

Former Member
0 Likes
1,497

Hi,

I am wrkg on a report.In this I have used a currency field.When I try to execute,it is giving error as 'unable to interpret 145,6 as a number'.What does this mean?

13 REPLIES 13
Read only

Former Member
0 Likes
1,475

This is because of the comma.

Read only

Former Member
0 Likes
1,475

It interprets , as a character not as a decimal point.

Either put in the number as 145.6 or change your decimal notation in your user settings:

System - User Profile - Own data

Tab Defaults - Decimal Notation

Regards,

Michael

Read only

Former Member
0 Likes
1,475

Hi Hema,

Give the value as 145.6. SAP can not interpret 145,6.

<b>Reward for helpful answers</b>

Satish

Read only

Former Member
0 Likes
1,475

Hi Hema,

SAP interprets , as a character not as a decimal point.

So provide the value as 145.6.

Incase ur settings might also be a problem.

Change your decimal notation in your user settings:

System - > User Profile - > Own data - > Tab Defaults -> Decimal Notation

Reward if Useful.

Regards,

Chitra

Read only

0 Likes
1,475

Hi,

I have given that field as char type.Even then it is giving dump error

Read only

0 Likes
1,475

Hi Hema,

Try this.

replace ',' with '.' in that field.

Reward if Useful.

Regards,

Chitra

Read only

0 Likes
1,475

when you declared it as 'Char' what is the error u r getting?

Read only

0 Likes
1,475

Hi,

Even when I declared it as char type I am getting error as 'unable to interpret 145,6 as a number'.Could u pls suggest me some solution for this?

Read only

0 Likes
1,475

Hi Hema,

Try this.

replace ',' with '.' in that field.

Reward if Useful.

Regards,

Chitra

Read only

0 Likes
1,475

can u paste the varible declaration?

Read only

Former Member
0 Likes
1,475

Hello Hema,

When you define it as a character field you should definitely not get that error. Are you moving the character field into a number field later on because than it is not allowing this because of your decimal settings in your user profile.

Either put in the number as 145.6 (point instead of comma) or change your user settings for the decimal notation so SAP interprets a , as a comma. You always need to input any numbers with decimal point (either . or ,) that you defined in your user settings.

Regards,

Michael

Read only

Former Member
0 Likes
1,475

Hi,

Could you please let us know, you are displaying the data in ALV?

Thanks,

Sriram Ponna.

Read only

0 Likes
1,475

Hi Sriram,

My requirement is to upload the data from excel file to ztable(zrb_hdr).In the internal table(t_zrb_hdr) i have changed the data types of date,time and currency fields to char type.I have used fm 'ALSM_EXCEL_TO_INTERNAL_TABLE' to read the excel file.To upload the data to ztable i haveused insert zrb_hdr from table t_zrb_hdr.But here zrb_hdr and t_zrb_hdr don't have the same structure.so it is giving error.Now how can I upload data to ztable?

Regards,

Hema