on 09-10-2009 10:00 AM
Hi
I am using JAVA Lookup API for RFC Receiver. and I want to get all the parameternames and parameterValues and assign it to two String arrays.
1. For parNames
2. For parValues
Can anyone please help me on this to write a UDF ?
Thanks
Dhanish Joseph
if you are using HashMap to assaign parameterName and the parameter Value then create
// Create a hash map
HashMap hm = new HashMap();
// Put elements to the map
hm.put(parameterName, parameterValue);
make sure put method signature is proper
public Object put(Object key,
Object value)
you have to pass object type parameters to the put method for example
hm.put("John Doe", new Double(3434.34));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh
I dont have to set parameters, Instead get ALL Parameter Names and Parameter Values!!!
and assign all the parameter Names to a string Array and similarly Parameter values...
Dhanish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can add to global container as name value pair after gertting the values from the RFC
container.getGlobalContainer().setParameter(Name,"Value");
later you can retrieve the same instead of using arrays....
if need arrays also you can use for loop on resultSet and store each value in arrays
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am reusing one of the existing lookups.. It is working fine..
But after all these(Means after lookup), I have to assign all parameterNames and parameterValues to string arrays.
I tried it using HashMap, but getting Nullpointerexception.
Can anyone help me on this..
Dhanish Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hope you have gone through this
[How to use RFC|http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417200)ID1361600950DB00518938541914253793End?rid=/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439&overridelayout=true]
Regards,
Pasanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer
https://wiki.sdn.sap.com/wiki/display/Snippets/User-definedMappingFunctionforRFC+Lookup
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.