Adding Attachments in the message

Hi,
We have an Invoice IDoc to HTTP scenario.We need to add some attachment into the message we send to the HTTP receiver. 
I just wanted to check what are the possible options for the Attachments(some excel file or other files)
Receiver needs the attachment in  "multipart MIME envelope"
i.e  the document should have
" Content-type: multipart/mixed; boundary=<Unique Boundary Name>"
with the actual payload XML and the attachment doc info separated by given boundary
Now I need to check the possible options for me to develop the solution to handle this scenario.
Since IDoc doesn't support attachment, I need to do it at PI's end after mapping and before sending the document
to Receiver Adapter.
Please let me know your inputs.
Thanks
Vijay

You might have to create an output something similar to the one below (assuming you wanted to attach a JPEG file) :
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MIME_BOUNDARY_UNIQUE_123"
--MIME_BOUNDARY_UNIQUE_123
Content-Type: text/xml
<<<<<< XML PAYLOAD >>>>>>>>
--MIME_BOUNDARY_UNIQUE_123
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
<<<<RAW JPEG IMAGE>>>
--MIME_BOUNDARY_UNIQUE_123
Try out whether you can achieve this via ABAP mapping.
Regards,
TK

Similar Messages

  • How to  make adding attachments in the oaf page mandatory  to the user.

    Dear Friends
    I did a attachment section with item style as attachment table,entity map,primary  key concept in my details page
    But  I want to   make this section (adding attachments in the oaf page)  mandatory  to the user.
    Without adding the attchment user should not click SUBMIT.
    [ Just like we give  REQUIRED  property to ant text input fileds  to make entering them mandatory , Is there any property to set ]
    Please share ur ideas .Please help.
    Thanks
    Aravinda

    Gyan's Oracle Application Framework Blog: OAF - Making mandatory Attachement Mandatory
    iWiDi - This is how to make attachments mandatory in iExpense.
    --Sushant

  • Adding attachments to the mail send from XI

    Hi all,
    How can we add attachments to the mails send from XI?
    Regards,
    Satpreet Singh

    Hi
    Do the Mail Receiver Adaptor Configuration as mentioned.
    Choose any of the options suiting to your requirements. All the options shall give attachments in one way or the other.
    1) Choose Message Protocol   = u201CXIALLu201D
    The mail will go to the address mentioned in Mail Attributes in the adaptor as two attachments. The file something like ATT123.xml will contains all the system information and another file u201CpayloadXXXu2026..xmlu201D will contain the input file you give.
    2) Message Protocol =   u201CXIPAYLOADu201D with u201CMail Packageu201D
    If we check u201CKeep Attachmentsu201D in u201CMail Attributesu201D then, the content will be sent as an attachment otherwise, the content will be sent as body of the mail.
    3)Message Protocol =   u201CXIPAYLOADu201D without u201CMail Packageu201D
    The content will go as attachment even though u201CKeep Attachmentsu201D is not checked. If u201CKeep Attachmentsu201D is not checked then the attached file name will be same as that of the subject we have given in the Subject in Mail Attributes. 
    If the checkbox u201CKeep Attachementsu201D is checked, then the attachment file name will be u201CPayloadXXXXu2026.xmlu201D irrespective of the input file name.
    For more details:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Regards
    Monika

  • Adding attachments to Web Service call

    Hi
    Does Bea's web service classes include support for adding attachments to the soap message sent by a web service?
    How do I do it? or otherwise, how do I get through the abtraction down to the soap message so I can add it manually?
    I have both a weblogic.webservice.core.rpc.StubImpl and a javax.xml.rpc.Service to work with, I'm guessing it's somewhere deep down in the context of the Service...?

    Hi
    Does Bea's web service classes include support for adding attachments to the soap message sent by a web service?
    How do I do it? or otherwise, how do I get through the abtraction down to the soap message so I can add it manually?
    I have both a weblogic.webservice.core.rpc.StubImpl and a javax.xml.rpc.Service to work with, I'm guessing it's somewhere deep down in the context of the Service...?

  • How to send multiple attachments with the mail in jsp

    hi.I wrote a code to send mail.but i need to send mail with multiple attachments.when i run this code iam able to send message but not files.i want to send files as attachments with the message.please help me.
    <%@ page import="javax.mail.*,javax.mail.internet.*,java.util.Date,java.io.*,java.net.InetAddress,java.sql.*,java.util.Properties,java.net.*,javax.sql.*,javax.activation.*,java.util.*,java.text.*" %>
    <%@ page import="java.io.*,java.sql.*,java.net.*,java.util.*,java.text.*" %>
    <%
         String Attachfiles1="";
         String Attachfiles2="";
    String Attachfiles3="";
    if("Send".equalsIgnoreCase("send"))
    try
    String subject="",from="",url = null,to="";
    String mailhost = "localhost";
    Properties props = System.getProperties();
    String msg_txt="";
    String strStatus="";
    String mailer = "MyMailerProgram";
    to=request.getParameter("to");
    from=request.getParameter("from");
    subject=request.getParameter("subject");
    msg_txt=request.getParameter("message");
    props.put("mail.smtp.host", mailhost);
    Session mailsession = Session.getDefaultInstance(props, null);
    Message message = new MimeMessage(mailsession);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
    message.setSubject(subject);
    message.setHeader("X-Mailer", mailer);
    message.setSentDate(new Date());
    message.setText(msg_txt);
    BodyPart messageBodyPart = new MimeBodyPart();
    BodyPart messageBodyPart2 = new MimeBodyPart();
    Multipart multipart = new MimeMultipart(); // to add many part to your messge
    messageBodyPart = new MimeBodyPart();
    javax.activation.DataSource source = new javax.activation.FileDataSource("path of the file");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("file_name");
    messageBodyPart2.setText("message"); // set the txt message
    multipart.addBodyPart(messageBodyPart);
    multipart.addBodyPart(messageBodyPart2);
    Transport.send(message);
    out.println("Message Sent");
    catch (Exception e)
    e.printStackTrace();
    if("Attachfiles".equalsIgnoreCase("attachfiles"))
    Attachfiles1=request.getParameter("fieldname1");
    Attachfiles2=request.getParameter("fieldname2");
    Attachfiles3=request.getParameter("fieldname3");
    %>
    <html>
    <body>
    <div class="frame">
    <form action="Composemail.jsp" method="post">
    <b>SelectPosition:</b> <select name="cars" >
    <option value="ABAP">ABAP
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select><br><br>
    <table border="1" cellpadding="2" cellspacing="2">
    <tr><th>Name</th>
    <th>EmailId</th>
    <th>ContactNumber</th>
    <th>Position</th>
    </tr>
    <tr>
    <td>
    </td>
    </tr>
    </table><br>
    <b>SelectUser :</b><select name="cars">
    <option value="Administrator">Administrator
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select>
    <br>
    <b>To :</b>�����������<input type="text" name="to" size="72"><br>
    <b>From :</b>�������<input type="text" name="from" size="72"><br>
    <b>Subject :</b>���<input type="text" name="subject" size="72"><br>
    <%=Attachfiles1%><br><%=Attachfiles2%><br><%=Attachfiles3%><br><br>
    <b>Message:</b><br>
    ������������<textarea rows="10" cols="50" name="message">
    </textarea> <br><br>
    <b>AttachedFile:</b>�<input type="file" name="fieldname1" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>�<input type="file" name="fieldname2" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>�<input type="file" name="fieldname3" value="filename" size="50"><br><br>
    ������������<input type="submit" name="attachfiles" value="Attachfiles">
    <center>
    <input type="submit" name="send" value="Send" >
    </center>
    </form>
    </div>
    </body>
    </html>

    Most likely you're not specifying the path of a file on the server machine.

  • Adding attachments to an e-mailable form

    I am creating a form that is to be filled out and then
    submitted and sent to an e-mail. I want to make an option available
    of adding attachments to the form being sent to the address but I
    don't know how. Is this something that I will have to do in a .php
    code?

    The type of thing you want is possible, but if it needs to work with Reader the document must be enabled by LiveCycle Reader Extensions so it includes the embedded file usage right.
    The best you can do with a file that's been Reader-enabled with Acrobat is to manually attach a file as a comment. A button can be used to display instructions, but that's it. There is also the licensing restrictions that come into play when you enable with Acrobat.

  • Attachments ends up inside the message. How avoid that?

    I send mails with attachments (usually pdf files) a lot, maybe a dozen times/day. I've used MS Entourage since 1998 but switched to Mail.app 3-4 months ago. All is well, but one thing annoys me a lot: When adding attachments, they end up i view wherever I happen to have the cursor at the moment. Hence, I have to delete it, make sure I click far below the message, add it again and re-edit the actual message since it usually got screwed up with e.g. extra line breaks in the middle of paragraphs when the attachment went in there.
    Are there any way, such as a script or something, that will add attachments way after the message automatically, exactly as Entourage worked?

    One page PDFs or documents will appear in the New Message viewer as embedded, however multi-page documents do not. This only appears this way in the New Message viewer. The recipient will receive the items as attachments.
    Alternatively, zip the files first and email the archive which will always appear as an attachment to you. If you are sending to Windows users be sure you configure Mail to send Windows-friendly attachments. Do this by clicking on the Attachments button in the New Message viewer's toolbar. When the File Open dialog appears select your desired attachment then check the appropriate box in the lower left of the dialog. You only need do this once. The setting is persistent thereafter.

  • On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available". When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way,

    On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available".
    When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way, no error message. Any ideas to solve this, anyone? Would be greatly appreciated.

    I tried to update and it keeps telling me to get the Application Manager. And this is what happens
    Adobe Application Manager failed and it told me to download the Adobe Support Advisor.
    Adobe Support Advisor told me that there was an issue:" cpsid_82829s1: "A restart is pending," bootstrapper error has occurred. "Token Number: 40-87772-063201122012
    I followed the instructions it gave me to correct this issue:
    If you receive the error "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again," do the following:
    #Restart the computer and try the installation again.
    #If the installation fails, delete the InProgress registry key: 
    Disclaimer: This procedure involves editing the Windows registry. Adobe doesn't provide support for editing the registry, which contains critical system and application information. Make sure to back up the registry before editing it. For more information about the registry, see Windows registry information for advanced users on the Microsoft support site, or contact Microsoft. 
    Launch Windows Registry Editor.
    (Windows XP) Choose Start > Run, type regedit in the Open text box and click OK.
    (Windows Vista/ Windows 7) Choose Start, type regedit in the Search box, and press Enter.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
    Delete the InProgress key.
    I was not able to find the "InProgress" key.

  • In mail, my attachments, both photos and documents appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the message.  Thanks for your help, Karen.

    In mail, my attachments, both photos and documents, appear in the body of the message.  How can I get my attachments to appear as a separate attachment and not as part of the main message????  Thanks for your help, Karen.

    softwater wrote:
    ...and costs $14.99
    Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
    As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
    In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
    If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
    I completely agree.

  • Just updated my iphone. Now I can se I have two? iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first

    Just updated my iphone. Now I can se I have two! iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first account where there is no available password. I have tried several times to reset the password, bun I don't get the information I need - I have no access to email. What can I do?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • Where does Messages store attachments on the iPad?

    Where does Messages store attachments on the iPad?
    some photos are quite large, so it would be good to know where they go, and how to manage the app.... ;)

    Managing memory usage is not possible because the user does not have access to the file structure (unless you have jail broken your iPad that is).

  • I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' it won't go away-'delete' is greyed out-can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

  • I am using InDesign CC and added Garamond premier pro font. This has worked for months, now suddenly my entire book is  highlighted in pink and my font is missing! I get the message that the font is currently unavailable on my computer, how can i get it b

    I am using InDesign CC and added Garamond premier pro font. This has worked for months, now suddenly my entire book is  highlighted in pink and my font is missing! I get the message that the font is currently unavailable on my computer, how can i get it back?

    BlazingRiver wrote:
    So my computer is running on OSX but my question is if any of the viruses on my windows partition can still run and communicate information to their 'master' as there is still a supply of electricity? Sorry if its obvious.
    Here's a positive thing: Windows viruses can't run on OS X, but they can be transferred from OS X to other PCs (only if you have them on the OS X volume).
    BlazingRiver wrote:
    1. How could a trusted source e.g. Google and Steam contain viruses if they are downloaded from the original source? and
    You could get a virus from a different source that infected Steam and Chrome without any problem. Viruses normally try to infect as many files and programmes as possible.
    BlazingRiver wrote:
    2. Can iOS devices get viruses and I know this is probably in the wrong but 3. What anti-virus scanner and remover tool do you recommend for windows. The only one I am familiar with is Kaspersky?
    iPhones, iPads and iPods touch can't get viruses but they can transfer them to other PCs. For Windows, I recommend Microsoft Security Essentials

  • How can I send photos in mail as attachments instead of in the body of the message?

    I want to send photos as attachments to email instead of in the body of the message.  I have searched through preferenced in both mail and iPhoto but can find nothing that lets me do this.

    1. As Rysz says, Mail does send them as attachments. If seeing the preview is problematic for you, then right click on it in the Mail Message window and select 'Show as Icon'.
    2. If you're worried about how they are received... Mail defaults to sending RTF email. A few older applications on other OSes have problems with these. A lot of users on other OSes can't figure out how to set their Mail applications to work with them. If that's the problem, use Plain Text as Larry says.

  • When I import video and place it into timeline as a raw file with no fx or any added processing I get the message that the video is unrendered and therefore it doesn´t playback?

    When I import video and place it into timeline as a raw file with no fx or any added processing I get the message that the video is unrendered and therefore it doesn´t playback?

    FCE can use DV or AIC video formats natively.  Any other format will need to be converted to one of those two if you want to avoid constant rendering.  The clips you use must match the Sequence settings.
    -DH

Maybe you are looking for