cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc to a Flatfile and then Email it as an Attachment

Former Member
0 Kudos

Hello All,

I have an interface to do which I have to map IDoc to File then send this as attachment to email.

Could you please guide me how to achieve this in XI.

Thanks in advance,

SV

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can have 2 interfaces, e.g. IDOC -> File, and File -> Mail. See the how-to:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c...

Or, with one interface using a combination of adapter user-module and mail adatper.

The mail receiver adapter will contain a user-module which would move the content of the payload into attachment.

For user-module development:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c...

Regards,

Bill

Former Member
0 Kudos

Hi,

My understanding is you have to send the flat file as mail. You have two approaches for this:

One is write two interfaces. One is for Idoc-XI-File. Once you write this file you pick the file and sent as mail like File-Xi-mail.

Other option is:

When we do Idoc-XI-File interface you have the payload of the file. So you create one more interface mapping which takes this payload and send as a mail.

---Satish