How to pass a list parameter from Javascript?

Hi QnaSAP, 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?

SAP Consultant, needs help regarding “How to pass a list parameter from Javascript? “





Browse more questions like this in module: SAP Tools And Tech


Question filed under SAP Module: SAP Tools And Tech Tags: , , ,



Search for solution...


Disqus this Question






sap forum