How to add attachment to FI document from sap server

Hi.SAP experts:
    I have files on SAP Server,and I want to attach these files to my FI Document,how could I achieve this goal without download the files into my local computer??
Best Regards
Martin Xie

This could help you:
http://www.whypad.com/posts/sap-attach-documents-to-a-journal-entry/45/

Similar Messages

  • How to extract meta data of documents from SAP R/3

    dear all,
    i`am working in aproject where we connect the documents for SAP R/3 applications.we maintain our own repository for that purpose.it may be in bound or out bound according to customer needs.the meata data related to the documents is stored in SAP.our requirement now is to have that metadata available in our repository .can any one guide me how to write ABAP code for extracting meata data from SAP and enable even nonSAP users to have the access for the documents.
    thanks in advance
    ravi

    Hi,
    One way to do this is probably set a connection between SAP Database and an external database and store the meta data into external database from where a non-sap user will have an eccess to the data.
    Steps required are :
    1. we have to involve basis team also in that.
    2. they will make one entry
    in DBCON table
    (that entry will point to secondary database/external database)
    (suppose the name of this secondary connection is HRCON)
    3. Also they will make connection string
    in application server.
    4. After that,
    we should have
    the table definition in SAP dd dictionary
    and also
    the same defintion
    in the external database. 
    5. now in abap code,
    we have to use like this.
    DATA: mydbcon(30) TYPE c.
    mydbcon = 'HRCON'.
    INSERT ydev_msg_cur CONNECTION (mydbcon)
    FROM msg_cur .
    <b>Hope this helps.
    Please mark helpful answer.</b>
    Regards,
    Amit Mishra

  • How to script to Print a document from SAP Business One SDK

    I have created a project using UDO, Form and User table using B1DE2005.
    I wonder how can i program to print a document from my screen. something like Sales Order, where user can click on Print Preview button and it will print the sales order confirmation preview..
    KC

    Where do you want to execute this print/print preview?  Inside Sales Order?
    If that is the case use the print event, now if you have your own form and is separate of any of the SAP B1 system forms, then you will have to use the menu event and evaluate when they have press the print button (which you also probably will have to make sure that is active).
    WB

  • How to add attachment to a mail from client side to an account

    hi all,
    i am using java mail api for my web-application. what i have done is that when the user submits a weekly-report form , the contents of form are mailed to a specific address acount in gmail from where i can retrieve all mails. i am able to achieve this.
    what i want now is that the user should be able to attach some file to the report-form and that file comes as attachmernt to the gmail account.
    How can i pass value to FileDataSource for filename as it looks for that in my local machine and not on client machine.
    Please help and if u can give a sample code for reference also.
    here is code snippet for jsp form and servlet for reference:-
    jsp form code is:-
    <FORM method="post" enctype="multipart/form-data" action="SendMailServlet">
    <CENTER><TABLE BORDER=0 CELLPADDING=5 WIDTH="95%" >
    <TR>
         <TD WIDTH="25%"><B>Name:</B></TD>     
         <TD WIDTH="25%"><INPUT type="text" name="name" size="20"></TD>
    </tr>
    <tr>
         <TD WIDTH="25%"><B>Comment: </B></TD>     
         <TD WIDTH="20%"><textarea cols="40" rows="4" name="comment"></textarea></TD>
    </TR>
    <tr>
         <TD WIDTH="25%"><B>Attachment: </B></TD>
         <TD WIDTH="20%"><INPUT type="file" name="file" size="20"></TD>
    </TR>
    corresponding code for servlet is:-
    MimeBodyPart p1=new MimeBodyPart();
    p1.setText( "FeedBack Sent From :- "+senderName+CR+
                   "Comment Given is :- "+comment+CR);
    //Set the attachments
    MimeBodyPart p2=new MimeBodyPart();
    FileDataSource fds=new FileDataSource(file);
    p2.setDataHandler(new DataHandler(fds));
    p2.setFileName(fds.getName());
    Multipart mp=new MimeMultipart();
    mp.addBodyPart(p1);
    mp.addBodyPart(p2);
    msg.setContent(mp);
    msg.saveChanges();
    Transport.send(msg);
    Any help in this regard will be highly useful
    thanks in advance
    rahul

    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]How to Use Lists. It has an example of dynamically adding an item to the list. There is also a tutorial on "How to Use File Choosers" if thats your problem.
    Start with the basics and read the tutorial.

  • Download the pdf document from sap server

    Hi,
    I uploaded the pdf document as MIME type in mime browser.  I have a requirement to open this document when I click on the button.  How could we achieve this ?  I appreciate your help.

    1.You could use offline intractive form to display PDF.
    2. use
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = file_name
        i_content   = lv_content
        i_mime_type = mime_type
        i_in_new_window = abap_true
        i_inplace       = abap_false ).

  • How to extract the actual XML document from soap message?

    My problem is " how to extract the actual XML document from soap message? "
    i just want to extract the attachment i.e. (pure XML document without any soap header or envolope).
    i could be ver thank full if u could solve my problem.
    [email protected]

    Hi,
    This is some skeleton code for extracting an attachment from a SOAPMessage.
    import javax.activation.DataHandler.;
    import javax.xml.soap.*;
    import javax.xml.message.*;
    Iterator allAttachments = message.getAttachments();
    AttachmentPart ap1 = null;
    while(allAttachments.hasNext()){
    ap1 = (AttachmentPart)allAttachments.next();
    //Check that the attachment is correct one. By looking at its mime headers
    //Convert the attachment part into its DOM representation:
    if(ap1.getContentType() == "text/xml"){
    //Use the activation dataHandler class to extract the content, then create a StreamSource from
    //the content.
    DataHandler attachmentContent = ap1.getDataHandler();
    StreamSource attachmentStream = new StreamSource(attachmentContent.getInputStream());
    DOMResult domAttachment = getDOMResult(attachmentStream);
    domAttachment holds an xml representation of the attachment.
    Hope this helps.

  • How can I send a Powerpoint document from my Mac to a PC?

    How can I send a Powerpoint document from my Mac to a PC?

    As an attachment in the usual way.

  • How do I attach a 2nd PDF from iBook to the same email

    After I initiate an email from iBooks and attach a PDF document how do I attach a 2nd PDF from iBook to the same email

    You can only email one pdf at a time.

  • How to add attachment in the background .

    Hi Experts,
    How can we add attachments to a document in the background .
    Example : how to add attachement to a purchase order  in background.
    Thanks in advance .
    Naval bhatt

    check out this weblog
    /people/rammanohar.tiwari/blog/2006/03/25/generic-object-services-gos--in-background--part-ii

  • In mail, how do I attach pictures or documents as icons that open full size

    in mail, how do I attach pictures or documents as icons that will open full size?

    Try Option + click the picture and choose Show as Icon

  • This is my first mac i have 2 hard drives installed how do i move photos or documents from one to the other

    i just bought my first imac i have 2 seperate drives on it. how do i move photos and documents from one to the other.

    This is our resident iPhoto guru, Terence Devlin's, advice:
    You can move your iPhoto Library to an external or secondary internal disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library Folder as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.

  • HT4859 How do I back up my documents from my Macbook on iCloud? or can I only use time machine or external HD?

    How do I back up my documents from my Macbook on iCloud? or can I only use time machine or external HD?
    I think I have missed something in trying to read all of the pages on apple site about icloud.

    Welcome to the Apple Community.
    You can't back up a computer to iCloud.
    You can use any back up software, you should always back up to a different drive.

  • How to add a record in document library without upload file.

    Hi,
    how to add a record in document library without upload file?
    Is it possible? I want to create a folders in Document Library but inside folders i do not want to upload a file instead of just i want to create a record. I will map my local file path to the records.
    Can anyone help me on it?
    Thanks & Regards
    Poomani Sankaran

    Hello Sankaran,
    document library is to upload documents, without document you will not be able to add a record or Item to it.
    for your requirement you can use a list and enable folders within the list and maintain the local path of the file as an item in list.
    http://www.sharepointbriefing.com/spconfig/article.php/3834951/Enable-the-New-Folder-Creation-Option-in-SharePoint-Custom-Lists.htm
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How do I open a PDF document from a website while in Safari on my iPad.

    How do I open a PDF document from a website while in Safari on my iPad.

    When you see a PDF link in Safari, click on it. It will preview in Safari. Then click the Share icon, and choose Open With, then select Adobe Reader.

  • How can I download a .pdf document from a web link without Adobe Reader starting automatically and i

         How can I download a .pdf document from a web link without Adobe Reader starting automatically and preempting the download?                         

    That depends on your operating system and browser.  On Windows, e.g. using Firefox, you right-click on the link, then select 'Save link as...'.

Maybe you are looking for

  • Ipod nano 7th gen not being recognized by itunes

    i have the new hp split x2 laptop running windows 8. i kept ignoring the new itunes update and everything was fine but as soon as i installed it, itunes no longer recognized my ipod nano (7th gen). i have been sitting here for about 2 hours looking f

  • Substract 1 day to a date, user-defined function.

    I want to sybstract 1 day from the given DATE. My userdefined function has only 1 argument which receives the given Date. argument name is " a " Imports : java.util.Date;java.text.*;java.util.Calendar;java.util.GregorianCalendar; public String dateTr

  • Connection timed out - error 3259

    I have run the diagnostics test and everything seems fine. I have read as many help articles as I could find relating to download problems and have follows firewall steps, etc. I purchased a song from itunes 7.0.2 with my new ipod nano. It would not

  • Test: Using Crop marks in indesign CS4 with Epson 3800 Mac 10.5.7

    Jun 19, 2009 9:35 PM Crop marks using indesign CS4 with Epson 3800 Mac 10.5.7 My crop marks and pages are printing larger than my document sizes.  My paper size is 13x19, so I should have crop marks at the exact corners of the page sizes.  But indesi

  • Q10 no carrier- NO UPDATE to 10.2.1

    Hi BlackBerry Community, My Q10 ver. 10.2.0.424 doesn't update to 10.2.1. I am in Beijing holding unlocked version purchased in HK and my friend has his Q10 unlocked bought in Singapore living within the same building as me got his update 2 weeks ago