on 11-22-2006 1:21 PM
Hello people,
Im trying to use dynamic configuration in message mapping ( as described in the blog by William Li) to fill mail subject, to and from mail adress fields.
The coding I use is the following:
//write your code here
String valueFrom = "jasper.brugman@uphantis.com";
String valueSubject = "AutoMail gegenereerde factuurinformatie";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail", "XHeaderName1");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail", "XHeaderName2");
DynamicConfigurationKey key3 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail", "XHeaderName3");
conf.put(key, MailAdres);
conf.put(key2, valueFrom);
conf.put(key3, valueSubject);
return "";
In the message monitoring I see that the values are filled.
Next step is that I want the mail to , from and subject field get filled in the communication channel. Somehow I can't figure out how to do this.
I this possible and yes how , if not is there a way to solve this (maybe by splitting up de the incomming IDoc in two messages ?)
Is there some one who could help me with this ?
Regards,
Jasper
Check this page for the technical names:
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
from = THeaderFROM
to = THeaderTO
subject = THeaderSUBJECT
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.