Attach mail (.eml) messages to sd invoices using abap

Good morning,
I need a abap report to attach outlook express messages (.EML) to SD Invoices (using SapOffice?). Can anyone give an help? Is there any function-module,
or exemple program to solve this problem?
The idea is to strore attached to the sd invoice, the EDI messages exchanged outside of R/3 (using an external non-sap system). Those messages are have .eml format
Thank you

Hello,
thanks for your help, but this is my first experience with document management in SAP, and it´s not clear for me what I have to do, as those examples are for outbound documents (sent from sap). I want to store inbound documents (import external files and link them to SD Billing documents in R/3, probably using my Archive system). It seems to me that Sapoffice document store should be perfect for this, as I would not need to do any additional work in order to open the documents latter.
This is what I want to do: in VF03 (Change billing document) I select "Create Attachment" option and browse for a .eml file (outlook express msg) in order to store it and display it latter.
This is perfect. Now I need to do this in abap, as this can not be a manual process.
Can you please give me some additional details on how to get this working?
Thank you
Best regards

Similar Messages

  • How to Attach permit automatically to an work order using abap

    how to Attach permit automatically to an work order using abap
    Moderator message : Not enough re-search before posting, show the work you have already done, thread locked.
    Edited by: Vinod Kumar on Jan 30, 2012 2:16 PM

    At least make sure that you have a default method 'browse' in your class. I mean that make a method for "displaying" or "browsing" or whatever you want to happen when you click the object, and make it default. OR actually if I remember correctly there is a default method existing already, but put your code to there.
    Also try this:
    -Create a container element of type 'sales order' into your task
    -Bind the sales order object from workflow to the the task
    Regards,
    Karri

  • Calculate Withholding taxes for VEndor Invoices using ABAP program.

    Hi All,
    I have to upload Vendor Invoices using FB60/Fb01 tcodes. I am able to post the Invoices using FB01/Fb60
    but I have to calculate extended withholding taxes also using this program for the Invoices.
    Is it possible to upload vendor Invoices and calculate withholding taxes using Program?
    If yes,
    Does anyone has any idea how do you calculate extended withholding taxes using any BAPI's?
    I have used these two BAPI's
    BAPI_ACC_DOCUMENT_POST
    BAPI_acc_invoice_receipt_post
    they are working fine but without withholding tax.
    This is a requirement for country India.
    Regards,
    Sushil

    Hi,
    Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
    For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
    Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
    Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
    If the key of Table2 is vendor no & vendor type, then do a read table for the key.
    The logic in pseudo-code:
    Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
         extract the vendor types in to itab Table1New.
         Select the vendor & types from Table2 by using the for all entries option (better performance).
         loop at Table1New
              check in Table2:
                   if the unique key is vendor no: check all fields for the vendor type from Table1New
                   if the unique key combo is vendor no & type: check by using a read table.
              If not found => add entry to Table2
         endloop.
    endselect Table1 (when using package size)
    I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
    Good luck!
    Best regards,
    Zhou

  • Mail deleting messages daily instead of using Mailbox Behavior to keep on server for 1 Month

    I have a Mailbox Behavior for Trash set to:
    Move deleted messages to the Trash mailbox
    Store deleted message on the server
    Permanently erase messages when: One month old.
    But it is not respecting the latter. The messages are deleted daily. I think this is a recent (Mavericks) gift.
    Anyone having the same problem? Any solutions out there?
    Thanks.

    POP accounts will only give you control to server settings at the inbox. If you never remove it from the server, it will download all messages when you log into your account from another computer. This could be a problem with thousands of messages left on a server.
    For IMAP, your inbox will atuomatically sync to the IMAP inbox, so what you do in Mail or Webmail will reflect the change at the other.
    For the other mailboxes, storing messages on the server in Mail settings basically syncs the IMAP and local mailboxes like the inbox does. So, if you trash a sent message in Mail, it will trash it at the IMAP site.
    If they are left in those mailboxes, then the server setting in Mail will control how long the remain in those mailboxes unless you move them or delete them manually.
    If not set to store on the server, the local mailbox will not sync with the IMAP. So, deleting a sent message from the local sent mailbox will not delete the sent message in the IMAP sent mailbox.
    Some accounts like GMail have settings at their site that will let you further control how mail is handled.
    You can make settings to archive messages automatically when deleted from the inbox or sent folder. I believe that is the default setting in GMail. That would be what you want to save all your mail.  That would keep your inbox and sent mailboxes clean. Look at your IMAP site to see what settings you can make there.
    In GMail, the "all mail" is just a reflection of all messages kept and archived. You have no settings control of this mailbox on your mac in Mail. But, you can view the "all mail" under the IMAP folder in Mail.
    You can still set up a smart mailbox on your mac in mail to show the messages in the "all mail" mailbox that are greater than a year old. Only those would show up in that smart mailbox and you can just select all and delete without having to visually look at all the messages in the IMAP "all mail".

  • HT204389 Mail & Text Message Sounds Gone When Using Siri

    The confirmation "vwoop" or "swoosh" that would annunciate a message or text being sent by Siri stopped working. I am blind so this feature is important to me.
    I took my phone to an AT&T corporate store and they had a replacement sent to me. The problem remains even with this new iPhone, and after further investigation it appears this may be related to an iOS update, as others I have spoken with also say they lost that sound after Siri sends a msg or text. This phone is running 6.1.2. Is this a bug or what?  Will this be addressed in an update?

    Just tried that, and no go. Thanks for the suggestion, though.
    I got a message from the head of service where I take my Mac for repairs, and he says Rules never work for him, that it just messes up and disappears his messages.
    Any other similar experiences?

  • Attach files to a Sales Contract (VA42) using ABAP

    Hi Guru´s
    Hope everybody is doing fine.
    I have 3 or 4 days trying to find a BAPI or Function Module to attach files to a SAP object, in this case, to a Sales Contract (VA42). This is my first time working in a program to do this. I tried to develop a BDC program, but the "Services for Object" control is not supported via BDC.
    Does anybody have an idea how to do it?
    I really appreciate all your help!
    Best Regards
    Jesus Martinez
    ABAP Developer

    you have already found the name : generic object services (GOS). Look at the forum, it has already been explained many times. You may also look at the sap library for general information (APIs are not discussed a lot).

  • Output type using ABAP proxy

    Hi All,
    Is it possible to create an output type for delivery or invoice using ABAP proxy? If yes do we need to follow some special steps(apart from the usual setting we do for EDI or print outputs) to be followed for this?
    Regards,
    Sajith.

    Hi Sajith Hari,
    I am not aware about the ABAP option but you can certainly use NACE tcode and select V2 or V3 accordingly for deliveries or invoices>go to output types and create your desired output types.
    regards,
    US

  • Is there any way to automatically add an attachment to a message in Mail?

    Hi,
    I have to responsd to a lot of emails with basically the same response. I use a TextExpander snippet for the body of these messages. However, I usually need to attach a PDF file as well.
    Is there anyway to automate attaching a PDF attachement to a message in Mail?
    Perhaps, this can be done by adding the attachment into a Signature, although I havent seen a way to do this.
    Or perhaps, some kind of Automator scritpt?
    The mail account is actually a Google Apps account, so perhaps there is a way to have the GMail server do something to the message on the way out?
    Thanks

    it's fairly easy to create an outgoing message with attachments in applescript; just use a script like the following:
    tell application "Mail"
              set newMess to make new outgoing message with properties {visible:true, subject:"test emal"}
              tell newMess
      make new attachment at end of attachments with properties {file name:"/path/to/attachment"}
              end tell
    end tell
    it's extremely difficult to add an attachment to an outgoing email that's already been created, however (there's no easy way in applescript to get a reference to an open outgoing message window if the script did not make the window itself).  I'm not sure which you had in mind.

  • Save Attachment from exchange server 2010 from oracle using java mail API

    Hello,
    I want to read email from microsoft exchangeserver 2010 and save attachement into a folder.I created an Java program to import attachments from a exchange server mailbox using "POP3S".It works fine when run as a java application.But when i put this inside Oracle11g R2 using load java and while executing from a procedure it gives an error at parsing message into Multipart
    Error at line : Multipart mp = (Multipart)m.getContent();
    Error:
    Content-Type: multipart/mixed;
    boundary="_002_A0C2E09A..................................."
    java.lang.ClassCastException
    at mailPop3.checkmail(mailPop3:71)
    My Java Class is as follows,
    import java.io.*;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.Date;
    The function i used to check for attachments is given below.
    public static boolean hasAttachments(Message m) throws java.io.IOException, MessagingException
    Boolean hasAttachments = false;
    try
    // if it is a plain/html text - no attachements
    if (m.isMimeType("text/*"))
    return hasAttachments;
    else if (m.isMimeType("multipart/alternative"))
    return hasAttachments;
    else if (m.isMimeType("multipart/*"))
    Multipart mp = (Multipart)m.getContent();
    if (mp.getCount() > 1)
    hasAttachments = true;
    return hasAttachments;
    catch (Exception e) {
    e.printStackTrace();
    } finally {
    return hasAttachments;
    My Java Details as follows
    java Version :1.5.0_10
    java.vm.specification.version:1.0
    java.vm.version :1.5.0_01
    java.specification.version:1.5
    java.class.version:48.0
    Java mail API:javamail-1.4.4
    Used Jars:mail.jar
    Could someone explain why I am getting this error? What can I do to resolve this error?
    Is any other Jar need other than mail.jar?
    Any help would be much appreciated.
    Regards,
    Nisanth

    Hai EJP,
    Thanks for your reply,
    My full java class as follows,
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Folder;
    import javax.mail.Message;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Store;
    import javax.mail.Part;
    import javax.mail.Multipart;
    import javax.mail.internet.MimeMultipart;
    import javax.mail.internet.MimeMessage;
    public class Newmail
    public Newmail()
    super();
    public static int mailPOP3(String phost,
    String pusername,
    String ppassword)
    Folder inbox =null;
    Store store =null;
    int result = 1;
    try
    String host=phost;
    final String username=pusername;
    final String password=ppassword;
    System.out.println("Authenticator");
    Authenticator auth=new Authenticator()
    protected PasswordAuthentication getPasswordAuthentication()
    return new PasswordAuthentication(username, password);
    System.out.println("Certificate");
    String filename="D:\\Certi\\jssecacerts";
    String password2 = "changeit";
    System.setProperty("javax.net.ssl.trustStore",filename);
    System.setProperty("javax.net.ssl.trustStorePassword",password2);
    Properties props = System.getProperties();
    System.out.println("host-----"+props);
    props.setProperty("mail.pop3s.port", "993");
    props.setProperty("mail.pop3s.starttls.enable","true");
    props.setProperty("mail.pop3s.ssl.trust", "*");
    Session session = Session.getInstance(props,auth);
    session.setDebug(true);
    store = session.getStore("pop3s");
    System.out.println("store------"+store);
    store.connect(host,username,password);
    System.out.println("Connected...");
    inbox = store.getDefaultFolder().getFolder("INBOX");
    inbox.open(Folder.READ_ONLY);
    Message[] msgs = inbox.getMessages();
    System.out.println("msgs.length-----"+msgs.length);
    result = 0;
    int no_of_messages = msgs.length;
    for ( int i=0; i < no_of_messages; i++)
    System.out.println("msgs.count-----"+i);
    System.out.println("Attachment....>"+msgs.getContentType());
    Multipart mp = (Multipart)msgs[i].getContent();
    System.out.println("Casting Success" + mp.getContentType());
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    if(inbox!=null)
    inbox.close(false);
    if(store!=null)
    store.close();
    return result;
    catch(Exception e)
    e.printStackTrace();
    return result;
    Please check it
    Regards,
    Nisanth

  • HT5622 I keep getting emails stating that my password had been changed but the name attached to the message is not minr but it's my email address. Is someone using my email address to sign into FaceTime or other Apple Programs?

    I keep getting emails stating that my password had been changed but the name attached to the message is not minr but it's my email address. Is someone using my email address to sign into FaceTime or other Apple Programs?

    Of you're being phished. There are a lot of phishing scams going around right now with bad guys trying to get access to apple ID's.
    Anytime you want to verify the info, do not click on any links in the mail, but open up iTUnes on your computer and check things out that way.
    If you want to verify if anything is wrong http://www.apple.com/support/appleid/contact/
    contact apple on your own and see what they say.

  • In Mail, my message preview used to be shown to the right side of the messages.  Now it is showing below the messages.  How can I move it back to the right?

    In Mail, my message preview used to be shown to the right side of the messages.  Now it is showing below the messages.  How can I move it back to the right?

    Select the Viewing tab in the Mail preferences dialog and uncheck the box marked Use classic layout.

  • HT2500 After my last software update I can no longer access my mail.  message displayed says "you have mail version 4.5 this cannot be used on  Mac OS X Version 10.6.8 .  How do I fix this???

    After my last software update I can no longer access my mail.  message displayed says "you have mail version 4.5 this cannot be used on  Mac OS X Version 10.6.8 .  How do I fix this???

    See possible fixes here.
    https://discussions.apple.com/message/19760703#19760703
    https://discussions.apple.com/thread/4311280?tstart=0
    https://discussions.apple.com/message/19710911#19710911
    Some have reported success simply by reinstalling the update.
    http://support.apple.com/kb/DL1586
    Or download and apply, or reapply, the 10.6.8 Combo update first, then apply the Security Update again.
    http://support.apple.com/kb/DL1399
    I'd suggest starting with the simplest of these fixes, so look them over first.

  • When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message. I use Exchange 2010 only local users.

    When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message.  I use Exchange 2010 only local users.

    I think there is not native rule for this, but you could try a transport rule which removes all attachments over a very small file size like 1KB.
    http://blogs.technet.com/b/exchange/archive/2009/05/11/3407435.aspx
    CRM Advisor

  • Is it possible to download a mail(.eml) from outlook 365 using exchange service and store in database using c#

    Hi All,
    I have a outlook mail account ex:- my mail account id is
    [email protected] , using c# code and Microsoft.Exchange.WebServices ,
     I want to download entair email and want to save this email in database , is it possible suggest me how can I go forward on this, if not possible please suggest some alternative ways to find the solution.
    the reason want to store this entair mail is  on click on some button I want to open this mail from database in .eml format with attachments if any are there.
    Thank in Advance
    Ravi

    Hello Ravi,
    Try this:
    http://msdn.microsoft.com/en-us/library/office/dn672317(v=exchg.150).aspx#sectionSection2
    With regards,
    Michael | Microsoft Exchange Developer Content
    The
    Exchange Development Forum Guide has useful information for using the Exchange Development Forum.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Is it possible to delete message in the server using Mail configured using IMAP?

    Is it possible to delete message in the server using Mail configured using IMAP?
    Currently when I delete the message in Mail, the server still keep a copy of it, which means it is not deleted on the server. I know that POP can do this but I still want the option of being able to access it from other computers.
    My server has only a small size, so I hope that I can just delete it from my Mail instead of having to log in to the server and delete it again.
    Thank you.

    yxchng wrote:
    Is it possible to delete message in the server using Mail configured using IMAP?
    Yes, but doing so will remove it from everything else.

Maybe you are looking for

  • Error in IDOC - File scenario

    Hi Experts, This is my error : <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

  • Hi, a bit of a complicated one :)

    We have move from Switzerland to Italy and I used a time capsule as back up disk and wireless in Switzerland. The Italian telephone company came to install the internet with their own wireless router and had no idea what to do with my time machine. W

  • My acrobat plug in is not letting me view certain cites and says is disbaled. How do I fix this.

    I am trying to use the website ATI and I have the recommened internet for it but when I launch it it says the acrobot plug in is disabled and I was wondering how to fix that,

  • Essbase Architects/Projects Managers

    Here is what we are recruiting for:Resource: 2 Roles:- Project Manager/Architect- Essbase ConsultantLocation:Toronto, ONContractsRates are open     Project Manager      Essbase Consultant      Overview: The client is one of North America's leading fi

  • Zip Code Locator / Store Locator

    Guys, I want to write a simple store-locator functionality in my website (Using a Mysql db with JSP-java etc.,) I am not sure of the tools I need and how to approach the problem (once I get a Map of all the zip codes)... Please throw in some ideas th