Weblogs for different message mapping needed
Hi,
I want to do scenarios using XSLT mapping, ABAP mapping, Java mapping.
Can you suggest me some weblogs...
Thanks,
Ram
Hi Ram,
thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.
- Graphical mapping
- XSLT mapping
- JAVA mapping
- ABAP mapping
To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
Graphical mapping
/people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
http://www.sapgenie.com/netweaver/xi/mapping1.htm
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
XSLT mapping
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
JAVA mapping
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
ABAP mapping
/people/r.eijpe/blog
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.
Hope this clears your doubt fully.
Also go through this threads...
Re: Different types of Mapping in XI
Regards,
Abhy
Similar Messages
-
Need user define function for the message mapping structure
Hi All
I am new to XI.I need the java code for Udf for the following structure.
i have two input and one out put as error.
order_nos----
user define function-------error message
order_details----
num of orders---- i.e. 10
order_details------ i.e. whole order records details
1.i have to compare the 1st input with 2nd one means if the ist input contain 10 means there are 10 orders in 2nd input.if not then i have to give error message .
2.then i have to check the fields in 2nd input has no null values.if no values the output will be error message.
Edited by: Rohit Kumar on Dec 18, 2008 4:43 PMHi Sudhir
thanks for your continues help.i need some help so that i can fulfill my requirmrnt
this is my message mapping xml.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:methodCall_MT xmlns:ns0="http://www.dfdsf">
<num_orders>10</num_orders>
<test_mode />
- <order_x> ( which is order details)
<order_id>t78tyu8t</order_id>
<order_date />
<mfg_id />
<catalog_id />
<first_name />
<last_name />
<recipient />
<message />
<address1 />
<address2 />
<address3 />
<city />
<state />
<zip />
<country />
<country_code />
<phone />
<subtotal />
<tax />
<shipping />
<total />
<shopatron_total />
<fulfiller_total />
<shipment_id />
- <additional_info>
<in_store_pickup />
- <express_shipping>
<express_shipping_flag />
<express_shipping_text />
<express_shipping_arrival />
</express_shipping>
</additional_info>
- <discount>
<discount_description />
<discount_percentage />
<discount_total />
</discount>
<lang_id />
<currency_id />
<packing_list />
<num_items />
- <items>
<item_id />
<quantity />
<price />
<part_number />
<fulfiller_total />
<shopatron_total />
- <options>
<option_x />
</options>
</items>
</order_x>
</ns0:methodCall_MT>
this my mapping where under one element number elements are there.when i am excuting the code to check the null value its always giving the there is null val but i have filled evrything.its due to first its checking the order_x and which will be always null.uder this all data will be filled.please suggest what to change in the udf.the code given by u is working fine but its failing in this scenario because it getting the parent filed is null. -
Message mapping - need Enlightening
Hi Guys,
I was actually looking into the message mapping blog of sravya.Link below:
[http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414800)ID0086183650DB11663053995735659636End?blog=/pub/wlg/2792]
Was just reading the blog and a lot of questions came through my mind.In the end I figured out that first, I have to understand how the parsing works.
So for example,If we have 2 message structures(source & target).At run time the dom or sax parser parses through the source xml document.
If we do a source to target mapping
as in the example
Matgroup --> RemoveContext -->MatGroup.
So my question is what does the parser do in the above example.
Does it read the source xml,change the source XML AND start to build the target xml from scratch by adding nodes.
How does the parsing work & internally what are the steps the parser do to create the target XML.
[2]
In her example,She mapps the item node to the header target node.
what happends then or what does the parser do & what are the elements which will be coming under the target header node.
What are the conditions for mapping 2 fields or nodes(Both should have same level & occurance - Is that so?)
Iam confused.Please Enlighten me...:)
Thanks
P
Edited by: pazzuzu on Oct 17, 2009 2:40 PMHi ,
Parsing is the mechanism to trasform the structure in to other format,Nomally PI uses Dom parsing mechanism to process.
Suppose if you working one message mapping source is on XML Structure and you want to map this structure to the Taget structre,most of cases taget structre is not same as Source.
You used some mapping function provided by SAP,every Graphical standard function has some source java code inside it.
the functions also uses parcing mechnism like reading doucmnet and changing structure.If youw ant to know more about parcers google it.
every parcer has some predrefind methodsto read the documents child elemnts too..
Regards,
Raj -
Problem in Graphical message mapping.Need UDF to add array based on some co
Hi All,
I have been struck in message mapping.Below i am explaining it,
I have two input array,
one array lets call X [24]
[25]
[26]
[24]
[25]
other array is Y [10]
[11]
[12]
[13]
[14] .length of both the array will be same .
Now I want the output as: if there is any same value in first array i.e array X then corresponding value of second array should be added.i.e in array X if 24 is coming as twice (1st and 4th) then 1st and 4th value of array Y will be added.So here there will be only three output as Z[23]
[25]
[12]
Please guide me if posiible .I tried to use the for loop but its not working as the value of X is repeating.
Regards,
SaurabhHi,
Tru this..
public void test(String[] a,String[] b,ResultList result,Container container){
int flaga,flagb;
for(int i=0;i<a.length;i++)
flaga =0;
for(int j=i+1;j<a.length;j++)
int p = Integer.parseInt(a<i>);
int q = Integer.parseInt(a[j]);
if(p==q)
flaga =1;
int c = Integer.parseInt(b<i>)+Integer.parseInt(b[j]);
String d = new Integer(c).toString();
result.addValue (d);
if (flaga ==0)
flagb=0;
for(int q =i-1; q>=0;q--)
if(Integer.parseInt(a<i>) == Integer.parseInt(a[q]))
flagb = 1;
if (flagb == 0) result.addValue((b<i>));
I have tested with the same input... it is working for me
http://www.flickr.com/photos/28929439@N06/2721471681/
Thanks
SaNv... -
How to count more than once for different message
I have multiple messages into one column and I need to separate them and count them under each message. The error message start after colon (:)
ID ERROR MESSAGE
123456 Field on does not match: Note Amount, ID=584000.00, IP=579900.00: Note Date, ID=2005-06-1 IP=2005-03-30: Investor Org ID, ID=1000150, ID=1008246
so i need to show output like below
Note amount: 1
Investor Org ID :1
Not Date:1
Thankswith t as (
select 'Field on does not match: Note Amount, ID=584000.00, IP=579900.00: Note Date, ID=2005-06-1 IP=2005-03-30: Investor Org ID, ID=1000150, ID=1008246' msg
from dual
select ltrim(regexp_substr(msg,':[^,]+',1,column_value),': ') || ': ' || count(*) msg
from t,
table(
cast(
multiset(
select level
from dual
connect by level <= length(msg) - length(replace(msg,':'))
as sys.OdciNumberList
group by ltrim(regexp_substr(msg,':[^,]+',1,column_value),': ')
MSG
Note Date: 1
Investor Org ID: 1
Note Amount: 1
SQL> SY. -
Send Alerts(e-mail) for errors in SXMB_MONI(message mapping exceptions)
Good afternoon !
I´m configuring SAP Netweaver PI 7.0(SP13) to use Alert Framework to send Alerts when errors occurs in the interfaces processing.
I just achieved configure to send alerts when errors ocurrs in the Adapter Framework but, I can´t configure correctly to send alerts when errors ocurred only in SXMB_MONI(for example, message mapping exception in asyncronous interface).
I just followed the instructions at Michal Krawczyk
weblog(/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step) and, initially, this was not sufficient to start to send alert when errors occurs only on SXMB_MONI, so, I researched and found some configurations to do in CCMS(started from here: http://help.sap.com/saphelp_nw70/helpdata/en/e3/bf3b7a8ccb8040b638ff732c551aeb/content.htm), jobs to start events collectors, etc, and after this, I could see a mail for an message mapping exception. BUT, this message, sent from CCMS to ALM, doesn´t carry out all the message parameters, like message Id, sender(service, interface), receiver(service, interface), that is very important to help to find the message with errors to be solved.
There is somebody here that already done the Alert configuration to send messages for errors found only in SXMB_MONI(Monitor for processed XML Messages) ?
There is a better way to achieve this ?
Thank you for your attention,
Wilson Rodrigo dos Santos
SAP Netweaver XI/PI ConsultantHi
Go through these links and follow it.
ALERTS CONFIG AND STUFF
http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
XI: Alerts - Step by step
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
http://help.sap.com/saphelp_nw04s/helpdata/en/d0/d4b54020c6792ae10000000a155106/frameset.htm
Triggering by Calling a Function Module Directly.
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
Alerts with variables from the messages payload (XI) u2013 UPDATED
/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
Simple Steps to Get Descriptive Alerts from BPM in XI
/people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi
Triggering XI Alerts from a User Defined Function
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
Throwing Smart Exceptions in XI Graphical Mapping
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
/people/sukumar.natarajan/blog/2007/01/07/how-to-raise-alerts-from-abap-proxy
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
/people/sravya.talanki2/blog/2006/11/22/error-handling-framework-xiout-of-the-box-episode-1
/people/ginger.gatling/blog/2005/06/16/integrating-alerts-into-uwl--its-no-problem
/people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
/people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2
/people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
http://help.sap.com/saphelp_nw2004s/helpdata/en/56/d5b54020c6792ae10000000a155106/content.ht
http://help.sap.com/saphelp_nw04/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
check this links.
https://www.sdn.sap.com/irj/sdn/forums
Trouble shooting Alert configuration:
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
Alert Inbox
http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
Alert Notification Step-by-Step
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
Defining Alert Classifications
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
Triggering Alerts
http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
Setting up alerts
Setting up alerts in RZ20
Alert Management
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e04141e8-0f11-2a10-adaa-9d97b062c2df
Alert Notification
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90f449a8-a6db-2910-a386-d2b5999f5751
/people/matt.kangas/blog/2006/06/27/personalized-alert-delivery
Thanks
Saiyog -
Message Mapping in HRAS - can it be used for ESS ?
We came across this functionality for EHP2 (after activating business function HCM_ASR_CI_1)
called "message mapping" while implementing HCM processes and forms framework. It is available under HR Administrative services -->Tools in the IMG provided the business function is activated.
As per IMG documentation for this Message Mapping node --> "The tool for mapping messages can also be used in Employee Self-Services and applications of the Enterprise Service-Oriented Architecture"
Just wanted to check if anyone tried exploring this by mapping messages for ESS services outside of HCM Processes and forms framework? or Is this tool limited only for HCM P&F.I've seen the same thing. I suspect it "will" be possible but not fully implemented just yet. You could probably do a search on the mapping table and see if it is actully used in the newer ESS code at all. It looks like they have this in place as ESS transitions over more fully to Webdynpro ABAP and making use of the decoupled infotype framework.
-
Can Same IDOC be sent to same Receiver with two different Message Mappings
Hello Experts,
Wierd doubt but want to confirm from you people.
Scenario:
One R/3 Sender
SAP XI :
One external Receiver :
IDOC is sent from R/3 to external receiver via SAP XI.
One interface has already been developed for the above scenario.
Now client wants another interface to be developed for the same IDOC. Might be the values would be different for some specific fields.
Doubt:
Is it possible to send one similar IDOC to one target system with two different Message Interfaces?
Ex: Created Message Interface 'A' and correspoding Message Mapping with an IDOC
Created Message Interface 'B' and correspoding Message Mappingwith an IDOC
Values would be different in the IDOC and would be triggered from SAP R/3. Basing on the specific value of a field in the IDOC , can we trigger a different Message mapping for the same receiver?
I donot see any reason in developing a new interface for the same IDOC but as per the situation mentioned above, can it be done?
Thank you
Alex.Create two interfaces for target side.
If you want only one target interface should get data.
You can use simple interface determination. Use the condition tab and specify the field there but the value should be constant. e.g. if field has value EN it should go to First interface and if Field has value != EN it should go to second interface.
If you want to divide your message in to both target interfaces.
Multimapping also can help but only if both of your target interface need idoc data.
You can use ifexist standard node functions from UDF to choose between the field.
For multimapping you can go to messages tab in the message mapping and can add interfaces using + sign.
then when you see the design part you will see two messages.
Now Start with receiver determination in ID and create one receiver determination for the sender and receiver, this shows you have only one receiver.
In interface determination you have to choose extended and choose your mapping designed.
then both your interfaces automatically would appear.
Create two receiver agreements and one sender agreement.
thanks
hemant
Edited by: Hemant on Aug 28, 2008 12:29 AM -
Get the mapping values from one message mapping into another message mappin
Hi All,
I created two graphical message mappings. In first message mapping i created one user defined function and set one global container parameter and I need to use this parameter in my second message mapping user defined function. But the global container parameters can be used in different user defined functions in same message mapping. So is there any way to use the values which are set in one message mapping into another message mapping. If yes, please help me how to get?Hi Koteswara rao,
As you said global container parameters from first message mapping are not accessible from second message mapping program.
i haven't faced situation like this.but, if you have some unmapped field in target message in first message mapping,you can put global variables data in that unmapped field.
anyway the output of first message mapping would be input for 2nd messages mapping,so you can access global data(unmapped field filled with global data in 1st MM) from 2nd mapping program..
Cheers,
Jag -
Error When Save Message Mapping
Hi evreybody,
I try to save my mapping. I did the test to check to know if everything is ok. The test is executed succesfully but when I try to save, I receive the following error message:
Internal error: Unable to transfer changes for object Message Mapping MM_Order_Idoc | http://accenture.com/PI01/Idoc to change list "Standard Change List" (348cd3a0-f384-11dd-c70e-003005989c0a) since object still in change list "Standard Change List" (faa66160-f699-11dd-8a1b-003005989c0a)
Thank you for your support,
Mohamed.Release the lock by going to XI Admin page and check Integration repository and lock tab where you can see the objects locked ,release the lock and you can do the needed.
Rajesh -
Hello,
I need some help for a message mapping.
In the source message is one element named options.
The value of this field is semicolon and bracket/comma separated value. e.g. skip;ignore;retry(1,2,3).
Each one of the semicolon separated values should be a own element in the target message. If one option has values in the brackets, this options should get some child's. For example:
<options>skip;ignore;retry(1,2,3)</options>
should be
<options>
<option value='skip'/>
<option value='ignore'/>
<option value='retry'>
<choices>
<choice>1</choice>
<choice>2</choice>
<choice>3</choice>
<choices>
</option>
</options>
Is it possible, to produce such message with the message editor?
Thanks and regards,
DanielHi Daniel,
Yes, its possible to produce such a message.But Have you defined message interface for the target structure described in your post?
You may need to write some user-defined functions / use susbstring operation to achieve what you need.
Regards,
Sridhar -
Message Mapping And Interface Mapping
Hi,
I have 2 software components.
One is for sender and one is for receiver.I have created all the Data types,Message type and Message Interface fro sender in the first Software component and data types ,message type ,message interface for the receiver in the second software component .
Now, in which Software component should i create Message Mapping and Interface Mapping?
Thanks in Advance,
mvkHi,
You could use the created Message type and Message interfaces in Sender as well as receiver software components for creating message mapping, interface mapping and integration scenario.
Generally it makes sense to maintain the message mapping, interface mapping and integration scenario in receiver software component. The message mapping and Integration scenario is specifically based on the receiver end requirments, so its preffered on receiver software component.
The sender side details could be reusable in case if you need those for another new receiver software component. If you maintain it in sender component, then that will lead to mix-up all the things on sender side even though its based on receiver end.
I think this could help you.
In PI7.1 now there is concept of Folders to maintain all the interfaces appropriatly and leads for reusability of existing objects.
Please refer below links for more details,
/people/thorsten.nordholmsbirk/blog/2006/07/25/structuring-integration-repository-content--part-1-software-component-versions
http://help.sap.com/saphelp_nw04/helpdata/en/42/ed903cf6c4492ce10000000a114084/frameset.htm
Thanks
Swarup
Edited by: Swarup Sawant on Jan 26, 2008 8:33 AM -
Step by step message mapping/testing examples
Hi!
I have read many blogs and SAP literature about message mapping.
However, none of them gives step by step details.
Can anybody give any very detailed mapping procedures?
Thanks a lot!Lee,
Have you seen this three series of weblogs where he is explained very clearlyn (2nd one is for mapping):
/people/james.guanzon/blog/2006/02/22/how-to-support-industry-standards-in-xi-part-i-of-iii--interfaces
/people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping
/people/james.guanzon/blog/2006/09/09/how-to-support-industry-standards-in-xi-part-iii-of-iii--config-test
If you want to test your mapping go through the weblog:
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Also check this weblogs for reference on mapping:
/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
/people/daniel.graversen/blog/2006/09/15/message-mapping-verification
/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi
---Satish -
Message mapping - Duplicate subtree
Hi Experts,
I am working on 7.0 server.
In the existing message mapping I found that target nodes are duplicated.
For example
/ns0:FiletoFile_ib_mt/Record/Emp[1]
/ns0:FiletoFile_ib_mt/Record/Emp
And the order for the node in the target message structure is same as above.
And in the output, the order is reversed as below
/ns0:FiletoFile_ib_mt/Record/Emp
/ns0:FiletoFile_ib_mt/Record/Emp[1]
But when am duplicating one more node in the existsing mapping the order is
/ns0:FiletoFile_ib_mt/Record/Emp[2]
/ns0:FiletoFile_ib_mt/Record/Emp[1]
/ns0:FiletoFile_ib_mt/Record/Emp
And now the output is
/ns0:FiletoFile_ib_mt/Record/Emp[2]
/ns0:FiletoFile_ib_mt/Record/Emp[1]
/ns0:FiletoFile_ib_mt/Record/Emp
But I need the output as
/ns0:FiletoFile_ib_mt/Record/Emp
/ns0:FiletoFile_ib_mt/Record/Emp[1]
/ns0:FiletoFile_ib_mt/Record/Emp[2]
Please let me know if you have faced similar issue.
If am creating a new message mapping and duplicating the subtrees the order is given below
/ns0:FiletoFile_ib_mt/Record/Emp
/ns0:FiletoFile_ib_mt/Record/Emp[1]
Why in the existing mapping duplicate subtree is going in the top order and for new message mapping duplicate subtree is going in the bottom. Please advice
Thanks
Suma SHi Lucas
I checked this sap note but I used PI 7.0.
This happens from 7.10 onwards and this is primarily due to the reason that the occurence of the duplicated node was not remembered when the mapping program gets executed. So, the mapping program was expecting data from the payload for the duplicated node and hence the error -
To get exception value in Message Mapping
Hi folks,
I would like catch bpm step exception in one message mapping, for example:
I have create on ccBPM using one block, in block i have createad "ex" exception variable and set ex in all step (send and transformation), i have created one exception branch in block using "ex" exception.
How can i get "ex" value and pass for one message mapping ?
In MM how can i get text values from excpetion ocurred in ccBPM ?
Im am trying using Global Variables but not found any parameter of exceptions.
Can anybody help me, please?hi,
>>In MM how can i get text values from excpetion ocurred in ccBPM ?
this is not possible
Regards,
Michal Krawczyk
Maybe you are looking for
-
While importing a certificate I'm getting an error. What to do?
I am trying to import a certificate, but after filling in my password I am getting the following error: PKCS #12-processing failed, reason unknown. (I translated this from Dutch, so it may not literally be the same...) Hope someone out there knows wh
-
Hi, I have a discount through employer, been on it for about 5 years. I just renewed it about 4 months ago through email prompt, and saw Verizon trying to charge me full price without the discount. The rep manually discounted the unwarranted charge
-
Hi I have just started using imovie for the first time as used to have a PC with Pinnacle for video editing. How do i create a front menu page, so that on there, there will be various titles that the user can easily select to then jump to that chapte
-
The end / home, Ctrl+end / Cntrl+home keys don't work when editing text. In fact they don't do anything as far as I can tell. Did I miss a setting?
-
Problem with third party installer asking for restart
Hello, I have a problem with software installers (not from AppStore) asking for restart (soundflower, M-Audio soundcard driver-). Gatekeeper is disabled, all is working perfectly but at the end I have a "l'installation a échoué" (installation failed)