How to upload documents( like word, excel, pdf etc) into r/3 system

Hi All,
           Does anyone have information on uploading and downloading documents like word, excel,pdf etc into R/3 system. Is there any function modules, classes, programs etc to do this.
    To give an example about what i mean by uploading documents, we can take the process of attaching documents in support of a SLM issue in solution manager.

Hi Syed,
  Use the FM gui_upload to upload a file from presentation server and gui_download to download file to presentation server. see the code below and also read the documentation of the respective FM's.
data:
    lw_file  type string,              " File Path
    lw_file1 type IBIPPARMS-PATH.      " File Path
  CALL FUNCTION 'F4_FILENAME'
   IMPORTING
     FILE_NAME            = lw_file1.
  lw_file = lw_file1.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = lw_file
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = 'X'
    tables
      data_tab                      = t_kna1
   EXCEPTIONS
     FILE_OPEN_ERROR               = 1
  IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.                               " IF SY-SUBRC <> 0
data:
    lw_file  type string,              " File Path
    lw_file1 type IBIPPARMS-PATH.      " File Path
  CALL FUNCTION 'F4_FILENAME'
   IMPORTING
     FILE_NAME            = lw_file1.
  lw_file = lw_file1.
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
*     BIN_FILESIZE                  =
      FILENAME                      = lw_file
      FILETYPE                      = 'ASC'
*     APPEND                        = ' '
      WRITE_FIELD_SEPARATOR         = 'X'
*     HEADER                        = '00'
    TABLES
      DATA_TAB                      = t_KNA1
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.                               " IF SY-SUBRC <> 0
  IF SY-SUBRC = 0.
    message 'file downloaded successfully' type 'S'.
  ENDIF.                               " IF SY-SUBRC = 0
With luck,
Pritam.

