cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Value Mapping from JAVA

Antonio_C10IT
Explorer
0 Kudos

Hi experts,

   I doing a custom adapter module and one of the things that I have to do is recover a value from a value mapping.

   For that I'm using the API com.sap.aii.mapping.value.api.XIVMService

   I try many options always with the same result, but basically the simplest call is something like that:

   String newString = XIVMService.executeMapping( "testavf", "cXML_Identity", "uno", "testtito", "cXML_SharedSecret");

  Im throwing the this string as an ModuleException to debug the problem, and always the value of this string is:

  Mapped value of Source: http://sap.com/xi/XI cXML_Identity testavf uno Target: http://sap.com/xi/XI testtito cXML_SharedSecret

  But nothing else more..

   I try with the standard context http://sap.com/xi/XI and also creating a VM with different context and also creating XIVMFactory.newIdentifier for the source and the target, always the result of the execution are the values I set for the call


  I try also recovering all the String array and checking all the values there is only this one...


  The information of my system is: NW731EXT_11_REL JAVA only Stack.


Thanks for your help

Regards

Accepted Solutions (0)

Answers (5)

Answers (5)

chrishyman
Explorer
0 Kudos

Add a Deploy Time and Runtime dependency to the DC com.sap.aii.mapping.lib.facade in your ear DC of your adapter module:

maxi1555
Contributor
0 Kudos

any update about this topic?

Former Member
0 Kudos

Hi Antonio,

could you give me some more details on how to develop and how to acsess this interface from adaptermodule?

Thanks a lot!

Andreas

Antonio_C10IT
Explorer
0 Kudos

Hi Andreas,

   You can create a sync interface using HTTP CC as sender and a fake target only to do a ping pong to get the value from the Value Mapping.

   So in the response of the ping/pong you do the value mapping and map the result into the response.

  To invoke this interface you have to use the URL that the HTTP channel has for this interface.

  In my case I decide to not use Value mapping and I created a table in ECC with that data, and I access it using an RFC by JCo.

Thanks

Best Regards.

Former Member
0 Kudos

i placed this with sap in an incident, we´ll see what comes out

This just seems like a stupid bug, maybee the developer left a comment in his coding and forgot to replace it with the right variable ...

i´ll write here if something turns out, if not there is at least a work a round 

Former Member
0 Kudos

Hi,

i just ran into this behaviour, did anyone find a solution or place this with SAP?

Regards

Andreas 

Antonio_C10IT
Explorer
0 Kudos

Hi,

   From the adapter engine is not possible to access to the Value Mapping itself.

  The only option you have is develop an interface to obtain the values from the value mapping.

Best Regards.

Antonio_C10IT
Explorer
0 Kudos

Hi,

  The problem is not the code, I try with the same code in a JAVA mapping and there works.

  So the new question: Is possible to access to a Value Mapping from a customer Adapter Module.?

  I'm doing it for AXIS adapter.

Thanks in advance.

Regards.

Former Member
0 Kudos

Hi,

Even am facing the same issue.

My custom adapter module has to access the Value mapping table however it returns the value as "mapped value of <Source_value>" and not the expected target value. But the same java code when used in java mapping to fetch the Values from value mapping works fine.

Can we access the Value mapping from Custom adapter module?

Please share your ideas.

Thanks,

Indumathi.

Antonio_C10IT
Explorer
0 Kudos

Hi,

   From the adapter engine is not possible to access to the Value Mapping itself.

  The only option you have is develop an interface to obtain the values from the value mapping.

Best Regards.