In the documentation for uGetErrorInfo, it says the object returned is a DSEEntry object. I cannot find a JavaDoc for this object anywhere online. In the Example provided in the SAP documentation, it shows getName, firstAttr, etc. methods being called on this DSEEntry object. What methods are available for this object? Is there documentation on this anywhere?

Request clarification before answering.
Hi Brandon,
this is a transport object for key/value pairs, which you can navigate using two methods:
1. firstAttr() - gets the first key/value pair from the list
2. nextAttr() - gets the next key/value pair from the list
Once you have the object (e.g. in your example attr) then you can use standard HashMap methods like getKey and getValue to retrieve respectievely the key and the value stored in it.
If you know what you are looking for, you can also use containsKey method to check for existing entries.
Hope that helps,
Todor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK. I think I get it. So when I execute uGetErrorInfo and save it to a var value, thisErr in the case of the screenshot, that is a DSE Entry. From that, firstAttr returns the first key / value pair and nextAttr just cycles through the list until we get a null and then we know we're done. Both the firstAttr and nextAttr methods return a Map.Entry object so getKey and getValue will work here.
If I wanted to, the DSE Entry isn't exhausted like it would be with an Iterator so I could execute firstAttr on the thisErr object again and loop through all the key / value pairs as much as I wanted.
One point of clarity... the DSE Entry object in my example has three different methods being called on it, firstAttr, nextAttr, and getName. What does getName specifically return? I mean, I know it's a String but what information is in the name? Are there any other methods available on DSE Entry that might prove useful? Is there a JavaDoc anywhere out there for this object?
You also say I can use other common HashMap methods. Do you mean I can use them on the DSE Entry object (thisErr) or the Map.Value objects that firstAttr and nextAttr return? I could see that working if DSE Entry is an extension of HashMap but not on the Map.Entry objects that come from the firstAttr and nextAttr methods. Please explain.
Many thanks for the help on this so far. 🙂
Hi Brandon,
the name is nothing special - just a name to orient yourself as to which object you are looking at. You can easily try that out to get an idea of what it usually contains.
Unfortunately, i am not aware of any documentation on that. Its more like trial and error. As for other methods, i don't think you need other methods on this one. Its a simple key/value pair map and you just loop through it and get the data and do something with it.
BR,
Todor
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.