on 08-18-2008 11:30 AM
Hi,
I am calling value mapping function in my java mapping. code is :
String Source = xuUtil.getChildNodeText(nQuanity, "UoM");
String context = "http://sap.com/xi/XI";
String senderAgency = "UOM_PO";
String senderScheme = "SRM";
String receiverAgency = "UOM_ISO";
String receiverScheme = "ISO";
IFIdentifier src = XIVMFactory.newIdentifier(context, senderAgency, senderScheme);
IFIdentifier dst = XIVMFactory.newIdentifier(context, receiverAgency , receiverScheme);
try {
sAuxi = XIVMService.executeMapping(src, dst, Source);
} catch (ValueMappingException e) {
sAuxi = "";
}
no error in code, but everytime I am getting respose as "Map"
What can be reason.
Thanks & Regards,
Priyanka Sharma
Hi
Refer this link for Value Mapping (Refer Java section as per your requirement) https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf...
Thanks
Farooq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which method is using the variable sAuxi. Try returning the sAuxi value properly.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharma,
if you get a map, you have to read to value out of the map with
return
map.get(key);
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyanka,
I donot know much about the Value Mapping. But as per my knowledge we have to maintain the data while creating the value mapping.
eg: If your want different Employees details with the help of EMPID then you have to maintain a data table where you will give the relationship of the EMPID and the other details of it.
Like:
EMPID Name Salary
001 ABC 25000
some pre-defined data table has to be maintained.
So that when the value mapping is called then the values can be displayed in the output.
Please check the links:
http://saptechnical.com/Tutorials/XI/Graphicalmapping/conversions.htm
I hope it will be helpful for you.
Regards
Nutan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.