cancel
Showing results for 
Search instead for 
Did you mean: 

UDF Error (UDF to Truncate value from 4rd decimal without rounding off)

former_member303666
Active Participant
0 Kudos

Hi Team,

I am facing the below UDF issues. Please check the attached the screen shot.

While activate the above MM, i am getting the below error. Please check and suggest.

Function getValue, Line 3: Open bracket '{' missing for closed bracket '}': } ^


Regards,

Kesava.

Accepted Solutions (0)

Answers (1)

Answers (1)

Liz_
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Kesava

There are following problems on your UDF:

1. missing last ) before ; to close the sentence.

2. the string will be returned for the standard method indexOf(), for example "5". So you cannot use operator + for a string and 3.

Please modify the UDF accordinlgy.

https://wiki.scn.sap.com/wiki/display/XI/Standard+Functions+in+PI+7.0

Best Regards,

Liz