Skip to Content
avatar image
Former Member

Attachment content in body of the mail in different format

Hellow Guys,

I have a proxy to mail scenario in which I'm getting output XML as an attachment need the same attachment content in body in different format.(need both attachment and body now)

For ex: In Attachment I'm getting as beloiw,

<m<MessageId>56607416CE000A66C848</messageId><ServiceVersion>1.0</ServiceVersion><ServiceDirection>Outbound</ServiceDirection><DocumentType>FSOCREATE</DocumentType><FSONumber>54772</FSONumber><TransmissionDatetime>08-DEC-2013 16:20:35</TransmissionDatetime><TransmissionId>56607416CE051810E100800C848</TransmissionId><FSOLastUpdateDate>08-DEC-2013 16:20:18</FSOLastUpdateDate><fsoOutbound><priority>P2</priority><CaseNumber>2004110734</CaseNumber><PartRequestNumber>8001203631</PartRequestNumber><ReportingHostName>SZXNAS38A-DR</ReportingHostName><ProductSerialNumber>850000155303</ProductSerialNumber><Model>FAS3240-R5</Model><CustomerContactName>Lin Li</CustomerContactName><CustomerPhonenumber

So now I want to get some of the specific fields from attachment as below in my body of the mail as below.

messageId : 56607416CE00A66C848

FSONumber: 54772

PartRequestNumber: 8001203631

I'm using SAP XI 7.0 version

I think this can be acheived by using java mapping.

If anyone can help in providing that code or your suggestions it will be a great help from your end.

you can drop me code to my mail address

Thanks in advance


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 07, 2016 at 10:04 AM

    Hi dani,

    Create a receiver data type and map the fields and apply FCC to get the conetent you want...

    To send the mail to body -

    Use message protocol - XIPAYLOAD

    and localejbs/AF_Modules/MessageTransformBean and parameter

    Transform.ContentDisposition = inline

    Transform.ContentType = text/plain;charset=utf-8



    Add comment
    10|10000 characters needed characters exceeded