Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to pass a list parameter from Javascript?

Hello, there!

I have a transaction that receives a list parameter. I have built an XAcute Query for it and mapped the input parameter so that I can pass it with the getQueryObject().setParam(1, myList) Javascript method.

The myList parameter is a Javascript string array.

I can see the parameter getting to the transaction (when I log it, I can see "1, 2, 3" as a result), but when I call the size(list) function, it always returns 0. Also, if I try to get an element of this list, it doesn't work.

It seems that my comma-separated input string is not being correctly transformed on an MII list.

Do you know what I should do to solve this problem?

Thanks in advance!

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question