Error when downloading a file to Excel

Hi all
When trying to download a file with function "WS_DOWNLOAD" to Excel I am getting the following error:
"Error no. 5 in SAPGUI with Graphics call or file transfer"
And then:
"E5: illegal data in download file 'C:\Shipment.xls (WK1 Conversion)'"
But this errors only occurs in some pcs.
Anybody knows what could be happening?
Thanks,
Iratxe

Hi,
Please check your
1. File type
2. and file name type.
p_fnam2 LIKE rlgrap-filename.
filetype = 'DAT'
  CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
            filename                = p_fnam2
            filetype                = 'DAT'
       TABLES
            data_tab                = i_download
       EXCEPTIONS
            file_open_error         = 1
            file_write_error        = 2
            invalid_filesize        = 3
            invalid_type            = 4
            no_batch                = 5
            unknown_error           = 6
            invalid_table_width     = 7
            gui_refuse_filetransfer = 8
            customer_error          = 9
            OTHERS                  = 10.
  IF sy-subrc = 0.
    MESSAGE i352.                          "File downloded successfully
  ENDIF.
Moreover GUI_DOWNLOAD is prefererred to WS_DOWNLOAD.
or use: call cl_gui_frontend_services
This link will give u some tips on downlaoding files.
http://www.sapdevelopment.co.uk/file/file_updown.htm
Best Regards,
Anjali

Similar Messages

  • Error when opening XLSX file with Excel 2003 SP3, file does open but in read only mode with temporary name

    I am using Excel 2003 SP3 and have the Office 2007 compatibility pack installed.  When I open Office 2007 formatted Excel files (XSLX) directly in Windows Explorer, I receive the following error if I do not have Excel already opened:
    "Windows cannot find '<path to file>'.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
    Even though I receive the error, the file does open; however, it opens in Read Only mode with a name such as "Xl0000024.xls".  The number seems to increment up each time it happens.
    Now here is the strange part.  If I have Excel already open and try to open the file in Windows Explorer, the file opens fine in Modify mode with no error and with the correct file name.
    I Googled the error I was getting and found KB211494.  It says I should uncheck the box in Options on the General tab that says "Ignore other applications", but this box is already unchecked in my case.  Any other ideas?  This is
    really frustrating as a small percentage of our company has upgraded to Office 2007 with the rest still on Office 2003.

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • #2032 Stream Error when downloading .air file for update

    Hi guys,
    I have made a very simple self update air application. When
    the .air file to download for updating is on a localhost server
    everything works fine, however when the .air file is on a remote
    server I got a #2032 stream error when trying to download the .air
    file. (I tried to download the file using IE or Firefox and I get a
    404 error ; btw I am absolutely sure of the .air file URL )
    Does this happen because the .air file has been generated
    with my trial version of Adobe Air ?
    Thanks for your help.
    Olivier

    Thank you for your answer Oliver.
    I'm absolutely sure of the URL. I set the permissions on the
    remote web server to browse the directory with my explorer, I can
    see the .air file but when I click on that file I get that 404
    error. (I hit the refresh button of my browser to be sure to have
    the correct files list). Btw something interesting to notice is
    that when I rename the .air file to .zip I can download the file.
    I have tried with another remote server and it works. There
    may be some misconfiguration somewhere with the first server I
    tried.

  • Using the latest version of Firefox for business when I access this site get corruped data error when downloading .dat files.It used to work

    When I acess this site I can not download .dat files get a corrupted data error

    <i>Moderator Comment<br>
    (Duplicate thread closed. Continue at [/questions/1000178]) -m) </i>

  • Getting ERROR when downloading alv output to Excel

    Hello All,
    I get a error message when I try to use the standard funtionality to download the alv output to excel.
    The current statement only supports character-type data objects.
    What happened?
    The current ABAP/4 program "SAPLKKBL " had to be terminated because
    one of the statements could not be executed.
    This is probably due to an error in the ABAP/4 program.
    Error analysis
    In statement
       "STRLEN( obj )..."
    the argument "obj" can only take a character-type data object.
    Source code extract
    038620   *   ansonsten entspricht sich min. Ausgabelänge und Ausprägungslänge
    038630       else.
    038640         if gs_fc-tech_form ne 99.
         >           gs_out-hlplen = strlen(  ).
    038660         endif.
    038670       endif.
    In this case, the operand "obj" has the non-character type "I".
    Please can anyone put some light on this. It is veru difficult to go through the whole std functionality to download.
    Thanks for all support guys!
    Sri.

    Hi srikanth,
    This error comes because the values present in any one of the displayed coloums containing special character like * present before or after the number....  i.e  instead of 4 ...**4.
    While displaying in the screen it is of no problem. since both *4 are converted into char format (internally) and gets displayed.
    But while you download the same throu the EXCEL functionality SAP will intenally convert the same into NUMERIC format. Since 4 is number.
    So in that case *4 will cause dump.
    *So find out the place in which the value appearing like this *4 and try to correct it.
    *Surely it is of Field LENGTH problem. Try to increase the length of the field 4.
    It Should WORK.!!!..  else post ur query here.
    REWARD POINTS IF USEFUL
    ~Lakshmiraj~

  • Getting error when downloading indesign files...(resource_not_found)

    Still getting error ({"message":{"resource_not_found":["https://EU.creative.adobe.com","https://AP.creative.adobe.com"]}}) when my team sends me an indesign file to download. Is there a work around for now?

    Have them zip the file to prevent the email system from messing with it.

  • Error when downloading folio file to ipad content viewer

    Hi All
    I have been working on an indesign folio file for a couple of weeks now and publishing to the content viewer on my ipad, which has been fine, today all day I have an error download message please try later.
    have restarted Ipad, uninstalled viewer and reinstalled but still no joy. Any help would be gratefully appreciated.

    http://status.adobedps.com/
    A few things are running at reduced capacity and i have raised it with Adobe that Content download in Content Viewer is having issues.
    Thanks

  • Error when downloading Itunes7 (file is not a valid win32 application)

    What the **** does this mean? I can install Itunes 7 - tried everything on troubleshooter but nothings working.
    Anyone got any ideas - apple smart guys I need you INTELLECT!!!
    many thanks
    Robbo

    Are you installing directly from the ISO? If so, you can try with a new ISO in case this is broken. Also make sure your machine is joined to the domain and that you are executing the setup in the context of a local administrator.
    Eventually, try to copy the ISO to local disk and run setup from there.
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • Adobe Reader error when downloading a Form (IMM5257E - required for CIC - Canadá)

    I received an error when downloading a file viwh the Adobe Reader version 11.0.07.
    A message like this appear:
    To view the full contents of this document, you need a later version of the PDF viewer.

    Pat Willener!
    GREAT THANKS! GREAT THANKS! GREAT THANKS!
    I was using Google Chrome, and did not suspect that this could be the
    problem.
    I used I.E. and the download worked. So that's it.
    Great thanks again.
    Vilson Drehmer
    Rua Balduíno Pedro Vier, 693
    CEP 95.880-000 - Estrela - RS
    Fone: (51) 8401.2253
    E-mail: [email protected] <[email protected]>
    CRA-RS 6364
    2014-05-28 5:26 GMT-03:00 Pat Willener <[email protected]>:
        Adobe Reader error when downloading a Form (IMM5257E - required for
    CIC - Canadá)  created by Pat Willener<https://forums.adobe.com/people/pwillener>in *Adobe
    Reader* - View the full discussion<https://forums.adobe.com/message/6414530#6414530>

  • Error While downloading the file A server Error has occurred, please try again later Downloading Yahoo mail Application Attachments  Trying to download My Photos and movie 3 items so i can delete them all

    I have icloud and a new iPhone5 ! They work good , took pictures and a few short movies, plugged in my phone to my iMac transfered Items to iPhoto then inported items to iMovie. when getting to know what i was doing i decided to delete pictures and movies i no longer wanted. when i looked for a few missing items i opend Finder and there some where buyt i had already trashed them and deleted the doubles. Still could not find missing pictures and movies 3 items and today after calling yahoo about a different complant with sending feed back for Yahoo mail Applications login . i opened up Attachments Not the Large Attachments just Attachments and there were the 3 items i had been hunting for to Trash and delete. the mail Attachments file does not have the Option to delet Files and photos and movies. When i tried to Download the 3 items a window shows up that says Error While Downloading the Files, A Server Error has occured, please Try Again later. nothing works how do i remove the Trapped photo and movie Blank Files and trash them?  Onece they get into my downloads i can do something with them as i understand.    That part of it kind of keeps me in Question also because why should i have to down load my own files of Attachments / Pictures and movies if they are comming from my iMac?    How much better is iLife11 then iPhoto08 and iMovie08 .  Thanks Greg

    Hello,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Error when downloading large SharePoint document using REST API

    Hello,
    The following code works fine for small files, but I got "SCRIPT14: Not enough storage is available to complete this operation." error when downloading files over 100M.
    Is it possible to write the data directly to a local storage (IndexedDB for example) instead of keeping it in memory?
            var getFileEndpoint = String.format(
                 "{0}/_api/SP.AppContextSite(@target)/web/getfilebyserverrelativeurl('{1}')/$value?@target='{2}'",
                 _SPAppWebUrl, _DocumentUrl, _SPHostUrl);
            var executor = new SP.RequestExecutor(_SPAppWebUrl);
            var info = {
                url: getFileEndpoint,
                method: "GET",
                //binaryStringResponseBody: true,
                success: function (data) {
                    //Save data to IndexedDB
                error: function (err) {
                    //Error handling
            executor.executeAsync(info);
    Since my page is located in a SharePoint Hosted App, I can't use XMLHttpRequest directly to access the document in the host site. Seems like the MS cross-domain library is the only choice to me.
    Thanks,
    Matt.
    Matt

    Hi,
    Per my understanding, you might want to download the content of files into database in SharePoint Hosted App.
    In SharePoint Hosted App, as we can only use JavaScript which is supposed to be executed in browser, the content retrieved will be stored in memory then to the local hard drive.
    As a workaround, I suggest you develop a Provider Hosted App and do the same job there instead. In Provider Hosted App, we can use C# to handle the file downloading which should
    be more appropriate in your scenario.
    About
    how to download file using SharePoint Client Object Model:
    http://www.lucacostante.com/item/15-download-and-upload-files-via-sharepoint-client-object-model.html
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Firefox crashes whenever i want to install any addon or download any file. Some times i am receiving error while downloading any file like "could not be saved, because you cannot change the contents of that folder"

    I am the user of latest firefox 3.6.6 browser. I am getting problems of frequent crashes whenever i tries to install any addon. The crashes also occures whenever i want to download any file.
    I am also receiving errors while downloading any file like:
    "C:\Users\****\AppData\Local\Temp\******.001.part could not be saved, because you cannot change the contents of that folder.
    Change the folder properties and try again, or try saving in a different location. I already changed it many many times but still the same problem."
    Adobe flash palyer is also giving problems of not responding. I am using updated version of it already. Java is also updated.
    I already uninstalled firefox compeletly and re installed it many many times but still the same problem. I also scanned my computer with avira and malware bytes' Anti malware and got no dection. Please ractify this problem ASAP lest my profession will suffer.
    == Crash ID(s) ==
    b7f518f2-8d86-41ca-8bab-aee632100709; 1d790e10-d8eb-4904-98c9-94bc62100708; f042d319-b9f8-42ed-a8cb-57c7d2100708

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

  • I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • When downloading a file, "open" option does not appears, only "save" does

    Before updating to 5.0, when downloading a file, I could select between "Open" and "save". Now I don't have the "Open" option. I need it because of my work and is a must have or it will take to much time to save and then opening them. In normal morning with "open" option took me like 30 minutes. Now it took me 1.5 hours and can't afford to loose that much time.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is that the server sends a wrong response header.
    The server may not comply to RFC 5987 and sends a wrong Content-Disposition:attachment; filename header.
    * https://developer.mozilla.org/en/Firefox_8_for_developers#Network

  • Having a constant error when downloading latest update for Illustrator CC, error message: Adobe Illustrator CC Latest Updates (December 2014) Installation failed. Error Code: U44M1P7

    Having a constant error when downloading latest update for Illustrator CC, error message:
    Adobe Illustrator CC Latest Updates (December 2014) Installation failed. Error Code: U44M1P7

    U44.. update error http://forums.adobe.com/thread/1289956 may help
    -more U44.. discussion http://forums.adobe.com/thread/1275963
    -http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html
    -http://helpx.adobe.com/creative-suite/kb/error-u44m1i210-installing-updates-ccm.html

Maybe you are looking for