cancel
Showing results for 
Search instead for 
Did you mean: 

Fill model with tabledata

Former Member
0 Kudos

Hi everybody,

Can someone please tell me how to fill a model with data from a table? I am near to desperation.

The problem is: I have a model constructed from a R/3 function module. The function module defines some import parameters one of them is a table.

My idea was to first create a new instance of the model input class then set all the import parameters, bind the model to a model node in context and finally execute it.

Well, there is no problem with the simple import parameters (just three strings have to be set). But when I try to set the "table parameter" I get some trouble. The "set" method for this parameter only allows to set an object of type "AbstractList" (which is NOT java.util.list). There is also an "add" method for this parameter but trying to use this ends up in an "ArrayIndexOutOfBoundsException" (java.lang.ArrayIndexOutOfBoundsException: -1).

I wonder now how to fill up the "table" parameter with data. Can someone please tell me the "usual" way?

Thanks in advance for all answers!

Regards,

Torben

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I found a very good posting from Betran Ganz ()