on 10-26-2009 11:17 PM
Hi all,
Is there anyway to determine the XML message ID using an user-defined function in Message Mapping? When I go to SXI_MONITOR I see that all messages have an unique ID, but I'm having some difficulties to understand if there is any way to get that ID in a message mapping and pass it to a target structure? I see that it is possible to use constants like "Sender" and "Receiver", but I haven't found anything for the message ID.
Can you please help me?
Thanks in advance.
Regards,
Ricardo Inácio
Try this code..
Create an UDF and do not pass any arguments to it..
java.util.Map map;
// get runtime constant map
map = container.getTransformationParameters();
// get value of header field by using variable key
String msgid = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
return msgid;
Now map this udf to your target field. Now test it....
P.s. Since message id is run time property therefore in mapping test tab it will not work. Try it at runtime.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can use MESSAGE_ID
This will solve ur problem
Jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is any way to get that ID in a message mapping
ref http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
MESSAGE_ID is used for obtaining the message id....
You can query most of the message header fields during a mapping... for complete list
http://help.sap.com/erp2005_ehp_04/helpdata/EN/6e/ff0bf75772457b863ef5d99bc92404/content.htm
Regards,
Siva Maranani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.