How to upload file to the R/3 server

Hi Experts,
I need to upload  scanned documents to the R/3 server.I am using File upload UI element. can anybody tell me how to upload to a server.And at the same time how to download the uploaded content.
Awaiting for the reply.
Regards,
Ramanan.P
Edited by: Ramanan Panchabakesan on Sep 9, 2008 2:14 PM

storing:
The data of your uploaded document is stored in your context node.
Read this data, turn it into a table with one of the SCMS* functions.
store it in a table, or write it into a file. Whichever you choose.
downloading again:
read all data from your table or file
turn it into an xstring using one of the SMCS* functions
put the xstring in the context node bound to your downloadfile element
The principle is deadsimple. The only thing that really matters is where you want to store the file. And that is more of technical ABAP R/3 question, if not a functional question than a webdynpro for abap one.

Similar Messages

  • How to upload file from client machine to  server machine?

    i am developing one web application.I have one html file with browse option. client can browse any type of file. what ever file the client will browse it going to be stored in server machine. for storing the file want to use servlet. my html form is of multipart type.
    can any one send me the servlet code? i am using tomcat 5.5 as web server.

    [http://commons.apache.org/fileupload]
    Start reading 'User Guide' and 'Frequently Asked Questions'.
    Good luck :)

  • How to list the uploaded files on the server with a jsp page

    hi every body , iam stuck up with yhis problem . I a have use Random Access File to upload files to the web server , now i want the user can see the files he /she has uploaded or the the files uploaded by others . plese help me how to implement this .
    Message was edited by:
    joshiashutosh

    hi every body , iam stuck up with yhis problem . I a
    have use Random Access File to upload files to the
    web server ,Huh?
    now i want the user can see the files he
    /she has uploaded or the the files uploaded by others
    . plese help me how to implement this .So get the directory using the File class the files are in and list the files inside, showing the result to the user... how difficult would that be?

  • How to upload file from Application Server?

    Dear Friends,
    How to upload file from Application Server?
    Plz. with example...
    Regards,
    Dharmesh

    hi,
    check the code for upload from application server.
    tables: kna1.
    types: begin of s_file,
             customer type kna1-kunnr,
             country  type kna1-land1,
             name     type kna1-name1,
             region   type kna1-regio,
           end of s_file.
    *--Internal tables
    data: it_file type s_file occurs 0 with header line.
    *-- Selection screen
    selection-screen: begin of block b1 with frame title text-001.
    parameter: p_file type rlgrap-filename default 'C:/customer.txt'
    obligatory.
    selection-screen: end of block b1.
    *-- At selection screen
    at selection-screen on value-request for p_file.
    perform file_help using p_file.
    *-- Process File
    start-of-selection.
      perform upload_file using p_file.
    *-- write File data to o/p
    end-of-selection.
      perform write_data.
    *&      Form  file_help
    form file_help  using    p_p_file.
      data: l_filepath type ibipparms-path.
      call function 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       importing
         file_name           = l_filepath
      p_p_file = l_filepath.
    endform.                    " file_help
    *&      Form  upload_file
    form upload_file  using    p_p_file.
      call function 'WS_UPLOAD'
       exporting
         filename                      = p_p_file
         filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
        tables
          data_tab                      = it_file
       exceptions
         conversion_error              = 1
         file_open_error               = 2
         file_read_error               = 3
         invalid_type                  = 4
         no_batch                      = 5
         unknown_error                 = 6
         invalid_table_width           = 7
         gui_refuse_filetransfer       = 8
         customer_error                = 9
         no_authority                  = 10
         others                        = 11
      if sy-subrc <> 0.
        message i001.
      endif.
    endform.                    " upload_file
    *&      Form  write_data
    form write_data .
      loop at it_file.
        write:/ it_file-customer, it_file-country, it_file-name,
                it_file-region.
      endloop.
      endform.
    regards,
    keerthi.

  • How to store a JSP file in the SAP Application server ?

    Hello All,
    My reqt. is as follows :
    1. I need to store a JSP File on the SAP Application server .
    How can I do this ?
    2. I want to call the uploaded jsp file from the server and call this jsp from abap to view the result of it .
    How can I achieve this ?
    First of all is this possible ?
    Regards,
    Deepu.K

    Hello Mike,
    Thanks for ur reply.
    I've imported the JSP as a mime object into the BSP.
    Now I've created the page to show that Mime Object as an image.
    But nothing is coming as an output.
    But then,there is an option for that mime object. i.e when I right click on the mime object there is an option called " convert to BSP".
    I selected that option and it created a view in my BSP .( My BSP is a page with flow logic application )
    Now how should i make this view to be an output ?
    I guess this shud be posted in the BSP Forum ...but still taking a chance here :)-
    Regards,
    Deepu.K

  • How to upload file in a server

    Hi,
    How to upload file to server through reporting. Plz guide me and what would be the probable code.
    Thanks

    Hi,
    Try this Report Program.
    *& Report  ZUPLOADTAB                                                  *
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.
    Regards,
    Padmam.

  • How to upload file to server physical directory

    Dear Sir,
    My Software Details:
    Oracle9i Release 1
    Oracle9iAS 1.0.2.2.2
    Solaris 8
    I have a web application developed using PL/SQL.
    How do i upload a file from user to a server physical directory through Oracle9iAS without storing in database?
    I can do this if file is uploaded to a 9ias upload table.
    But i'm looking for solution on uploading file straight to the physical server directory.
    Please advise.
    Thanks.
    Regards,
    Jap Boon Churn

    Hi Jap,
    You won't be able to do this with modplsql if that is what you are asking. modplsql only uploads file into the database.
    With that said, however, you can write your own CGI/Servlet/Perl program that does the uploading of files into the server physical directory. In your program, you will need to handle HTTP POST requests so that you can parse out the file contents and write it out onto the file system.
    I am sure there is already some CGI/Servlet/Perl program out there that does this. If you search on Google, you should be able to find some and modify it to your needs. Hope that helps. Thanks.
    Eric.

  • Uploading file to the servelet and write directly into database

    i want client to upload file to the server (using servlet for that) and i just don't want to store it to the hard disk, but i want to write it
    into the the ms sql database (that i m using).
    TIA

    Here is a good site for learning how to upload a file using a servlet:
    http://www.servlets.com/cos/index.html
    Once you get the file in the servlet you shouldn't have any problem storing it to a DB.

  • How to attach files to the thread we post in this forum?

    How to attach files to the thread we post in this forum?
    I’m wondering why there is no feature that allows attaching files from our hard drives! It is not practical to upload our file first in a certain web to provide it as a link in the post.
    Is there a way to attach our files directly from our hard drive to the post?
    Please, have a look on the screenshot below that shows a forum which includes all the very basic features!
    Thank you for the help
    Best
    Jamal

    Pierre,
    Just a guess on my part, but I would suspect non-image files in this case.
    As Ted points out, that WAS possible early on, and then the capbility to attach non-image files, was actually retained by a certain few forums, though not for long. This change was coincidental with a major spam attack, and at least one disgruntled user attempting to attach some rather nasty "stuff." I do ot know if those events prompted the change, as I was not part of the decision making group, that initiated the change.
    Though 95% of the files that I wish to attach, ARE image files, there are times, where a TXT file would be ideal, say for a crash log, or similar. Now, I can convert that TXT to a PNG, but then one has to work with pixel x pixel dimensions, and some files, like those crash logs, can be rather long.
    Personally, I find the loss of the Attach File (was via a button at the bottom-left of the editing screen) to be a sad comment on the actions of some, on these forums, but then that just reflects life outside of the forums.
    Hunt
    PS - I am glad that you found that little article useful Especially in the PS, PrPro, PrE and Encore forums, screen-caps can tell so very much about what is going on with a person's program, system or their Projects/Images.

  • When "Upload File" , show the IE error page

    question: when "Upload File" , show the IE error page. How to soluve the problem?

    Duplicate post.
    when "Upload File" , show the IE error page
    when "Upload File" , show the IE error page

  • How to attach files in the SMTP mail?

    Hi All
    Anyone know how to how to attach files into the mail configured
    with SMTP while changing the workstatus. The SMTP mail is working
    fine, but my requirement is to attach a file which is having static information
    like instructions for users or something like that.
    Please help me on this..
    My Version of BPC is MS 7.X
    Regards,
    Baijuchandran.B

    Have you seen this thread? Not an elegant solution, but it appears to work for some bizarre reason.
    https://community.bt.com/t5/Email/Email-won-t-accept-attachments-error-18-temporary-It-isn-t/td-p/14...

  • How to upload file in webdynpro abap alv

    Hello Friends,
    how to upload file in webdynpro abap alv
    Regards
    Narendra
    Moderator message: please search for available information, post in correct "Web Dynpro ABAP" forum if still required.
    Edited by: Thomas Zloch on Jun 6, 2011 11:55 AM

    Hi Narendra,
    You ahve to search before posting. This discussed many times.
    You need to use file upload ui element to upload data. and display in alv.
    Please go thorugh this..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
    Re: Upload .xls file in WDABAP
    http://forums.sdn.sap.com/click.jspa?searchID=72307893&messageID=5425671
    Cheers,
    Kris.

  • Sending uploaded file to the approver using GP Process

    Hai all,
    i my project i need to send the resource files for approver ...
    in my application i have created three actions under one sequencial block ..i need to send the user uploaded files to the three approvers .....

    Hi Ravi,
    You can send email with attachment to multiple approver's using webdynpro api. Please check below link -
    http://wiki.sdn.sap.com/wiki/display/WDJava/Sendmailwithattachmentusingwebdynpro+API%27s
    Regards,
    Sen

  • How to upload files to dashboard obiee 11g

    hi,
    can anyone explain how to upload files to obiee dashboard.
    thanks in advance..

    refer this link .
    http://total-bi.com/2011/02/external-files-obiee-dashboard/

  • Attempting to upload files using the zend _file_transfer system from cs5 training from the source. [was: Question for David Powers]

    I am attempting to upload files using the zend _file_transfer system from cs5 training from the source.
    On trying to upload to a remote server I am having trouble with the destination setting (C:/upload_test) in the example, please could you point me in the right direction for the an example of this setting for a remote file transfer
    Also do I have to construct a connection file to activate a Ftp file transfer?
    David Woolston

    >I am on windows platform
    Who is your host? When you checked your host path in your host control panel, what did it say?
    >i have assumed (may be incorrectly) that the purpose of the exercise was to upload to a remote site (ie my website)
    That is correct.
    >Of course that upload might take place on a computer that does not have DW installed (an internet cafe for example)
    That's irrelevant. DW is just the tool you are using to build your site. The site runs on your hosting accounts servers. This includes the php scripts you are working with.
    >I have uploaded all files necessary for the operation, when i click upload it returns no such directory exits.
    Do you have a url we can check? What destination are you specifying in zend code?
    >This made me suspect that I would need to construct a ftp file transfer connection file to satisfied username, password , connection address etc
    The exercise you are dealing with is using http file transfer. This has nothing to do with FTP. You do not need FTP for this, other than using it to move your source code from your local client to your server.

