on 12-11-2014 12:15 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any update about this topic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Hi,
i just ran into this behaviour, did anyone find a solution or place this with SAP?
Regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.