LSMW upload 2 files

In my LSMW I need to upload 2 files.
File 1 with information about an employee
File 2 contains information how to convert a legacy field into SAP valid data.
In "Source structures" the two structures are specified, and also the fields in "Source Fields"
In "Source relations" I can only see one structure relations..
When I import the data everything seems fine... 52 entries from file 1, and 682 entries from file 2.
In my "Fieldmapping and conversion rules" i have a statement like this:
read table FILE2 with key oldsls = FILE1-lgart.
My problem is that FILE2 is empty, even that I saw in my import screen that 682 entries was imported.

is der some problem or just u need clarification?
<b>When I import the data everything seems fine... 52 entries from file 1, and 682 entries from file 2.</b>
In my "Fieldmapping and conversion rules" i have a statement like this:
read table FILE2 with key oldsls = FILE1-lgart.
My <b>problem is that FILE2 is empty, even</b> that I saw in my import screen that 682 entries was imported.
in one statement, you are saying ki it seems fine then u r saying that ur file 2 is empty. HOW CAN U UPLOAD DATA FROM AN EMPTY FILE ?
and we don't don anything in field mappng until unless v don't use complex stuctures while uploading data. LSMW takes care of everything by itself.
hope this will help
bye tc
Ashwani

Similar Messages

  • Error in uploading file in lsmw

    while uploading file in lsmw I am getting an error as
    'File 'C:\cust_errors.txt'does not exist or is currently locked.'
    at the bottom of the screen.
    How to overcome this problem?

    Hi,
    Check if the file is being edited .
    save it and close it.
    Then try to upload from the step "Specify files".
    Regards,
    Hari Kiran

  • Error when uploading file : Return code = 6 in LSMW

    Hello All,
    Getting the bleow mentioned error in LSMW.
    Error when uploading file Return code = 6 )
    Is it related to access. please suggest.

    did you define the file in step 7 without any error and allocate in step 8 without any error before? 
    I mean in the same system where you execute the read step.
    Make sure you have the file not open when you execute the read step.

  • LSMW: "Error in Uploading File" error code 6

    Hi All,
    I have created a simple LSMW project for deletion of Purchase Requisition in Development server. It is working as per the requirement there. But when I tried to Export the project and import it into our Production Server, system gives "Error in Uploading file".
    Hence, I recreated the project in Production system. Here again when I reached the step "Read Data" the same error occured. I wanted system to read the Purchase requisition numbers from a text file which i have already mapped in the steps previous to " Read Data".
    Also, system says "Error Code 6"
    Can anyone please highlight possible causes of this error message?
    Regards,
    Vishal Data

    Hi,
    first you have to check TEXT file data - why because you are tested in Development server with test data , but that same test date not available in Production server na
    prepare PR numbers from Production server -convert into Txt. format
    while running LSMW - close all Excel file and Text file ,
    at the time of Import and Export - system will start Specify Files- item - that time you will give Production data Text file then Upload
    I think now you can't face any error
    Mahesh

  • LSMW upload for Vendor and Customer Open items

    Hi Experts,
    1. I wanted to use to use LSMW to upload through FB60 for Vendor Invoices through recording, but the problem is Amount in Document Currency is 'USD' and Amount in Local Currency is 'INR'. While recording it is not allowing to input values in Amount in Local Currency while my upload file has values in both Amount in document currency as well as Amount in Local currency. Any help with this regards?
    2. Do i need to open the all fiscal years which are there in upload file?
    3. Any better option to upload the Balances with LSMW?
    Any useful information will be Highly appreciated.
    Thanks in Advance

    Hi Rajkumar,
    To upload Open items of Vendor and Customers, in LSMW, you will have two files header and line items with  a link linking both the files.
    Now, Suppose if you have to enter an amount in USD, then in the header file, enter USD in the currency field and give Exchange rate also in the header file and give the exact exchange rate which should be the value of your Amount in Local Currency INR.
    In such cases, you do not enter directly the amount in local currency field.. It is a calculated figure..
    Yes, depending on the posting date, all those fiscal years need to e open for which you are posting the data.
    LSMW is a tried and tested method for uploading open items.. Simple Go Ahead...
    Regards,
    SAPFICO

  • Could not open LSMW conversion file for Material Master uplo

    Hi,
    When i am uploading Material Master data the error says Could not open the file proj_subproj_obj.lsmw.conv file.
    I could read the conversion data in LSMW but there is a problem with session creation. I have created a Job and assigned a variant to it.
    Please sugget me to resolve this.
    Thanks.

    The following files must be in the path described by
    the environment variable "LIBPATH":
    Check your env variables...
    LIBPATH path must contain quoted libraries,
    libicuuc30.a, libicudata30.a, libicui18n30.a
    regards
    Juan

  • Error when uploading file :( Return code = 6 )

    Hello All,
    Getting the bleow mentioned error in LSMW.
    Error when uploading file Return code = 6 )
    Is it related to access. please suggest.

    Hi,
    If the Sy-Subrc is 0 then Success,
             Sy-SUBRC is 4 then failure,
             Sy-SUBRC = 6 then the user might be not access to read the file.
    This is due to authorization issue.

  • Adobe Muse won't publish (Error uploading file)

    After making simple animations using Adobe Edge Animate it seems as though none of the assets will publish with my site after importing them into Muse.
    In Edge animate I saved for "web animation" and published. Then I went to muse and hit "place". I went to preview and everything works fine. When I go to publish there are always errors in uploading my assets with '.png' extensions.
    Any help is much appreciated. I have completely scrapped my website and created another, reinstalled Animate and have renamed all my files, I'm not sure whats wrong here.
    I got one animation working, and that can be seen here under the Photography section, but I have multiples that will be shown on my page at one time.
    http://chasebodydesign.businesscatalyst.com

    I get the error uploading file everytime I try publishing the animation.

  • Change upload file name with com.oreilly.servlet.MultipartRequest to handle the file upload

    1. when use com.oreilly.servlet.MultipartRequest to handle the file upload, can I change the upload file name .
    2. how com.oreilly.servlet.MultipartReques handle file upload? do it change to byte ?
    what  different?  if I use the following method?
       File uploadedFile = (File) mp.getFile("filename");
                   FileOutputStream fos = new FileOutputStream(filename);
                    byte[] uploadedFileBuf = new byte[(int) uploadedFile.length()];
                   fos.write(data);
                 fos.close();

    My questions are
    1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
    file direction.
    MultipartRequest multi =
            new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
    why some example still use FileOutputStream?
    outs = new FileOutputStream(UPLOADDIR+fileName); 
        filePart.writeTo(outs); 
       outs.flush(); 
      outs.close();
    2) can I rename the file name when I use oreilly package?

  • Request.getParameter() when uploading files

    Hi, I need to upload files and do other works .. such that, in my html ..
    <form name="composer" method="post" ENCTYPE="multipart/form-data">
    <input type=hidden name="a" value="a">
    <input type=File name=inputfile>
    <inpu type=button name=Upload onClick='upload file'>
    <inpu type=button name=otherStuff onClick='do other stuff'>
    </form>
    In the jsp for 'do other stuff', I have the following statement to get the value of a
    String a = request.getParameter("a");
    However, it returns 'null', if I erase the 'ENCTYPE' part from the html file, it works. How can I get it right?

    If your ENCTYPE is multi-part/form-data, then there is another technichque to read the form parameters.
    request.getParameter() won't work.
    first u need to read the requenct explicitely and divide the contents into parameters, files etc. and then read the parameter values.
    you can get a lot of stuff regarding this on web, like 'uploading files using jsp'.
    have fun!!

  • Remove link for uploaded files in application

    Hi all,
    I've been following the tutorial on how to upload and download files in application at http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm. I have now created my own table which stores the uploaded files and can download them successfully. I would now like to add the ability to delete these files within the application and was wondering what the best way of doing this was?
    I would like to add another column to the displayed report with a 'Remove file' link for each listed file, which when clicked would delete the file from the table. I've already tried using a similar method to the one used to upload the files (instead of uploading the file, the called procedure deletes it from the table using the specified ID), but this causes the application to display a blank page when the link is clicked, which I dont want (but does delete the file).
    I would appreciate any suggestions.
    Regards,
    Dave

    Dave,
    See the login page:
    http://htmldb.oracle.com/pls/otn/f?p=31517:101
    There are details on how to access the application builder, where you can see how the
    setup of that download, delete, upload application has been done.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Delete an uploaded file (in custom table) from a report

    Hi,
    I have a report of uploaded files (the files are saved in my own table, not in APEX_APPLICATION_FILES) - I'd like to add a delete link to each file in my report so that the user can delete a particular file.
    How do I go about doing this?
    Thanks.

    Melissa,
    It is now working. You missed couple of things:
    1. javascript in the header
    2. you were pointing to the page 1 and your process was on the page 2
    3. you passed the value to a non existing item on the page 3
    4. the request which would fire the delete process was triggered by a wrong request
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

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

    hei evryone!
    can anyone pls help me on how i can upload file from a client machine to another machine (or server). using jsp.Then later on, i can also retrieve the names of these files to place it as values for option tag in an html form.I have a seperate screen for uploading the file and the screen for displaying all the files that were uploaded on the server...
    any sample code/ ideas would be much appreciated.Thx!!!!

    hei evryone!
    can anyone pls help me on how i can upload file from a client machine to another machine (or server). using jsp.Then later on, i can also retrieve the names of these files to place it as values for option tag in an html form.I have a seperate screen for uploading the file and the screen for displaying all the files that were uploaded on the server...
    any sample code/ ideas would be much appreciated.Thx!!!!

  • How to upload file from client to server

    Can someone please help.
    User needs to browse file on his desktop and upload file using browse button. This file should then be uploaded to the server. I am using javascript in the front end and servlet in the back.
    Any help will be highly appreciated.
    Thanks,
    Indrasish

    Jakarta Commons FileUpload is the standard way of doing the file uploading these days. You can find source, binaries and documentation at the Jakarta Site http://jakarta.apache.org/ . The Commons has a number of subprojects, so start with the Commons libraries, then find FileUpload.
    Brian

  • How to upload file from client to server in servlets.

    actually in my application i have to upload file from client m/c to server.
    it is not possible through file i/p stream as fileStreams does not work on network. Please mail me if you have any solution to this.
    Thank's in advance............

    Haii roshan
    Pls go through this thread..
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=616589
    regards
    Shanu

  • 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.

Maybe you are looking for

  • Repaint in AWT Component

    Could anybody tell me, haw can i do so, that when one component is overlapped by another one, and after that the first component will be visible again, i do not need to repaint (a part of) the first component?

  • Coldfusion Oracle 10g Migration

    We are doing predeployment test for Coldfusion 7 migration to Oracle 10g using Linux OS. I request community to put together their experiences in this area. so every one can make use of it. Please put on any general errors or troubleshoot you might h

  • I cannot install the Photoshop CS4 Extended Trial

    I have Photoshop CS3 Extended on another computer and wanted to download the trial for this computer. It gives me the error saying. "A problem occurred while extracting some files. Check available space on your computer and the write privileges on th

  • CML client hangs after server reboot

    Scenario .. Shut down CML client on PC Reboot VIRL server on ESXI Restart Client.   Client will display the workbench and then hang with the hourglass mouse pointer. (greayed out and status 'not responding'  It looks like it is trying to open the las

  • Replication feature of oracle9i

    we are trying to create and manage replication environment using replication management APIs. we'll be having standard/enterprise edition of database at master site and personal edition at materialized view site. do we have to install replication fea