Value mapping access from XI module adapter
Hi,
is it possible to access a value mapping from an XI module adapter?
Thanks
Yann
hi
1)what is the differnce between ValueMappingReplication(Asynchronous) and ValueMappingReplicationSynchronous .
In sync you will get the value mapping replication status back and in async you won't. In sync based on the response u can update again in case of any failure. If data size is large use async.
2) Message type ValueMappingReplication contains Operation ,GroupId,Context,scheme,agency.
what is the meaning of Operation??
The operation that you are going to perform. Below is the operations list and the contents to be set in the message for the same
Insert = all fields must be set;
Delete =all fields must be set;
DeleteGroup = fields GroupID and context must be set;
DeleteContext = field Context must be set;
DeleteContextGeneric = Context contains the starting part for the context to be deleted
what is the use of group ID??
Displays the different representations of an object.
A value mapping group is identified uniquely by a GUID.
You can also assign a name to a value mapping group.
is this necessary to maintain all these values in Ztable and also source and target values ?? and use them in Abap aproxy logic??
no. system creates the value mapping table. you can take it frm there. no need of any ztables.
3) is there any Message Mapping Needed.?? and Interface Mapping Needed to implement value Mapping replication??
You will be sending the value mapping data from a sender system. If it can sent in the same format not required, otherwise you will have to.
4)what is the Sender Adapter type ??
Any adapter...depends on the sender system.
5) if I did replication from SAP..can I see the details in ID
You can see it in Cache monitoring in RWB.
for more details refer
http://help.sap.com/saphelp_nw70/helpdata/EN/13/ba20dd7beb14438bc7b04b5b6ca300/content.htm
rgds
Arun
Similar Messages
-
Value Mapping replication from SAP
Hi
I have gone thru the Blogs and threads related to value mapping replication from SAP.
Inmy observervation http://sap.com/xi/XI/System of SAP BASIS 7.00
still I have some doubts...
1)what is the differnce between ValueMappingReplication(Asynchronous) and ValueMappingReplicationSynchronous .
when we will use them.
2) Message type ValueMappingReplication contains Operation ,GroupId,Context,scheme,agency.
what is the meaning of Operation??
what is the use of group ID??
is this necessary to maintain all these values in Ztable and also source and target values ?? and use them in Abap aproxy logic??
3) is there any Message Mapping Needed.?? and Interface Mapping Needed to implement value Mapping replication??
but in this blog
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1301i [original link is broken] [original link is broken] [original link is broken] didnt find any interface mapping .
4)what is the Sender Adapter type ??
5) if I did replication from SAP..can I see the details in ID
please guide me
regards
munnahi
1)what is the differnce between ValueMappingReplication(Asynchronous) and ValueMappingReplicationSynchronous .
In sync you will get the value mapping replication status back and in async you won't. In sync based on the response u can update again in case of any failure. If data size is large use async.
2) Message type ValueMappingReplication contains Operation ,GroupId,Context,scheme,agency.
what is the meaning of Operation??
The operation that you are going to perform. Below is the operations list and the contents to be set in the message for the same
Insert = all fields must be set;
Delete =all fields must be set;
DeleteGroup = fields GroupID and context must be set;
DeleteContext = field Context must be set;
DeleteContextGeneric = Context contains the starting part for the context to be deleted
what is the use of group ID??
Displays the different representations of an object.
A value mapping group is identified uniquely by a GUID.
You can also assign a name to a value mapping group.
is this necessary to maintain all these values in Ztable and also source and target values ?? and use them in Abap aproxy logic??
no. system creates the value mapping table. you can take it frm there. no need of any ztables.
3) is there any Message Mapping Needed.?? and Interface Mapping Needed to implement value Mapping replication??
You will be sending the value mapping data from a sender system. If it can sent in the same format not required, otherwise you will have to.
4)what is the Sender Adapter type ??
Any adapter...depends on the sender system.
5) if I did replication from SAP..can I see the details in ID
You can see it in Cache monitoring in RWB.
for more details refer
http://help.sap.com/saphelp_nw70/helpdata/EN/13/ba20dd7beb14438bc7b04b5b6ca300/content.htm
rgds
Arun -
Value Mapping Replication from BPM
Hi,
I'm trying to maintain some value mapping replication data from a BPM. Based on certain steps and their results, a Value Mapping Replication message is sent from BPM. I configured the the receiver as XI system and used the XI channel with java path as mentioned in the help.
Though I can see a checkered flag in SXMB_MONI, I cant see the data in the RWB cache monitoring. When I double click the message, by I dont see the the payload received by the receiver but I see the SOAP envelope with some details. When I execute the scenario from ABAP out bound proxy and the same receiver XI channel, I can see the value mapping data in cache monitoring of RWB.
Whats wrong/missing?
Thanks in advance
PraveenSomebody help me !!
-
Upload value mapping - migration from Requisite
Hi all,
We have some rules set up in Requisite that maps for example a category code provided by the supplier ot a material group code. Currenlty, I have been manually maintaining the value mapping in Import Manager. I am wondering whether there is a way to load the mappings (mainly the VALUE mapping) which we already have available in Requsition (exported may in excel or csv format)?
Appreciate any help on that.
Cheers!
SFHi SF
I dont think this is possible. for the first time you need to do the value mapping manually and save the map for the next uses.
A workyround can be to use conversion tables in XI/PI and convert the values before posting to MDM. this becomes more scalable as for any delta value conversions we need to add the netries in the conversion table instead of updating the import map.
best regards
Ravi Kumar -
Import conversion data table from SAP R/3 into value mapping table in XI
Hi:
Somebody knows how to import a table with conversion data that are in SAP R/3 and to take it to a value mapping table in XI?
The purpose is to use a mapping table that can change in the future. Must I use a ABAP programming that retrieve data and build the value mapping table?
If so, how I specify in the ABAP programming the group id, the scheme, the agency and the corresponding value?
Please, help me.
Regards!!!Hi David,
please refer to this section in the help: http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
There is an interface for mass replication of mapping data. The steps you need to carry out to use this are:
+Activities
To implement a value-mapping replication scenario, proceed as follows:
1. Register the Java (inbound) proxies.
To do so, call the following URLs in the following order in your Internet browser:
¡ http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication (for the asynchronous replication scenario)
¡ http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplicationSynchronous&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplicationSynchronous&method=valueMappingReplicationSynchronous (for the synchronous replication scenario)
You only need to perform this step once (for each installation).
2. Application programming
The ABAP program must perform the following tasks:
¡ Read the value mapping data from the external table
¡ Call the outbound proxy used to transfer the data to a message, which is then sent to the Integration Server
3. Configuration of the replication scenario in the Integration Directory
This involves creating all the configuration objects you need to execute the scenario successfully. One special aspect of the value-mapping replication scenario is that the receiver is predefined (it must be on the Integration Server). The sender, however, is not predefined in the replication scenario and can be defined to meet your individual requirements.
For example, you can use the shipped ABAP proxies.
In the case of the receiver communication channel, choose the adapter type XI. Ensure that you configure a channel for the Java proxy receiver in this case.
Enter the path prefix /MessagingSystem/receive/JPR/XI for this purpose.
+
Regards
Christine -
Accessing values during runtime in value mapping
Hi all,
We have a specific requirement , where in we have a set of fields coming from the source system. All the fields have values expect few. The few which don't have values are reserved for future use, and for each source field there is a corresponding target value and we need map them.
We have used value mapping here, but it doesn't work for fields which don't have values.
We have thought of accessing the fields which do not have values, dynamically or at runtime by connecting the database of the source system.
Is it possible to do this, if yes, please provide with your inputs and alternatives.
thanks,
younusGo through this:
http://help.sap.com/saphelp_nw70/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
<b>To implement Value Mapping, following activities have to be performed:</b>
<b>1.</b> Register Java Proxies. This is one time activity for each installation. Following URL has to be called for registering asynchronous replication scenario:
http://<Server>:<Port>/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication
<b>2.</b> Application Programming: ABAP program has to be written to perform following tasks:
<b>a.</b> Read Value Mapping data from table.
<b>b.</b> Call Outbound Proxy to push the data into a message to Integration Server.
<b>3.</b> Configuration of Replication scenario in Integration Directory.
Regards,
Sarvesh -
Lookup value mapping table through message mapping.
Hello All,
I am working on a graphical mapping (message mapping). When trying to map the source message to the target message, I need to find out it a particular <b>key</b> exists in the <b>value mapping table</b>. Depending on the result, I need to map different source fields to the target field.
Is there any inbuilt function which will allow me to do a lookup on a value mapping table, or is it possible to lookup a value mapping table from a UDF?
Please help!
Warm Regards,
KeertiHi,
Please see the below links for Value mapping ..
Value mapping /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
Value mapping in XSLT /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
Value Mapping replication - /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
Also see
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
/people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
Regards
Pradeep N -
XI Value Mapping Replication JPR Error
Hello together,
I am trying to insert items from a csv-file into XI Value Mapping by using the XI adapter. Mapping and configuration is finished, the file is picked by file-adapter and comes through the mapping. In the SXMB_MONI the message is processed correctly, but in the RWB I get the following error:
"Runtime exception during XML parsing: Error parsing document. Exception: Generic Exception: com.sap.aii.proxy.xiruntime.core.XmlProxyRuntimeException: InvocationTargetException when calling method com.sap.xi.xI.system.ValueMappingReplicationItem_Type$Operation_Type.fromValue: insert is not among the enumerated values."
Do you have any idea, what the problem is?
Thank you very much in advance!
Kind regards,
FredWhat is the receving adapter?
It would be worth extending the trace file to get a better handle on the error.
Traces are used to analyze runtime errors. By setting a specific trace level for specific locations, you can analyze the behavior of individual code segments at class and method level. This is done with the help of the log configurator service:
 Services
 Log Configurator
 Locations
 Choose the location (Java package) and the tracing level (severity)
