Skip to Content
avatar image
Former Member

IDoc to a Flatfile and then Email it as an Attachment

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 13, 2007 at 03:51 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2007 at 03:52 PM

    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-ac535e4a5992

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

    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-dbfc0ffd83b3

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

    Regards,

    Bill

    Add comment
    10|10000 characters needed characters exceeded