Skip to Content
0

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

Apr 02 at 06:11 PM

49

avatar image

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Evgeniy Kolmakov Apr 03 at 07:27 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Brian Schroll Apr 09 at 02:20 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded