Changing the name of a uploaded excel file

Hi everyone,
I am being able to manage to change the name of a excel file when I am working on a scenario with a single file like this:
http://imageshack.us/photo/my-images/204/67859086.jpg/
Here goes the BUT, but when I am trying to upload several files at the same time, I am not being able to rename the files.
http://imageshack.us/photo/my-images/694/16392664.jpg/
When I do have several file the package works like this:
It list all the excel files and stores them into a *.LST file, after that it stores the names on a table. After that it uses a wildcard excel file to put the info to be uploaded, the on the scenario it transforms the data and uploads it into the target tables, then I supposedly change the name but it does not work.
Then It moves the file to another folder, and erase the name from the temp table….
I do really appreciate your help and guidance.
Please do not hesitate to contact me if any further information is required.
Best regards.
Jaison

There is an interface as step 2. I had similar issue once when I wanted to delete Excel file that was just used via Windows ODBC driver in a step before. Solution there was to create two packages, one doing the job and a wait step at the end the other one just deletes the file. Now put the two into a master package and run it from there.
Probably the ODBC driver has the *.xls file still in some kind of stale/cached access.

Similar Messages

  • Final Cut Pro X - Project:  I changed the name in FINDER and lost files, I need to correct?

    Lost Files but only in name.  I changed name in Finder.  How do I correct?

    Use the relink function to point the application to the new files.

  • What is the function module which uploads excel file data into tcodes

    Hi,
    i want to upload data in cs01 tcode.
    but data is excel sheet while i am trying to use gui_upload it is not being possible for me to upload data.
    can any one tell me what is the function module?
    can any send me the steps how to uplaod data if it is in excelsheet?
    thanks & regards
    naveen
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 18, 2010 1:46 PM

    Hi,
       Try the below sample code u ll get an idea of uploading using 'TEXT_CONVERT_XLS_TO_SAP'.
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    Thanks & Regrads,
    Neela.

  • Uploading Excel File and Reading Data from that File

    <b>Hi
    Can anyone Please tell me how to upload an Excel File in to the Web Dynpro Application and After that i want to read the data from that uploaded excel file in the Web Dynpro Application to the Web Dynpro table.
    Plz help me to solve this.......
    Regards
    Chandran</b>

    Hi,
    Upload Excel file using File Upload UI
    1)Add jxl jar folder in the lib folder of ur project.
    2)Go to properties of ur project and add jar to ur project.
    3)Using the File upload ui ,browse and upload the file.
    4)Write the read file in to ur server location using fileoutput stream.
    5)then using code u can read the excelfile from the server location itself.
    Here is the code:
         IWDAttributeInfo attInfo =wdContext.getNodeInfo().getAttribute("upload");
    /** get the name of excel file and storing it in the server with the same name and extention****/
    binaryType=IWDModifiableBinaryTypeattInfo.getModifiableSimpleType();
    fileuploaded = binaryType.getFileName();
    byte b[] = wdContext.currentContextElement().getUpload();
    File filename =new File("
    <Server name>
    <folde name>
    " + fileuploaded);
    try {
    FileOutputStream out = new FileOutputStream(filename);
    out.write(b);
    out.close();
    } catch (FileNotFoundException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    /**Readind from the server**/
    int iRows = 0;
    try {     Workbook wb = null;
         Sheet sheet = null;
         wb = Workbook.getWorkbook(filename);
         sheet = wb.getSheet(0);
         int iColumns = sheet.getColumns();
          iRows = sheet.getRows();
         int i = 0;
        //get Cell contents by (COLUMN, ROW);
        for (int r = 0; r < iRows; r++) {
       for (int c = 0; c < iColumns; c++) {
         Cell cell = sheet.getCell(c, r);
         characterarray<i> = cell.getContents();
    //wdComponentAPI.getMessageManager().reportSuccess("Row"r characterarray<i>);
    i++;
    wb.close();
    Declare Globally
    //@@begin others
    String fileuploaded;
    IWDModifiableBinaryType binaryType;
    String characterarray[] = new String[1000];
    //@@end
    Also look at this blog too  /people/perumal.kanthan/blog/2005/03/21/reading-excel-data-from-java-using-hssf-api
    Thanks and Regards,
    Arun

  • How do I change the name property of a file in a document library?

    I am trying to come up with an Event Receiver that will change the name property of an file when it is uploaded. For instance when a file is uploaded into a document Library, currently the Title is being generated (which is fine)...I want to be able to
    change the "Name" property from whatever it is, to match exactly what is in the "Title" property. Are there any sample codes/blogs out there that I can take a look at? Has anyone  had any experience doing this? It seems like something
    that should be straight forward, to change the "Name" property to match what is in the "Tilte" property.

    Hi,     
    You can try the code below which use the SPFile.MoveTo() function to change the name of the file.
    EventFiringEnabled = false;
    SPFile f = properties.ListItem.File;
    string spfileExt = new FileInfo(f.Name).Extension;
    f.MoveTo(properties.ListItem.ParentList.RootFolder.Url +
    "/" + properties.ListItem["Title"]+ "_new" + spfileExt);
    f.Update();
    EventFiringEnabled = true;
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5cafb8e4-bb85-4147-9bda-4ab42a4d4817/sharepoint-2013-event-receiver-to-rename-files-not-working?forum=sharepointdevelopment
    A link about rename uploaded file using Event Receiver for your reference:
    http://paulgalvinsoldblog.wordpress.com/2008/01/25/quick-easy-rename-uploaded-file-using-sharepoint-object-model-via-an-event-receiver/
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to change the name of a pdf file in iBooks on ipad

    I have a number of appliance and tool manuals  as pdf files uploaded to my iPad. In order to identify them easier I would like to change the names of the files. I changed them in iTunes on my computer but they do not change on the iPad2 when I sync. Is there a  way to do this?

    Greg,
    I had been working on this a while and found what worked.  Save the pdf to your desktop with the file name as you want it.  Open up itunes on half of your monitor.  Drag the file to the library section of itunes (music, videos, books, movies etc...).  When you drag to the library section, it will put it the book section of itunes.  Sync and you will see the file in ibooks on your ipad.  Give it shot.
    Scott

  • Change the name for File Type....

    H CRM Experts,
    How can i change the name of that button? i want it to have the name "voir" instead of "browse"
    <input type="File"/>
    Thanks
    Srini

    This is a tricky one. Even if it is not related to SAP CRM WebClient in any way as you are using standard HTML INPUT tag. That is not THTMLB or CHTMLB tag library.
    The probolem is: For a file upload field behind the field there is a button that shows always the same text. In english version "Browse" in germany it is "Durchsuchen" you can not change it. It is hardcoded in the browser for that specific language.
    There is a nice screenshot on this page illustrating it: http://www.quirksmode.org/dom/inputfile.html
    As said before it is a pure HTML related issue. You will be able to finde your solution using your favourite search engine. I propose this link: http://forums.seochat.com/html-coding-11/change-text-button-in-input-file-205212.html
    cheers Carsten

  • If I change a file name, how can I get DW to just change the name on server?

    I've got a reasonable grasp of site management but I just changed a bunch of files to replace an uppecase letter with a lower case e.g. MyFile.jpg to myfile.jpg  and DW doesn't manage that on the server.
    I ended up canging my file names, syncing the folder, deleting the duplicates directly on the server and then uploadin the HTML page the images link to.  Seemed like a long way of doing things in relation to the way DW manages everything else?
    Regards
    Maritn

    Hello Beth
    Thanks for that but it was rather what I wondered if I could avoid.
    The problem arises because of trying to manage gallery images.  I needed to change the name of a .jpg file and wondered if I could update the server without updating everything else. All my pages work OK and I needed to change several image names.  I went through the images and changed them locally, and DW updates everything fine.  So I synchronise the pages and would have just liked to have updated the image filenames without having to wait for the upload of just the image files which were the same.
    Even as I'm typing that out I realise it would be a small miracle to expect DW to compensate for my own ceaseless laziness...
    Martin

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • How do I change the name of an empty album in my photo file?

    Could someone out there please tell me how to change the name on a photo file and or delete one?

    In the Photos app, go to the Albums list and tap the Edit button.  Pick an album, tap the red icon on the left and then tap the Delete button. 
    Don't think you can change the name of an album or a photo without relying on a computer.

  • How do you change the name of a folder/file on an expansion drive

    How do you change the name of a folder/file on an expansion drive or external hard drive?

    The same way you change it on the internal drive; click on the name and wait a second or two for the field to drop into editing mode, then just type the new name. Or Get Info on the file/folder and change the name there.
    Regards.

  • Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.
    Apple ID FAQs
    http://support.apple.com/kb/HE37

  • Changing the Name of Text Links to a File

    I happily discovered that iWeb will create download links to files such as text, spreadsheet, word processing, PDF, and the like, if you zip them. However, when I create a text link to a file, the linked text takes on the name of the file, such as YourDownload.zip, rather than keeping the description I entered when creating the link. So links to files don't work the same way that links to URLs or other web pages within a site do, in that the link path (the URL) is separate from the name or description of the link. Is there a way around this apart from using graphics objects for the links?
    Any advice would be most appreciated.

    Once the text link is created you can go back, select the text and change the name to anything you want. It doesn't have to the the name of the zipped file. An annoyance but easily overcome.
    OT

  • Change the name of an image file in Photos app

    Just wondering how you change the name of an image file in the new 2015 Photos app?

    The only way to change the filename of an image is to export the image with a new filename:  When exporting you can select the title a s a new filename.
    Then reimport the renamed file to Photos and delete the original version.

  • Change the name of a file.

    Hello, I don't how can I change the name of a file ?.
    Somebody can help me, please?
    For example : c:\out\prove1.csv to  c:\out\prove1_09112007_163001.csv
    Thanks

    Another way would be to use the FILE_COPY and
    FILE_DELETE of the class CL_GUI_FRONTEND_SERVICES to first copy the file and then delete the other one.
    REgards,
    Rich Heilman

Maybe you are looking for

  • How can I display the date and time from the playhead info as a subtitle ?

    Is there any way it is possible to display the video capture data and time during playback. I have seen some discussion on creating subtitles to do this, it would be nice if one could simply add a Title template with display fields for playhead infor

  • Problem with BAPI_OBJCL_CREATE

    Hello, I try to create material caracteristics with bapi BAPI_OBJCL_CREATE. I don't know why it doesn't work, it tells me that the class is not found. CALL FUNCTION 'BAPI_OBJCL_CREATE'           EXPORTING             objectkeynew            = w_objec

  • Stopping a while-loop in a sub-vi

    Hello, I want to stop a while loop that runs in a sub-vi. It does not work with a local variable, is there a possibility to implement this without using global variables? Many thanks !

  • CHARM -Work flow

    Hi Everyone, I am new to Solution manager. Please help me with some documents related to CHARM work flow. I need to know about how to create actions  and relate that to work flow. Can any one get me step by step procedure, that would be more helpful

  • VT Transaction package for Windows - run on a Mac

    I'm trying to load the above onto my Mac and am obviously having trouble as it's for Windows. I'm not even sure which icon I should be trying to open to actually run the program. The options I have on the CD are: 'Autorun.inf', 'Setup.exe', 'SETUP.LS