on 06-10-2010 1:56 PM
Hi experts,
I need to set the value of the system MESSAGE_ID to a field that an external company will send in the XML file. What I could gather thus far is that it should look something like this:
//externalRef and container are passed as parameters:
GlobalContainer globalContainer;
String headerField;
java.util.Map map;
globalContainer = container.getGlobalContainer();
globalContainer.setParameter("MessageId", externalRef);
map = globalContainer.getParameters();
headerField = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
return headerField;
The problem is the setParameter() function - not sure how it is supposed to work. The GETting of the MessageId works though but I need to SET it while mapping the file. Any ideas?
> I need to set the value of the system MESSAGE_ID to a field that an external company will send in the XML file.
This is not possible.
You can set the message ID externally, when the sender adapter is: HTTP, SOAP, JMS.
But you cannot set in a mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the sample code as provided in the link - http://help.sap.com/saphelp_nw04/helpdata/EN/78/b4ea10263c404599ec6edabf59aa6c/frameset.htm
in your case it will be MESSAGE_ID - 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.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.