on 02-09-2009 12:39 PM
hello
I am sending a file in the mail (not as an attachement but in the body) and the xml in the mail looks like this (see below). is there a parameter to fix it so it will be looked nicer? is there something to do to send the xml both in the body and as attachment?
<?xml version="1.0" encoding="UTF-8"?>
<rfc:Y_SD_XI_FEED_BACK_1
xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><COUNTER_E>0</COUNTER
E><DATUM>2009-02-09</DATUM><DELIVERY>0187000982</DELIVERY><FILENAME/><
FUNCNAME>Y_SD_XI_SHIPMENT_HANDLER_1</FUNCNAME><INV_DOC_NO/><MANDT>220</M
ANDT><PO_NUMBER/><SYSID>DEV</SYSID><TEXT>Success in Shipment CHANGE
(delivery: 0187000982
)</TEXT><SYSID>DEV</SYSID><UZEIT>14:12:18</UZEIT><IT_RETURN><item><TYPE>
S</TYPE><ID>VW</ID><NUMBER>487</NUMBER><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item><item><TYPE>S</TYPE><ID>VW</ID><NUMBER>487</NUMBER
><MESSAGE>Processing shipment :
Start</MESSAGE><LOG_NO/><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1/><MES
SAGE_V2/><MESSAGE_V3/><MESSAGE_V4/><PARAMETER/><ROW>0</ROW><FIELD/><SYST
EM>DEV</SYSTEM></item></IT_RETURN></rfc:Y_SD_XI_FEED_BACK_1>
Hi,
Use an XSLT mapping and do a HTML formatting...this will make your mail message readable.
Make sure that you have Content_Type value as text/html
In mail receiver CC have XIPAYLOAD, and check the Use Mail Package checkbox.
For more info refer: /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
You may need to do a lot of formatting.....depending on how you want the mail to look like.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the mapping is with XSL and I use the same link of michael.
is there other options to send readable mail? maybe an xml format?
Thanks
Kfir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.