Maybe you are looking for

  • INVALID_QUEUE_NAME :  Error while scheduling message using qRFC

    Hello SDNers We are currently performing our PI 7.1 upgrade and one of our scenario uses a Sender SOAP of the type EOIO. We tried executing this scenario in PI 7.1 XID environment and in it worked fine without any errors but in our PI 7.1 QA environm

  • Export and Import of master repository - error snpuser not found

    We had installed ODI on a windows server and created physicla and logical topologies etc and developed some models and projects. But we had sone all of this while still pointing to the demo master repository using the HypersonicSQL. This means we alw

  • Foreign Application Commandeers Network!

    Hello, Apple Peeps; Late last evening I was fooling around in ProTools (recording software), specifically in the Midi setup area, which required me to go into the Audio MIDI Setup of my trusty G4 (MDD, Dual 1.25, etc) and do some routing. I was needi

  • Does the iBooks Author support Right-to-Left languages?

    Hi, I wish to know if the iBooks Author support languages which are written from Right to Left, such as Arab, and Hebrew. Moreover, can it show those foreign letters? Does it look okay, or unorganized? And another small thing - can you upload a textb

  • How to enabale trace in Easy DMS ?

    Hi, I used BADI: DOCUMENT_MAIN01 & method: ASSIGN_NUMBER to assign document number. Now am creating document through Easy DMS am getting error "Exception Occurred". How can i find, where is the problem ? How can i enable Trace option in Easy DMS ? I