Skip to Content

Idoc to FlatFile and Flatfile to Mail

Hi all,

I want to convert an Idoc into a FlatFile - this is no problem. But when the FlatFile is created I want to send the FlatFile via EMail as an attachment.

How do I do this using Mail-Adapter ?

I also thought to use an Unix Command to send the Email. With the file adapter it is possible to execute an Unix Command after the File was created.

What is the better solution. And which Unix Commad do I have to use to send email (using SMPT).

Many thanks.

Elko

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 09:10 AM

    Hi

    You can do this in 2 steps.Get the file from the IDoc using simple IDoc to File Scenario.Now configure another scenario, File to Mail and delete this file once it is processed.

    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

    The sender file adapter is configured to pick the normal payload which is specified in the File access parameters, and the attachment file that is to be sent as an attachment is configured under the Additional File(s).The file type will be binary.

    Get back if you have any doubts on File to Mail Scenario.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 08:57 AM

    hi elko,

    for sending a flat file as mail u use receiver mail adapter. so ur scenario will be file sender -- xi-- mail receiver.

    for this refer:

    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

    and

    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]

    [reward if helpful]

    regards,

    latika.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 19, 2007 at 09:04 AM

    the first interface will be idoc-file and second interface will be file-mail scenario....will this do?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 09:08 AM

    hi Elko ,

    if you want to sent this flat file via mail , so go for file to mail scenario.

    your sender will be this file so use <b>Sender File Adapter</b> then for receiver go for <b>Receiver Mail Adapter</b>

    for Receiver Mail Adapter

    Transer Protocal : SMTP

    Message Protocal: XIPAYLOAD

    Adapter Engine : Integration server

    Connection parameters

    URL:smtp://*********

    USER:test

    PASSWORD:test

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 09:13 AM

    u can take the file as an attchment......that would solve ur problem....

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.