FDMEE Import Script Function round(float(strField),0) Returns Incorrect Value (Doc ID 2106083.1)
Hi all
I wanted to introduce a rounding in a FDMEE EPM to EPM (HFM to HFM) transfer and have applied the script below which I found on the Knowledge base on the Doc ID 2106083.1:
import java.math.BigDecimal
def rounding(strField, strRecord) :
strField = BigDecimal (strField) .setScale (0, BidDecimal.ROUND_HALF_UP)
return strField
However when I applied this script, it throws a Syntax Error: ("mismatched input " expecting EOF ('<string>' 11, 1, 'def rounding(strField, strRecord) : \n'))
Is there anybody who experienced something similar?
Note that when I apply the "normal" round script (which rounds amounts wrongly when there are more than 12 digits before the decimal place) then the import runs through without any issues (apart the 12 digit issue).