Skip to Content

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

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.

java-code.jpg (96.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 01 at 06:26 AM

    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

    Add comment
    10|10000 characters needed characters exceeded