(for example, com.sap.aii.adapter.file)
 Root Location > com > sap > aii > File
 Set the severity and choose Copy Severity to Subtree.
Depending on what adapter you are using, determines the root location.
Do this then run the interface again. The trace file will provide the specific error causing the problem. -
Value Mapping Tables are not updated in RWB cache
Hi Friends,
I am doing value mapping replication from SAP.
I am following
/people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
1)
I didnt changed ABAP proxy of ValueMappingReplicationOut in SAP system.
is anything to... its already in Active state
2)I used ABAP report to call proxy in SAP system.
while debugging ,I come to know that values are populating in the structure svmr_value_mapping_replication in proxy.
3) activated Java inbound proxy (async).I got respose like
Interface http://sap.com/xi/XI/System#ValueMappingReplication registered with value localejbs/sap.com/com.sap.xi.services/ValueMappingApplication:valueMappingReplication
4) No message Mapping .because sender and receive using same message type ValueMappingReplication in http://sap.com/xi/XI/System of SAP BASIS 7.00.
4) I didnt done Sender agreement because of sender is SAP here.
6) In receiver communication channel i follwed help.sap.com
i used PIAPPLUSER
7)
but I am not getting values in RWB Cache.
8) i didnt find any message in sxmb_moni
8) I did cashe refresh and CPA cache refresh too..
correct me please..
suggest the relevent
regards
RamHi Sarvesh,
Thanks for your responses.
Now RWB ValueMapping Table is updating.
I tried my luck with Single row of Target and Source values.
I am lucky.
Now I tried my luck more than One row..But I am not getting values the way I required.
Please have a look in below screenshot from RWB.
[http://www.imagehosting.com/show.php/1735277_ValueMapping.jpg.html]
I am getting the first Taget value for all Target avlues.
In Details Tab,It is showing all the values of source and target values.
In my observation,It should show only one source value details.[http://www.imagehosting.com/show.php/1735286_Valuemapping1.Jpg.html]
Please guide me.
Is ther any necessary to change Abap report logic.
my abap logic look like this.
data: lcl_value_mapping type ref to co_svmr_value_mapping_rep,
ls_value_mappings type svmr_value_mapping_replication,
ls_item type svmr_value_mapping_rep_item,
lcl_system_fault type ref to cx_ai_system_fault.
ls_item-operation = 'Insert'.
ls_item-group_id = '315286378563858425463215845123544'.
ls_item-context = 'http://Test'.
ls_item-identifier-scheme = 'OTDVendor'.
ls_item-identifier-agency = 'OTD'.
ls_item-identifier-value = '111'.
append ls_item to ls_value_mappings-value_mapping_replication-item.
ls_item-operation = 'Insert'.
ls_item-group_id = '315286378563858425463215845123544'.
ls_item-context = 'http://Test'.
ls_item-identifier-scheme = 'SAPVendor'.
ls_item-identifier-agency = 'SAP'.
ls_item-identifier-value = 'XXX'.
append ls_item to ls_value_mappings-value_mapping_replication-item.
create object lcl_value_mapping.
try.
call method lcl_value_mapping->execute_asynchronous
exporting
output = ls_value_mappings.
commit work and wait.
if sy-subrc = 0.
WRITE : 'Value Mapping Executed and Values sent to XI system'.endif.
catch cx_ai_system_fault into lcl_system_fault.
write: 'Error: ', lcl_system_fault->errortext.
endtry.
clear ls_value_mappings-value_mapping_replication-item[].
ls_item-operation = 'Insert'.
ls_item-group_id = '315286378563858425463215845123544'.
ls_item-context = 'http://Test'.
ls_item-identifier-scheme = 'OTDVendor'.
ls_item-identifier-agency = 'OTD'.
ls_item-identifier-value = '222'.
append ls_item to ls_value_mappings-value_mapping_replication-item.
ls_item-operation = 'Insert'.
ls_item-group_id = '315286378563858425463215845123544'.
ls_item-context = 'http://Test'.
ls_item-identifier-scheme = 'SAPVendor'.
ls_item-identifier-agency = 'SAP'.
ls_item-identifier-value = 'YYY'.
append ls_item to ls_value_mappings-value_mapping_replication-item.
try.
call method lcl_value_mapping->execute_asynchronous
exporting
output = ls_value_mappings.
commit work and wait.
if sy-subrc = 0.
WRITE : 'Value Mapping Executed and Values sent to XI system'.endif.
catch cx_ai_system_fault into lcl_system_fault.
write: 'Error: ', lcl_system_fault->errortext.
endtry.
Regards
Ram -
Value Mapping replication GUID Logic
HI,
We are doing Value Mapping replication from ECC table entries to Pi Runtime Value Mapping cache.
We are generating the Group ID required for Value Mapping from ECC.
Here we are confused with the logic for GUID Generation.
At first I thought the driving factors are -- if there is already an entry for the same Source Agency, Source Scheme, Target Agency, Target Scheme and Target Value then it should go in the same group id, else a new gr id needs to be generated.
However it looks like that is incorrect.
Can somebody help us on what should be the logic for generating group id for Value mapping replication.
We have the scenario where the same source Agency, Scheme ,Value maps to multiple target Schemes... and it is not working if we have different Group ids...
Thanks,
Himadri> We have the scenario where the same source Agency, Scheme ,Value maps to multiple target Schemes... and it is not working if we have different Group ids...
If you want to have multiple targets, then you have create pairs with unique GUID
like this:
A - 1 GUID X
A - 2 GUID Y
A - 3 GUID Z
The standard value mapping function does not work, when you have multiple targets. It will not return an entry.
You have to create a UDF for this purpose. You need to identify which target do you want to select from different values.
An UDF could look like this extract:
IFIdentifier source = XIVMFactory.newIdentifier(source_context,source_agency,source_scheme);
IFIdentifier target = XIVMFactory.newIdentifier(target_context,target_agency,target_scheme);
IFRequest request = XIVMFactory.newRequest(source,target,sourceValue);
try{
IFResponse response = XIVMService.executeMapping(request);
if (response.countTargetValues() > 0){
String[] targetValues = response.getTargetValues();
// take first value of result
return targetValues[0];
This example is taken from PI 7.1
Edited by: Stefan Grube on Oct 22, 2010 9:32 AM -
SAP XI 3.0 Same source for different target in std Value mapping function
Hi,
We have replicated 4 value mapping entries from R3 to XI having the same Context , Agency , Schema and value for source, but each of the 4 values has the same Context and Agency but different Schema and Value respectively.
To illusstate :
Source |Target
Context Agency Schema Value -----Context Agency Schema Value
CS1 AS1 SS1 1 CT1 AT1 ST1 A
CS1 AS1 SS1 1 CT1 AT1 ST2 A
CS1 AS1 SS1 1 CT1 AT1 ST3 B
This value mapping is not working and we always get the source value as the result.
We are wondering if the reason for this is that we use the same source for different targets. But we are not 100 % sure of it.
When I read the documentation on Value mapping or when we use the value mapping standard function in graphical mapping, we pass the context , agency and schema of the source and target respectively and the source value to get the target value, and this combination is always unique in our case as seen in the above example.
Has anyone faced this kind of an issue, if yes I would appreciate if anyone could help us resolve this problem.
Thanks in advance.
regards,
AdvaitHi Advait,
From the below what I understand is that you are not able to do value mapping for the follwoing
1 A
2 A
3 B
As value mapping allow one to one mapping only. Please do it like as mentioned below
1 1*A
2 2*A
3 3*B
Then in the graphical mapping of Integration Repository do the mapping for the same as shown below
source field > VALUEMAPPING> UDF--> TARGET Field
In UDF suppress the value of 1* , 2* , 3* which can be done as follows
create one UDF with one input field
//write the code as below to suppress the field
return input.substring(2);
Here the davantage of using 1* , 2* , 3* etc is that you have the option to use value mapping for 100 values which I think is not normally the case for any Interface.
If you have same source you can do the same thing for that.
Hope this helps you to resolve your query.
Thanks & Regards
Prabhat -
Modify entries of Value mapping table fromValue mapping replication
Hi,
I have successful uploaded value mapping table from external source(SAP Table) using value mapping replication. The entries are displayed in the cache monitoring.
Now what should i do,if i have to modify the entries in the value mapping table.I tried uploading the new entries using the same GUID, Agency, Schema.... but now both the previously uploaded and the new entries are dispalyed in Cache monitoring.
But i want only the new entries to get reflected in the value mapping table. So kindly request anyone to help.
Regards,
AnupHi Anup,
To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
To get an idea as to what value mapping is, please go thru the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
Regards,
abhy -
Updation of Value Mapping Table
Hello All,
Is there any way in we can update a value mapping table, from some external source, permanently in the ID and not only in the cache.
Please do respond.
Thanks
NeetuHi,
If you have stored value mappings in external tables, you can replicate this data in the runtime cache . To do this, you can use special message interfaces (value-mapping replication interfaces) .
SAP provides the following objects for the replication of value mappings:
· Value-Mapping Replication Interfaces
They are located in the Integration Repository in the software component SAP BASIS, software component version SAP BASIS 6.40 in the namespace http//sap.com/xi/XI/System.
· Proxy Objects
For the inbound message interfaces, there are inbound proxies on the Integration Server and ABAP outbound proxies in the SAP system in ABAP proxy generation under the software component version SAP Basis 6.40.
To implement a value-mapping replication scenario,see http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm -
Regarding Limitations in Value mapping
Hi All,
I Want to Know the Limitations in Value Mapping.
Please Let me Know .
Regards
VamsiHello Vamsi
Limitations.
1. It can be a ongoing process.
for example
suppose application1 represents tax code 1 as TX1 and application2 represents tax code 1 as TAX1 and we had used value mapping in this case.
This can be a ongoing process suppose if you need to add new tax code or change the tax code.
2.suppose you have a huge number of value mapping shifting from quality to production is a pain. (i am not sure about other easy method)
3.Identification of fields for value mapping in big implementation is also difficult.
4.It consumes certain time
Regards
Ramesh P -
Value mapping in the adapter module
Hi all...
There was been alot of writing about value mapping in many different ways.
But I have not been able to find help about doing the lookup in the adapter module.
Has anyone tried this?
Regards PeterHi,
In this case you can perfrom a RFC Lookup, but, from an Adapter Module, you would need to use the concept of JRA to do the same.
Amol Joshi has described how he called the Alerts RFC from the adapter module in these blogs and you can apply the same logic for your case as well to trigger the RFC from your module, get the data and then do the needful.
/people/amol.joshi2/blog/2006/11/27/alerts-from-adapter-modules--the-jra-way
/people/amol.joshi2/blog/2006/11/28/alerts-from-adapter-modules--the-jra-way-part-ii
Regards
Bhavesh
Maybe you are looking for
-
Hi, some loops are there but most are not? This happens sometimes and dont understand why? Thanks Rob
-
BELGIAN DOWN PAYMENT REQUEST --Need a feedback experience
Hi all, The case concerns the down payment request in a belgian company code: 1/ The process begins with the posting of a FAZ document type from SD module (through transaction VF01) => Therefore a down payment request is posted in FI with special G/L
-
Hi All: What types of Mapping Errors we can get in XI also how can we Test it. Suppose I need to raise an ALERT if Mapping fails. So how can I raise it. I am testing with SOAP client, now when I am destructuring the source message I am not able to te
-
"The settings saved on this computer for the network"
Well, I was bored and I thought it would be cool to put a password on my wireless router, and it ended up messing up all 6 laptops in the house... This is probably a frequent question but I've looked it up and many people say the solution is to go to
-
Hello, I just created an Adobe membership account in order to be able to install Adobe Digital Editions 1.7 on my Mac. When clicking on the install button on your website, I get error message "safari can't open the page "http://%25%7benv:www.adobe.co