File Upload from Webdynpro to R/3 Server

Hi all
We have a scenario. In that we want to upload any type of file (can be .txt, .pdf, .doc, .xls, .jpg, .gif etc.) to the R/3 server. We r using a FileUpload UI Element.
The problem is we want to pass the contents of the file (any type of file) to the rfc.
If anybody  knows the solution for this please help us.
(It will be of great help if u give the code)
Thanks & Regards
Aparnna

Hi Aparna,
It happens becuse u r trying to access the byte array of the file in a loop.
For small file it will not make any pblm, but for for big files, the loop may have to iterate millions of times which result in server hang.
So dont try to access the byte array in loop in ur code. Try to pass the byte array u r getting as whole to RFC.
Regards
Fahad Hamsa

Similar Messages

  • How to Save a file uploaded in WebDynpro Java to Windows server

    Hi Guys,
    I need to save a file uploaded in WebDynpro Java to a location on one of my companys many internal Window servers but I cannot get it to work.  I do not get any errors with the following code, but NOTHING happens...  And when I check the folder it is still emply...  Please advise.  I am particularly not sure about specifying the Path syntax.  Also, I do have permission to write to this server.  Is it even possible to save to a Windows server from WebDynpro??
    //uploaded document already in context...
    byte[] file = element.getFileResource();
                //    get the size of the uploaded file  
                element.setFileSize(this.getFileSize(file));
                wdContext.currentContextElement().setFSize(this.getFSize(file)); 
                //    get the extension of the uploaded file       
                element.setFileExtension(binaryType.getMimeType().getFileExtension());
                String fName = wdContext.currentContextElement().getFName();
                String fExt = wdContext.currentContextElement().getFileExtension();
                String foName1 = "
    server01.w9\Files\P
    HRP_Attachments\" + fName + ".pdf";
                File f1 = new File(foName1);
                DataOutputStream dos1;
                dos1 = new DataOutputStream(new FileOutputStream(f1));
                dos1.write(file);
                dos1.flush();
                dos1.close();
    Edited by: christiaanp on Sep 30, 2011 8:07 AM

    Hi Christiaan,
    When specifying the path, make sure you escape the slashes
    So, when you would normally use something like
    \\server\path\file.txt
    in your code you must use it in the form:
    String fileName = "\\\\server\\path\\file.txt";
    Hope this helps!
    Robin van het Hof

  • JSP : latest  JSTL, File Upload from web form Client to Server Question!

    I understand that within a JSP, It is possible to read a file from the Client by opening a Stream somehow.
    How do I code, within jsp/servlet (non tag) java code inside <% %>
    blocks, WITHOUT openening a new connection to the URL, an InputStream from a client web browser form, from a file upload coded using
    <input type="file" name="file1"/> ?
    I have previously achieved this quite simply with a FileInputStream
    with the previous version of JSTL.
    How may I do this with the latest version of JSTL, with this index.jsp?
    -with a simple text file.
    -with a Binary file (with DataInputStream)?
    <%--
    Document : index
    Created on : 27/01/2009, 3:08:32 PM
    Author : Zachary Mitchell
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1 align="center">Hello World!</h1>
    <form name="form1" method ="POST" >
    <table align="center">
    <tr>
    <td>
    <input name="file1" type="file" align="center"></input>
    </td>
    </tr>
    <tr>
    <td>
    <input type="submit" value="submit" action="index.jsp" ></input>
    </td>
    </tr>
    </table>
    </form>
    <!--*********************************************************************** -->
    <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
    <%@page import = "java.io.*" %>
    <c:if test="${pageContext.request.method=='POST'}">
    <%
    File fileName = new File(request.getParameter("file1"));
    out.println(fileName.toString());
    FileInputStream stream = new FileInputStream(fileName);
    out.println(stream.toString());
    %>
    </c:if>
    <!--*********************************************************************** -->
    </body>
    </html>

    If I have:
    <!-- ***********************************************************************************-->
    <form name="form1" method="POST" enctype="multipart/form-data">
    <input name="file1" type="file"/>
    <input name="submit1" type="submit" value="Submit" action="index.jsp"/>
    </form>
    <!-- ***********************************************************************************-->
    and run this in an index.jsp, use browse to select my text file, and click SUBMIT.
    I can use:
    InputStreamReader reader = new InputStreamReader(new DataInputStream(request.getInputStream()))
    BufferedReader bufferedReader = new BufferedReader(reader);
    bufferedReader.readLine();...
    However, these is some HTML/POST related content around what multiple readLine();
    calls return.
    Is there an easy way, like using "${param.file1}",
    aside from [http://commons.apache.org/fileupload/|http://commons.apache.org/fileupload/],
    maybe using servlet style code, to get the File contents from a remote Client,
    to the remote Server servlet engine, AVOIDING ANY SUPERFLUOUS CONTENT,
    using version 1.12 of the JSTL, JSP 2.0,Tomcat 6?
    Just politely, yes, no, and how?
    Edited by: Zac1234 on Jan 29, 2009 3:27 AM
    Edited by: Zac1234 on Feb 1, 2009 8:29 PM

  • Flat File Upload from WebDynpro ABAP

    Hi,
    I am struggling to find a solution for this requirement and I hope I get some help from the Gurus here.
    I have to upload a ".csv" file from the WebDynpro application, and then store the data in the flat file in a Z# table.
    Can some one explain me how to go ahead with this requirement??
    Regards,
    Nadh

    Hi Nrisimhanadh Yandamuri  ,
    After reading the csv file using file up load you can use the following code to tranfer the same to an itab of your required format
        DATA : loc_conv TYPE REF TO cl_abap_conv_in_ce,
          var_string TYPE string.
    Convert XString to String
        CALL METHOD cl_abap_conv_in_ce=>create
          EXPORTING
            input       = item_content
            encoding    = 'UTF-8'
            replacement = '?'
            ignore_cerr = abap_true
          RECEIVING
            conv        = loc_conv.
    *Read the file contents
        TRY.
            CALL METHOD loc_conv->read
              IMPORTING
                data = var_string.
          CATCH cx_sy_conversion_codepage.
    *-- Should ignore errors in code conversions
          CATCH cx_sy_codepage_converter_init.
    *-- Should ignore errors in code conversions
          CATCH cx_parameter_invalid_type.
          CATCH cx_parameter_invalid_range.
        ENDTRY.
        SPLIT var_string AT crlf INTO TABLE it_string_tab.
    Regards
    Sarath

  • Excel File Upload In Webdynpro For ABAP

    Hi All,
    I have a doubt regarding EXCEL file upload for Webdynpro for ABAP.
    I am able to get the path of file using 'FILEUPLOAD' UI element.Now I need to upload the EXCEL file into ALV.I have tried out with GUI_UPLOAD and other excel upload function module.But these Function Module throws Dump.
    Can you please suggest how to go about it.It will be a great help if u can suggest any function module or method.

    Hi Amita,
    Insetad of using GUI_UPLOAD use 'HR_KR_XSTRING_TO_STRING'
    Here is the sample code,
    TYPES :BEGIN OF str_itab,
                  name(10) TYPE c,
                  age(10) TYPE c,
                 END OF str_itab.
    DATA : t_table1 TYPE STANDARD TABLE OF str_itab,
           i_data TYPE STANDARD TABLE OF string,
                   lo_nd_sflight TYPE REF TO if_wd_context_node,
                    lo_el_sflight TYPE REF TO if_wd_context_element,
                    l_string TYPE string,
            fs_table TYPE str_itab,
                    l_xstring TYPE xstring,
    fields TYPE string_table,
    lv_field TYPE string.
    DATA : t_table TYPE if_main=>elements_data_tab,
    data_table TYPE if_main=>elements_data_tab.
      * get single attribute
    wd_context->get_attribute(EXPORTING name =  `DATASOURCE`  
                              IMPORTING value = l_xstring ).
    CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
    EXPORTING
    in_xstring = l_xstring
    IMPORTING
    out_string = l_string.
    SPLIT l_string  AT
    cl_abap_char_utilities=>newline INTO TABLE i_data.
      * Bind With table Element.
    LOOP AT i_data INTO l_string.
    SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE
    fields.
    READ TABLE fields INTO lv_field INDEX 1.
    fs_table-name = lv_field.
    READ TABLE fields INTO lv_field INDEX 2.
    fs_table-age = lv_field.
    APPEND fs_table TO t_table1.
    ENDLOOP.
    lo_nd_sflight = wd_context->get_child_node( 'DATA_TAB' ).
    lo_nd_sflight->bind_table( t_table1 ).
      ENDMETHOD.
    if correct give correct answer
    Thanks & Regards,
    Meenachi.R

  • "Import from Text File" & "Upload from Clipboard" icon not appearng in F110

    Hi Experts,
    While making the payment to the vendors through TN F110, in "PARAMETER" screen just next to 'STATUS' screen, there is a vendor field for selection in range and just ahead of this there is an icon for multiple vendor selection ( Bold arrow mark ). If I click on that multiple vender selection icon ( on bold arrow mark ), an another screen opens for multiple selection for vendors. In this screen 'Enter, Copy, Delete etc' icons are appearing at the bottom of the screen but "Import from Text File" & "Upload from Clipboard" icon are not appearing there.
    Can you please let me know how to bring that icons there?
    Points would be awarded.
    Rgds,
    Shailesh

    Hi Ravi,
    I have not yet created anything and have just entered the parameter. In the multiple screen for vendors there are 5 fields for individual and 5 for range selection. Even you can put more than five range selections or individual selections by clicking on the page button but there I am not finding these two icons.
    Can you please check at your end and let me know if you are getting or what to do to bring those two icons in F110.
    Rgds,
    Shailesh

  • Differentiate file uploaded from explorer view in SharePoint

    Hello,
    I am working on event receiver which on item adding updates few fields of document in library if those are not empty. The code is working fine in new file, drag and drop but in explorer view, I am not getting afterproperties values except two default field
    values (vti_parserversion and vti_filesize). But in updating event we are getting those values.
    Is there any way to differentiate file uploaded using explorer view in event receiver? So that I can work on updating in case of explorer view.
    Thanks.

    Hi,
    According to your post, my understanding is that you want to differentiate file uploaded from explorer view in SharePoint 2013.
    I made a test in my environment, both the two ways(“new document” or “Open with explorer” ) to upload document, the AfterProperties only contains two default field values(vti_parserversion and vti_filesize) in
    ItemAdding method in event receiver.
    There are two steps occur when uploading a file to document library, the file is uploaded in the first step, then the list item properties will be modified in the second step. 
    So, it is recommended to update the fields of document in ItemUpdating
    method in event receiver.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • File uploads from Flex

    How do I enable CF to allow file uploads from Flex?

    You will need to set the accept attribute of the cffile tag
    to allow the mime type application/octet-stream.

  • LSMW file upload from presentation server

    Hi,
    We are using LSMW to create new Document info records and will need to upload/ attach multiple files to the DIR.
    everything is working except in the IDOC processing stage, it errors out -
    "Error while checking in and storing:
    otlta134a\pcm\test1.txt"
    Its is unable to upload file from network drive, it works successfully when the same file is uploaded from application server.
    I have worked in other LSMW projects and have successfully loaded files from network drive.
    Please let me know what configuration setup is required, is it the content server or the gateway server?
    Thanks for all your help.

    Sheetal,
    I think this is the problem due to the authorization....
    try to open the file from AL11........... if u r still getting the problem better to contact the basis guys...
    If it is the problem with the authorization... once u get this error open another session with SU53 tcode.. take the authorization object and give it to basis guys to allow the permissions to u...

  • Error while passing file from webdynpro screen to DMS server to gene DMS no

    hello gurus,
                    i have one requirement in webdynpro abap.i need somme stuff to achive this.let me explain my requirement first.
    i have one view as main having file upload UI element and one action button as CREATE. now i perform browse and selected one file . now i am going to  perform action on that create button it is should generate one DMS document number against the selected file and strore this file in DMS storage location.for this i have used  'BAPI_DOCUMENT_CREATE2' bapi inside Action  of CREATE BUTTON. but it is showing error like    'Error while checking in and storing: D:\file1.doc'
                                            TYPE                                             E
                                            ID                                             26
                                            NUMBER                                             253
                                            MESSAGE                                             Error while checking in and storing: D:\file1.doc
    but when i am executing the BAPI  'BAPI_DOCUMENT_CREATE2'  directly while passing the same data to bapi it is generating the document number perfectly.
    i am new for this webdynpro could you please suggest me how can i overcome this problem.
    regards.
    babu.

    Hi,
    This is not error with respect to WD. you can check same problem in thread Error while checking in and storing: C:Userscbt.abapDesktopLOP.XLS
    I guess this will solve your problem.
    Thanks,
    Chandra

  • Problem facing with file upload in webdynpro

    hi
    this is sathya, i very thank ful  to your answers, coming to my problem
    i have written the code for file upload action method, in this below code there is no syntax problem.
    but there is a run time error , i.e convt_no_number
    kindly rectify that.
      data:  lt_final type table of zalvtab,
             ls_final type zalvtab,
             "t_table1 TYPE STANDARD TABLE OF str_itab,
             "fs_table TYPE str_itab,
             i_data TYPE STANDARD TABLE OF string,
             lo_nd_zalvtab TYPE REF TO if_wd_context_node,
             lo_el_zalvtab TYPE REF TO if_wd_context_element,
             l_string TYPE string,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
      DATA : t_table TYPE if_main=>elements_sel_node,
             data_table TYPE if_main=>elements_sel_node.
    " get single attribute
        wd_context->get_attribute(
           EXPORTING
           name =  `upload`
           IMPORTING
             value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
        SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    " Bind With table Element.
       LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        ls_final-ebeln = lv_field.
         READ TABLE fields INTO lv_field INDEX 2.
        ls_final-ekorg = lv_field.
         READ TABLE fields INTO lv_field INDEX 3.
         ls_final-bukrs = lv_field.
         READ TABLE fields INTO lv_field INDEX 4.
         ls_final-ebelp = lv_field.
          READ TABLE fields INTO lv_field INDEX 5.
         ls_final-menge = lv_field.
         READ TABLE fields INTO lv_field INDEX 6.
         ls_final-netpr = lv_field.
         READ TABLE fields INTO lv_field INDEX 7.
         ls_final-aedat = lv_field.
         READ TABLE fields INTO lv_field INDEX 8.
         ls_final-waers = lv_field.
         READ TABLE fields INTO lv_field INDEX 9.
         ls_final-description = lv_field.
          APPEND ls_final  TO lt_final.
      ENDLOOP.
      lo_nd_zalvtab = wd_context->get_child_node( 'sel_node' ).
    lo_nd_zalvtab->bind_table( lt_final ).

    Hi Sathya,
             I guess you are trying to upload data from excel file(XLS format).
             If it is correct then you cannot do this in webdynpro, first you save the excel file as tab delimited.
             Open your excel file->save as->other formats->give file type as TEXT(Tab delemited).
             Now use this file to upload. It should work perfectly.

  • File upload in webdynpro java

    Hi, I have a reqirement where I have to upload the file ino server, and later user can down load the same from server.
    i have seen file upload and down load  example in SDN /docs/DOC-8061#15
    but here they are just displaying the name and other details of the file that is trying upload but they are not really uploading the file in to the server. can any one guide me how to upload the file and where does the uploaded file resides in the server once it is succeefully uploded.
    Regards,
    Venki.

    Hi Venki,
    The following is the Procedure to DownLoad File from the Server Path.
    1.) Take One Context Attribute named as "Texts" with Cardinality 0..n & Selection 0..1 & singleton = true .
    2.) Take Two Context Attributes named " FileName " & " urlValue " of type String Under above Node "Texts".
    3.) Bind Table UI Element & bind it's dataSource Property to the taken Context Node. Here it is "Texts".
    4.) Insert One Column to The Table UI Element.
    5.) Insert TableCellEditor( Take LinkToURL UI Element ).
    6.) Bind " Texts.urlValue " to the references Property of the LinkToURL UI Element.
    7.) Bind " Texts.FileName " to the text Property of the LinkToURL UI Element.
    8.) All The UpLoaded Files in the Folder "FolderXYZ" are appeared as rows in the Table.
    9.) Write the following code In the wdDoInit() Method of DownLoad View/After Upload Operation Performed.
         int count=0;
         WDWebResourceType obj=null;
         File folder=null;
         IWDMessageManager objMessageManager=wdComponentAPI.getMessageManager();
         folder=new File("FolderXYZ");  // The Folder Name which we gave in the Upload Code.
         File arr[]=folder.listFiles();
        if(arr==null)
              objMessageManager.reportWarning("No files exist in server.. Please Upload ");
              return;
         String str[]=new String(arr.length);
    Put Array brackets as it is a Array.
         String names[]=new String(arr.length);
    Put Array brackets as it is a Array.
         int c=0;
         for(int k=0;k<arr.length;k++)
           if(!(arr[k].isDirectory()))
               c++;
         int j=0;
         for(int i=0;i<arr.length;i++)
           try {
              if(!arr<i>.isDirectory())
                   FileInputStream fis = new FileInputStream(arr<i>);
                  FileChannel fc = fis.getChannel();
                   byte[] data = new byte((int)(fc.size()));
    Put Array  brackets as it is a Array.
                   ByteBuffer bb = ByteBuffer.wrap(data);
                   fc.read(bb);
                   IWDCachedWebResource objCachedWebResource = null;
                   if (data != null)
                     String sr[]=arr<i>.getName().split("
                     obj=new WDWebResourceType(sr[1],"html/"+sr[1],true);
                     objCachedWebResource = WDWebResource.getWebResource(data,obj);
                     objCachedWebResource.setResourceName(arr<i>.getName());
                   str[j]= objCachedWebResource.getAbsoluteURL();
                   names[j]=arr<i>.getName(); j++;
                   count++;
            }catch(Exception e)
                   objMessageManager.reportException("Unable to  get files from server "+e,false);
                   return;
         ArrayList al=new ArrayList();
         for(int k=0;k<count;k++)
              IPrivateHeaderDisplayView.ITextsElement test=wdContext.createTextsElement();
              test.setFileName(names[k]);
              test.setUrlValue(str[k]);
              al.add(test);
         wdContext.nodeTexts().bind(al);
         wdContext.currentContextElement().setVisibleCount(count);  
    With Regards,
    Roop Kumar.
    Edited by: Roop kumar Annavarapu on Sep 5, 2008 6:14 PM
    Edited by: Roop kumar Annavarapu on Sep 5, 2008 6:16 PM

  • Jakarta Commons -- File Upload does not work with Application Server

    Hi ALl,
    I tried Jakarta Commons file upload. In the netbeans, I copied the common jar files "commons-io-1.2.jar" and "commons-fileupload-1.1.1.jar" in the
    netbeans-5.5\enterprise3\apache-tomcat-5.5.17\common\lib and set the class paths. It is working correctly when I compile and run from the netbeans. However, when I deployed in Sun Application Server PE 9.0, I am receiving the following errors. In Sun application I copied the above jars files to "C:\Sun\AppServer\jdk\jre\lib\ext"..
    I have read in several postings that it does not work this way but could find any solution. Any idea will be greatly appreciated.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:930)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:863)
         org.apache.jsp.fileUpload_jsp._jspService(fileUpload_jsp.java:109)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
         org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)
         org.apache.jsp.fileUpload_jsp._jspService(fileUpload_jsp.java:76)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    note The full stack trace of the root cause is available in the Sun Java System Application Server Platform Edition 9.0 logs.
    Sun Java System Application Server Platform Edition 9.0
    Thank you,
    --Sam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi All,
    I solved this few minutes after I posted this question. Thought I should share with everybody, just in case some one else need it.
    I copied these three files in the folder C:\Sun\AppServer\jdk\jre\lib\ext
    1. servelet-api.jar
    2. commons-io-1.2.jar
    3. commons-fileupload-1.1.1.jar
    No need to set any class path.
    Thanks

  • Read file system from webdynpro ABAP

    Hi All,
    I wanted to check how the files in the client file system be read from a webdynpro ABAP.
    I cannot use cl_guifrontend_services method directory_get_list as it gives dump sayin there is no proper GUI running.
    -Abhishek

    Hi Abhishek,
    With file upload UI element you get, windows like OPEN file options. Below are the links of how to upload & Process a TAB delimeted file using the File Upload & reference from Thomas jung in reply to a similar query.
    [file upload]
    [Upload File in Mime Repository.]
    [Save file in directory after upload with fileupload-element ?]
    Greetings
    Prashant

  • Flat File Upload from Network

    Hi gurus,
    i understood that there is a posibility to upload data from a flat file directly from the network. I know how to upload it from the PC, but how do I put the folder on the network?
    Thanx,
    Ramona

    Hi Ramona,
    First of all make sure, that every user has sufficiant auothraization for durectory required on application server,
    Now  you (or the users) are able to access it in windows after  mapping  to a drive represented by a caharcter ( e.g. ''R").
    This is done in Windows Explorer "EXTRAS". It will appear as a new folder in explorer and can be handled like a "normal" one.
    If you have any doubts contact your basis guys, they are surely familiar with this process.
    Hope it helps
    Joe

Maybe you are looking for