I am trying to fetch a context data collected from a gridview earlier in SAP and input them in a standard Multiple Selection SAP box. Unfortunately, instead of a list of values, I get UNDEFINED value inserted in the field.
What am I doing wrong?
Breakdown of the steps:
1. I collect the values from SE16N gridview table using below given code (inserted in a Custom block) and simultaneously I make it a context item called "Customers". As I can see in the Debugger's Tester, the numbers are collected correctly.
// Collect all customer numbers rootData.Temp.Customers=SAPLogon750.pKNKKResults.oKNKKResults.getRowsByColumn('KUNNR');
2. I create a context "Temp" folder with "Customers" item in it and make it an array. Is this step required at all?
3. I try to fetch the context data and set it in Multiple Selection box in Select Single Values tab in another tcode. I tried capturing the visible table field both as a single field and using Occurs method - below visible is the latter:
To fetch and set the context data I use the standard Set activity and try to link it with the aforementioned context item:
The generated code for this is visible below:
4. If I run it, I end up with getting an UNDEFINED value instead of the customer numbers that were stored in the context:
I would really appreciate your advice!