Similar Messages

  • How do open document like word , excell or pdf ??

    hello
    on the application form , how do read (open) and print document like
    as (word , excell , pdf ) ??
    nots : we use oracle V. 10 g
    thank .

    Hello,
    I was trying to open word document from oracle 10g with below code.
    DECLARE
    AppID PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('d:\doc1.doc',
    DDE.App_Mode_Minimized);
    END;
    But it is showing me some error as below:
    ORA-06550: line 4, column 10:
    PLS-00201: identifier 'DDE.APP_BEGIN' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
    2. AppID PLS_INTEGER;
    3. BEGIN
    4. AppID := DDE.App_Begin('d:\doc1.doc',
    5. DDE.App_Mode_Minimized);
    6. END;
    Could you please help me?
    Thanks

  • How to use documents MS-Word-Excel and Pdf on iPhone 4S

    Before I bought the iPhone I was using Sony Ericson X1 Xperia. On this phone I could easily read & write  on documents MS-word/excel and transferred them from and to my PC with Windows 7.
    Till now I cannot find an easy way to transfer these documents onto my iPhone to edit, create or read. Have already installed iTunes, iCloud and one app numbers. Sofar no success to have it on my iPhone.
    I there sombody who could help me out.
    Thnks, Cor

    http://itunes.apple.com/us/app/quickoffice-pro/id310723177?mt=8

  • Upload files like Word,Autocad,Pdf using oracle Forms

    Using Oracle Forms i want upload files like word,autocad,excel,pdf to be stored in oracle database and a download option to download these files.This must be done only by means Forms for intranet.

    Hello,
    Have a look at this paper:
    Webutil Store and Edit documents

  • How to launch application like word, excel, powerpoint or *.exe on client

    Hi,
    could anyone advise which iView or other portal application I have to use, to get an application like word, excel, powerpoint or *.exe on Clinet side (e.g. notepad.exe) working.
    Solution should be: I will klick in the fine navigation on the link word. Word should be open. ALso it should work with other applications.
    Is there any solution for this? Maybe even a standard solution (without coding).
    I have created km document iView (.html page) to link to the applications via java scripts in the html code. But this solution ist not the one i am searching for.
    Regards,
    Eduard
    Edited by: Eduard Günther on Jan 28, 2009 10:24 AM

    Hi .
    You can use these method in sequence as follow:
    1)  CALL METHOD cl_gui_frontend_services=>file_open_dialog
         this method let the user choose a file form his computer ad return the file path (ex.: C:/..../file.txt)
    2) CALL METHOD cl_gui_frontend_services=>gui_upload
         this method upload the file and return the file content.
    After you got the content of the file you can store it inot a custom table .
    There are similira merhod for the inverse problem (file download).
    Regards,
    Fabri

  • How can add or open  a document like word,excel  from forms ?

    Hello,
    I want to open a excel file from my forms from a specific location , i have to write the code in when-button-pressed button i.e when i will click on add button it will open a dialog box there i need to browse the excel file then it will add the link in my form, when i click on that link it will open the excel file .
    Many Thanks.

    hi
    do u use webutil? if yes then try something like this.
    when-button-pressed trigger
    declare
          f varchar2(100);
    begin
         f := webutil_file.file_open_dialog();
         if f is not null then
              :excel.file_name := f;
              end if;
         end;Note:- u have to attach webutil.pll without webutil it will not work.
    sarah

  • How to attach a document (word/excel file etc)

    Dear Sir,
    We need to attach documents (word/excel/pdf etc) in a FORM application and the attached document need to be stored in database also .  There may be multiple documents getting attached .  We also desire that if a transaction document  say Purchase-Order is having  attached documents with it then an icon should appear on the screen so that user can come to know directly about the attachment .
    We request you to kindly guide us about the steps to be followed to meet the above requirement please .
    With thanks and regards
    B Mittal

    Hello,
    ALWAYS give the exact Forms version as solutions can be very different depending on that detail.
    Francois

  • Component to URL link a word/excel/pdf document inside Page

    Hello Experts,
    I would really appreciate if somebody can answer if there are any standard component or functionality available to call a network URL link to a word/excel/pdf document inside a ABOUT tab page for the definition and screenshot of How-to and functionality of the dashboard.
    I am trying to avoid creating a custom component to use SAP UI5 HTML control to initialize a OLE object call to a given URL.
    Thanks
    Arun

    Well, Word and Excel documents are binary, so you will need a Binary LOB (BLOB).
    I have recently been storing/retrieving BLOBs through ASP/ADO . . .
    BLOBs are limited to 4GB, but ADO has a limit of 2GB. Hopefully, that will not be a problem.
    If you are using ODBC, then be aware that you need to enable LOBs by setting LOB=T in the connection string. If you are using ODBC with stored procedures, then there is a bug that causes the LOBs to be truncated to 32K, which is fixed in 9.2.0.6.5. A colleague tells me that the Microsoft ODBC Driver for Oracle works with LONGs but not with LOBs.
    If you are using OleDB with stored procedures, then you'll need to set the "SPPrmsLOB" property to TRUE.
    When uploading BLOBs through ADO, you need to set the parameter size to 1 higher than the actual size, otherwise you get an error.
    When retrieving the BLOBs through stored procedures as OUT parameters, you need to set the parameter size to larger than the BLOB, otherwise it gets truncated. I do not like having to specify 2GB for a file that might only be 32K, so I prefer to return a record set via a REF CURSOR.
    Tak

  • How do I make an uploaded document like an order form work in pages and how do I save it to a bookmark

    How do I make an uploaded document like an order form work in  pages and how do i bookmark it for later use

    Pages can work with Word documents. It can save the results as either PFd or Word documents.
    Allan

  • How to print bin/hex content of word, excel, pdf directly to printer?

    Hi all,
        My requirement is to print all the GOS attachments of a Quality Notification.
        I have output from FM SO_DOCUMENT_READ_API1 (reading GOS attachments). I would like to print the content directly, and the content could be of word, excel, pdf, jpg, notepad etc.,
       Is there any function module or any class/methods that can take in the content and print them according to the file type? If not, please suggest any alternative solution/ideas.
    Thanks
    Vinoth

    Hi,
    I have the same problem
    with the additionnal problem: do it in background
    So, What I have for the moment
    --> You have a tool : BC-XDC that allow you to convert any file into an OTF.
    --> there is also the tool : GhostScript to convert some format to specific format (using SM49) ..
    (I can't cut/past code ... don't know how to do)
    Hope that will help you
    Edited by: Frédéric Girod on Oct 30, 2009 10:33 AM
    Edited by: Frédéric Girod on Oct 30, 2009 10:34 AM

  • I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and d

    I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and downloaded Adobe Reader X instead and that still doesn't work. I have Windows 7.

    Hello,
    Please follow the link to troubleshoot the printing issues with Adobe Reader:- Troubleshoot PDF printing | Acrobat, Reader.
    Regards,
    Nakul

  • Confirm on - Scratch-resistant glass, oleophobic coating,Adobe Flash HTML,Radio Stereo FM,Java MIDP emulator,Scratch-resistant glass back panel,Audio/video player and editor,TV Out,Document editor (Word, Excel, PowerPoint, PDF)

    Kindly confirm on the following features of Iphone 4s..and advice me accordingly.
    Confirm on - Scratch-resistant glass, oleophobic coating,Adobe Flash HTML,Radio Stereo FM,Java MIDP emulator,Scratch-resistant glass back panel,Audio/video player and editor,TV Out,Document editor (Word, Excel, PowerPoint, PDF)

    You can easily compare any Nokia devices using the web sites, here is a comparison of the N8 from the Nokia UK site:
    http://www.nokia.co.uk/gb-en/products/compare/?action=productcompareaction&site=64060&products=23301...
    And similar from Nokia Developer:
    http://www.developer.nokia.com/Devices/Device_specifications/Comparison.xhtml?dev=Lumia_800,N8-00
    Some information may be incomplete at present, since some device details were kept secret until the final moment of the launch so the pages have been prepared withoug all of the data.
    Nokia Maps is available for Windows Phone at launch.
    Multi-Touch(TM) is the registered trademark of another company, however Windows Phone does feature the common touch features such as swiping, pinch-zooming and so on.
    If this or any post answers your question, please remember to help others by pressing the 'Accept as solution' button.

  • How to upload documents in solution manager

    Hi
    Could anyone please help me how to upload documents in solution manager.
    just like saving the documents in common share folder.Is it possible to do the same
    in solution manager
    Need to create different folders to upload different documents
    Please help me.

    Hi
    folow this guide on smp to create a project etc with screenshots
    https://websmp206.sap-ag.de/~sapdownload/011000358700000478762009E/HowToCreateConfGuide.pdf
    if just want to upload the documents then choose process step on left side and click project doc tab
    upload documents
    hope it helps
    regards
    prakhar

  • Opening word, excel, pdf, jpeg files as attachments on iphones

    I've always been able to open word, excel, pdf & jpeg files as attachments on my iphone 5.  But recently, everytime I tried to open one of these, the file image turned up all grey, and in the case of jpeg files, it just kept on loading, loading & loading, but never finished loading ...  It seems like this happened after I updated to IOS 6.1.4 recently...  This is just a guess.  Could anyone help me with this?  Thank you.

    Srinivas,
    Thank you for your reply. It helped me get to a solution. In essence I needed to copy the Unix file to an internal table and then save it to the end user's PC file. Then I am able to open the document / attachment.
    I created a new function to:
    1) call method cl_gui_frontend_services=>directory_browse,  to ask the end user to pick a PC directory to copy the Unix file attachment to.
    2) Then  using the following code, copy the Unix file (as determined by application or user) to an internal table. Note that the line is not limited by a certain length.
      types: begin of t_tab,
              line type string,
             end of t_tab.
      data: k_wa_itab type t_tab,
            t_it_itab type standard table of t_tab.
    open dataset v_unixfilename for input in binary mode.
      if sy-subrc <> 0.
        raise unix_filename_read_error.
      endif.
      do.
        read dataset v_unixfilename into k_wa_itab-line.
        if sy-subrc <> 0.
          exit.
        endif.
        append k_wa_itab to t_it_itab.
      enddo.
      close dataset v_unixfilename.
    3) Using call method cl_gui_frontend_services=>gui_download, save the contents of the internal table to the PC directory from step 1 above.
    4) Open the Attachment from the end users PC via:
    call method cl_gui_frontend_services=>execute
    It seems like a long way to get this to work, but it is working. If there is a better way maybe someone else can fill in the blanks. Ideally a tool to read and open from a file from Unix without using the cl_gui_frontend_services would be ideal.

  • Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive

    You cannot use pendriver.
    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

Maybe you are looking for

  • Troubleshoot Connecting MacBook Pro to Mitsubishi XD80U Projector

    I am having trouble with the signal from a new MacBook Pro 15" to a Mitsubishi XD80U Projector using the DVI to VGA adapter. The signal projected is distorted, grainy, and jumpy. The left side of the projected picture has white lines appearing as if

  • Depreciation Report vs F.01 Report

    Hi, I have browsed through the forum in regards to tally with the F.01 report vs S_ALR_87012004. However, one of my client have revaluation figure on APC. It's strange that the Planned Depre of S_ALR_87012004 report show revaluation figure (for the l

  • Org unit relations not created

    Hi Experts, We are facing one issue. When there is large change in HR data then 3-4 IDOC came into SRM system. Generaly first IDOC carry new org unit information abd second IDOC carry relation of Org unit with higher org unit. As IDOC processes simul

  • Catch 22 Can't deauthorize computers with my iPad

    I had downloaded an app onto my iPad. When I connected it to iTunes it asked me if I wanted to activate this computer to be able to add the app to the apps in iTunes. I confirmed that, entered my password and got the error message that I had activate

  • JPEGs saved in CS5 show as red box in RoboHelp7

    I've been using CS2 at work and yesterday they upgraded me to CS5. Today, I was updating our manuals in RoboHelp7 and opened up one of the jpeg images in CS5, made some changes and saved it. Immediately, in RoboHelp, the image disappeared and was rep