Skip to Content

SAP PO/PI - Calling UDF from Java Map with ResultList

Hello all,

I am hoping you can help me out. We have a UDF in a FUNCTION_LIBRARY as follows:


getEMAIL (String id, ResultList emails) { }

This UDF looks up all the e-mails for the associated ID and returns them in the ResultLIst emails.


My problem is that I need to call this UDF from a Java Mapping. I know how to link/make the call except for one part. How do I define the ResultList object?

Thanks for your help!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 03 at 07:27 AM

    Hi Brian!

    I guess you could import the package in which ResultList class is declared into your java program and further use it to get values.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 02:20 PM

    The resultlist.class is an interface and can't directly be instantiated. I have created my own implementation based on research I have seen online. I am still in the testing phase so not sure if this will work or not.

    Thanks for the response.

    Add comment
    10|10000 characters needed characters exceeded