cancel
Showing results for 
Search instead for 
Did you mean: 

Value Mapping

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

prateek
Active Contributor
0 Kudos

Which method is using the variable sAuxi. Try returning the sAuxi value properly.

Regards,

Prateek

Former Member
0 Kudos

Hi Sharma,

if you get a map, you have to read to value out of the map with

return

map.get(key);

Regards Mario

Former Member
0 Kudos

Hi Mario,

Can you please explain why is this coming as I am not able to resolve it. and how to use get on it.?

Thanks & Regards,

Priyanka

Former Member
0 Kudos

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