Filter the export parameter values in RFC
I have made a RFC call by passing Input Parameter to pull output data from the SAP R/3 System. The call was successful and I can able to display this in a table using Java webdynpro.
Is it possible to filter the output values returned by the RFC based on some condition.
For example, I passed role name as an input parameter and got list of users assigned to that role along with their profile details such as user group, name, email, country etc...,
After receiving all output values, I want to check if the user belongs to a specific group , say Group XYZ. If so , then delete that user from the table.
How can I do this?
This is a common issue when working with nodes at particular index. Whenever you loop forward, it removes the first entry, but again starts off from the same position.
To avoid indexing issues, it is always suggested to use your loop backwards. Atleast I use this approach and it works fine for me.
So, you can use the same code you are using, but with a reverse loop i.e.
for(int i=node.size()-1; i >=0; i--)
element = node.getElementAt(i);
Hope this helps.