Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Rounding off the value with only logic script

Hi BPC experts,

I would like to round off the values to 2 decimals when running a currency translation or consolidation (which also requires a currency translation).

My logic script is the following :

for currency translation :

for consolidation (the screenshot only displays the currency translation part) :

These logic scripts work as for having only 2 decimals but it does not always round off the values in the right way :

For instance, I have 723337,19207 euros without the rounding process. Once it is rounded, it shows 723337,20 euros.

Normally, it should round to 723337,19 euros.

A second example is 164744,739327 euros but when rounded, it displays 164744,73 euros. Normally, it should display 164744,74 euros.

Therefore, is there something to add to this logic script ? Or is there another solution for rounding off the values ?

I also tried the BADI in the How to Guide but it did not work at all. I ran /CPMB/DEFAULT_FORMULAS and linked this package to the logic script defined in the guide but there was 0 record.

Please, help me out.

Thank in you in advance,


Former Member
Not what you were looking for? View more on this topic or Ask a question