cancel
Showing results for 
Search instead for 
Did you mean: 

xml in mail

Former Member
0 Kudos

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>

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

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

former_member200962
Active Contributor
0 Kudos

Hi,

If you want the mail message to be in xml format then you can try <Content_Type>text/xml</Content>

If you want it as text then you can have <Content_Type>plain/text</Content>

Do let me know if it works.

Regards,

Abhishek.