on 08-06-2007 9:25 PM
All,
We need to send an email from the XI system. The message that we use is the following,
<target>
<name> John Doe</name><designation>manager</designation>
<name> Mary Jane</name><designation>supervisor</designation>
<name> Foo Bar</name><designation>customer associate</designation>
</target>
we need to send the email with the message body as follows,
John Doe, manager
Mary Jane, supervisor
Foo Bar, customer associate
How do we strip the xml nodes from the message? Also currently this email has a subject of "Employee New Hire Report". How can we add the current date also to this subject ("Employee New Hire Report 07/21/2007") ?
Thanks.
If you requirement was only the mail with flat fields (no xml), then you could simply use Content Conversion Module (http://help.sap.com/saphelp_nw70/helpdata/en/44/748d595dab6fb5e10000000a155369/frameset.htm) before your receiver mail adapter module.
But since you have the requirement for the date in the subject, you could try to use Mail Package (check this blog for a reference: /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address).
With simple logics within your message mapping, you could have your subject with date and the content field as required (for line feeds in UDF, use "\n" character in the concatenated string).
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Does your input is coming xml tages format? If yes then in mapping you can strip them. If you have doubt please give the input file and input structure?
For subject is this hardcoded or coming from the source. If either of these just take the source and concat the date function and then send to target like source>concat>date-->target.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The structure of the target is what i have mentioned in the xml in my question. It has all the data. (it comes from an RFC). Even if i add a node to the target that represents the current date. It is still going to come as xml in the body of the email.
But when we use the communciation channel as "mail", the email comes with the entire xml message of the target (with the xml nodes).
Hope that clarifies.
Thanks.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.