ā2013 Jan 28 5:47 AM
hi Experts,
I have created the alv grid report to display the balance periodic wise.
the report is displaying fine but the amount value in the report is not displaying the decimal value correctly .
for EX: i have the previous balance 1,455,932.41- and this month balance 8,075,892.48 then the cum.balance should be 6,619,960.07 but it is displaying 6,619960.48 and when we add to next month value 186 it is displaying 6,620,146.00.
the data type i have used is 'CURR'.
please suggest me what to do and what is the reason behind this problem .
thanks
Shambuling
ā2013 Jan 28 5:57 AM
Hi,
Check wether your Adding Values Data type and Destination variable data type same or not.
Thanks
Mani
ā2013 Jan 28 5:57 AM
Hi,
Check wether your Adding Values Data type and Destination variable data type same or not.
Thanks
Mani
ā2013 Jan 28 6:13 AM
hi nagamani
thanku for reply
i am storing the field val\ amount of that month in to the variable bal which is of type i,
is because of it its is displaying link that.
ā2013 Jan 28 6:15 AM
Hi Shambuling,
Instead of using type i, try declaring the variable like
data bal type p decimals 3.
This will solve your problem.
ā2013 Jan 28 6:20 AM
hi Aniket
Thank you very much that solved the issue. the report is fine now .
regards
Shambuling
ā2013 Jan 28 6:02 AM
hi,
for currencies its always better to use packed decimals,
the problem occured because while calculating your decimal value is changing . so use standard decimal 2 or three in both the values.
hope it helps,
Vinoth
ā2013 Jan 28 6:20 AM
ā2013 Jan 28 6:03 AM
Hi Shambuling ,
Can you be more specific how you are declaring and calculating the balance .
if you can provide the code , it will be more helpful to solve the issue
ā2013 Jan 28 6:16 AM
hi yogendra
thank you for reply .
i have stored the previous month amount in the variable when the loop is executed the field value is added with the previous balance and displayed .
ex fldval = bal + fldval1.
regards
Shambuling
ā2013 Jan 28 6:21 AM