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

Decimal Problem while division in abap

Former Member
0 Likes
2,180

Hi dudes,

I'm using following statement in the report

l_steuer_ep-zzfwgross_SGD = ( ep-zzfwgross ) / ( w_exrate-EXCH_RATE ) .

where EP-ZZFWGROSS = 30694.30-

and W_EXRATE-EXCH_RATE = 0.77851

Resultant value definitely will be greater than 30694 logically thinking...

but i'm getting 0.39- .

Both zzfwgross as well as zzfwgross_sgd are Same Data Types. I dont know why its happening...

My Actual requirement is to convert Currency which is in USD(zzfwgross) into SGD (zzfwgross_sgd)

<removed by moderator>

Regards,

Annamalai.

Edited by: Thomas Zloch on Nov 17, 2011 1:20 PM

1 ACCEPTED SOLUTION
Read only

former_member381146
Participant
0 Likes
848

Hi,

Make sure the 'Fixed point arithmetic' checkbox is checked in attributes of program.

However, this checkbox is visible for type 'Executable program' not for include program.

Regards,

Santosh

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
848

Search in SDN for fixed point arithmetic

Kesav

Read only

former_member381146
Participant
0 Likes
849

Hi,

Make sure the 'Fixed point arithmetic' checkbox is checked in attributes of program.

However, this checkbox is visible for type 'Executable program' not for include program.

Regards,

Santosh

Read only

surajarafath
Contributor
0 Likes
848

Hi AnnaMalai(Brother Mountain)

-(is that your name..?? Pls forgive me if wrong ..;-) )

If you want to convert to USD to SGD, you need not to use formulas,

there will be many Functional Modules available to convert,

For ex: CONVERT_TO_FOREIGN_CURRENCY

you can use these FMs to convert the currencies, it would be the best option..

Read only

0 Likes
848

Hi dudes,

I didnt check that Fixed Point Arithmetic option in the Report.

After checking it works ... Thank u so much kesav, Santhosh and Playsuji....

Regards,

Annamalai.