Problem with OLE - Excel file saving to the desktop error occuring

Hello,
I am saving my excel sheet workbook created by OLE on to my local machine.
it is downloading properly but the issue is it is generating one temp file simultaneously,
Example : if my file name is Test it is generating test and '~$test" file.
i am not able to close the file ...it is saying that "excel sheet is editing by other program"
Help me out ...

hope you are following steps to close the file and excel...
below code is just for reference...
1. Save the file
CALL METHOD OF h_work_book 'SaveAs' EXPORTING #1 = i_filename .
2. Close the excel window
GET PROPERTY OF h_excel_application 'ActiveWindow'  = h_activewindow .
CALL METHOD OF h_activewindow 'Close' .
3. Free all the OLE object you have
FREE OBJECT : h_excel_application ,
                  h_activewindow      ,
                  h_work_books        ,
                  h_work_book         ,
                  h_active_cell       .
4. Call FM FLUSH in the end
CALL FUNCTION 'FLUSH'.

Similar Messages

  • Problem with an excel file

    Dear All,
    I have a problem with an EXCEL file, i'm in a domain with windows server 2003 and all of the computer have windows 7, a user had open 3 weeks ago a fil excel after she gone on holiday so the file remain open (i don't know how) by she.
    I've try with all unlocker program to make the file deletable, but not work... it is very strange because if i try to open it with the account of the user that open the file appears always the same error (open read only)...
    Could you help me?
    thanks

    Hi,
    You may end the Excel process first, the “PsTools” have a pskill command that you can use to end a process remotely.
    Here’s a simple command:
    pskill \\computer –u username -p password  excel.exe
    For more information, please see the KB below:
    http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
    Best Regards

  • Problems with OLE DB Apshell requested by the login during installation.

    Hi gurus, I installed SAP BPC 7.5 for Microsoft i tried to following the steps like the manual say, when i was installing showed the next message:
    OLE DB error: OLE DB or  ODBC SAP BusinessObjets Planning and Consolidation "ApShell" requested by the login. The login failed; 4200.
    Error in the high-level relational engine. A connection could no be made to the data source with the DataSourceID of 'AppDef', Name of 'AppDef'.
    Errors in the OLAP storage engine: An error ocurred while the dimension, with the ID of 'ApShell', Name of 'C_ACCT' was begin processed.
    Server: The current operation was cancelled because another oparation in the transaction failed.
    well, this is the second time i installed SAP BPC 7.5 with the same error.
    For other side, when I trying to process one dimension show me the next message:
    - Errors in the metadata manager. The process type specified for the C_ACCT dimension is not valid since it is not processed.
    I think that the problems is the OLAP, something about security in SQL SERVER.
    I putting the list of component in my PC.
    1.I am using VM VsPhere
    2. Windows Server 2008 R2 Enterprise 64 bits
    3. SQL Server 2008 R2
    4. SAP BPC 7.5 for microsoft
    if someone can help me ?
    thanks in advance.
    Edited by: Alan Valenzuela on Aug 17, 2011 12:30 PM

    I believe, I have the answer, I followed this steps.
    I had the same issue. This sorted it for me:
    1. Open up SQL Management Studio
    2. Go to Security > Logins > NT AUTHORITY\LOCAL SERVICE
    3. Right click > Properties
    4. In the User Mapping section tick ApShell
    5. In the bottom section of the screen, tick db_datareader
    It's works.
    I have to say thanks to David Gilbertson
    I saw his answered in this link BPC 7.5. MS   cannot open databse "apShell"
    Edited by: Alan Valenzuela on Aug 18, 2011 10:14 AM

  • Why did Firefox intervened to move data while working with an Excel file; cannot locate the data.

    Downloaded Firefox 2wks ago. Just now working with a large Excel spreadsheet when something happened losing all 6 sheets of data. My file location now shows sheet data as Firefox Document. Now I can't retrieve this file of data; it was financial data! What happened for Firefox to intervene?

    No, Sir. I was strictly working within a newly created Excel file. Actually, Internet Explorer is current browser.
    Thank you for interest and any suggestion.
    Re-thinking thru this, it is probable I downloaded the base data thru FIREFOX. I was working with the project on an Excel spread sheet when I lost the data. The sheets still exist but the data is missing. Very strange.

  • Facing problem with posting Excel file for download - Content in browser

    I am trying to post an Excel file to download from a servlet to a JSP. The content is written properly but to the IE browser and not in an Excel. I even tried giving the ContentType as Word/CSV etc. But nothing works, the content gets displayed only in the browser.
    PLEASE HELP.
    Code snippet in calling JSP:
    DownloadServlet downServlet = new DownloadServlet();
    downServlet.download(response);
    Code in Servlet:
    public class DownloadServlet extends HttpServlet{
    public void download(HttpServletResponse response) throws IOException {
              /*PrintWriter out = response.getWriter( );
              response.setContentType("text/html");
              out.println("<H1>Hello from a Servlet</h2>"); */
         /*HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("Sheet1");*/
    String strData = "This is a Test for Download";
    byte[] b = strData.getBytes();
    //response.reset();
    response.setHeader("Content-disposition", "attachment; filename=" + "Download.xls");
    response.setContentType( "application/msword" );
    //response.addHeader( "Content-Description", "Download Excel file" );
    ServletOutputStream out = response.getOutputStream();
    out.write(b);
    //out.flush();
    out.close();          
    }

    Hi Naresh,
    My thoughts on a possible solution, convert the last character value to a HEX value and check if it falls within the ASCII/Unicode CP range, Obviously this becomes easier if you are just looking at a single language character set.
    The below FM and code helps you check if the character falls within the ASCII char set.
    DATA: l_in_char TYPE string,
          l_out     TYPE xstring.
    CALL FUNCTION 'NLS_STRING_CONVERT_FROM_SYS'
      EXPORTING
        lang_used                   = sy-langu
        SOURCE                      = l_in_char
      TO_FE                       = 'MS '
    IMPORTING
       RESULT                      = l_out
      SUBSTED                     =
    EXCEPTIONS
       illegal_syst_codepage       = 1
       no_fe_codepage_found        = 2
       could_not_convert           = 3
       OTHERS                      = 4.
    IF l_out LT '0' OR l_out GT '7F'.
      WRITE: 'error'.
    ENDIF.
    Links: http://www.asciitable.com/
              http://www.utf8-chartable.de/unicode-utf8-table.pl
    Regards,
    Chen
    Edited by: Chen K V on Apr 21, 2011 11:25 AM

  • TS3694 i have problem with my iphone 3g. after restoring, theres an error occured in 1015,somebody help me what to do?

    hi
    i have problem with my iphone 3g, after the recovery in itnes, theres an erroroccuredin 1015, what will i do next to resolve this problem?

    Google "Error 1015". You will find your solution.

  • Problems with PSE 10 when saving for the web.

    I'm having problems saving for web with PSE 10. I edit in RAW, edit in PSE 10, save as Jpeg, resize and save for the web.  Results are muddled and not sharp (looks cartoonish). Also, there is no metadata when you look at the image properties.  I uninstalled the program and installed again. No change.

    Are you resizing the photo before save for web?
    What settings are you using in the save for web dialog for the jpeg quality?
    If you compress the jpeg too much (low quality settings below 60), that can make your photos look bad.
    And save for the web in pse 10 automatically strips any metadata in order to keep the file sizes smaller.
    Also, the save for web in pse 10 has a bad habit of not remembering your last used settings, so it's good to verify that your actually set to jpeg instead of the default GIF setting.
    Message was edited by: R_Kelly

  • Grid line problem with linked Excel files

    I am trying to import and Excel spreadsheet to InDesign, but even when I clear grid in Excel it is still imported with grid lines.  I can't figure out how to clear them off while still having the spreadsheet correctly linked. This seems like an issue with a simple solution (I hope), I just don't normally need to use Excel for anything :/
    Any ideas? thanks
    Damon

    Damon664 wrote:
    This doesn't make any sense.
    Is this grid blue? Does it disappear when you switch to Preview Mode, and doesn't it show in an exported PDF?

  • Document file saving confusion using desktop "alias" folder

    I'm having trouble finding files in Snow Leopard. My question is , where are "saved" document files supposed to go?
    I like using a desktop alias folder, but over time I've played around with Time Machine, adding and deleted folders in the Dock, and created three or four different alias folders and basically I've screwed the pooch; there are now non-duplicate folders named "User Name" and "User Name 2"  (plus the  empty "Documents" sub-folder I've heard is a place holder for older software files ?) on the HD and I don't what is where the new files are being saved.
    In any case, I may have two, three or even four sets of partial documents, so I need to do some work moving files around, trashing some and condsolidating the rest into the master Documents file ... but before I go through all that I need to make sure I understand where the OS wants saved files to go.
    Is this path correct ? MS Word > Save > Documents Alias Folder > HD > Users > User Name > Documents.
    If that's correct, then I can go to the various Word 2011  forums and find out how to make sure files are being saved using that path.
    Thanks,
    Brian

    Stuffit's default is to decompress files saved to the desktop.
    Pages documents are actually zipped folders.
    Look in the Stuffit preferences and see if you can turn it off. Or get out of the habit of saving to the desktop, there are better places to organise your work
    I disagree that Stuffit is useless, in fact it really is the swiss army knife of decompression and pays to have it around. Amongst other archive utilities.
    Peter

  • Can't open Excel files saved to desktop, get popup "There was a problem sending command to the program".

    Whenever I save an MS Excel file to my desktop, it creates an icon on the screen. But when I try to open it, I get a popup that says "There was a problem sending the command to the program."
    This happens with all Excel files - but MS Word and other files work fine.
    Thanks for your help.

    Yes, I saw that earlier but it seems to be a temporary fix. I had the same issue return 2 weeks ago, then again yesterday. Each time, I've tried this solution which works but only to see it return at some time in the near future.
    Coincidently, I have a similar issue occur on my iPhone 4S w/ iOS 6. There, my keyboard shortcuts won't work in forms unless I tick off Data and Documents iCloud setting, power down the phone, then turn it back on. But like this, it only seems to work for a temporary time and the problem resurfaces in a few days.

  • I am having trouble with an excel file wanting to save when no changes were made & opening as read only for the 2nd person - but allowing them to save the file.

    1) I am having trouble with an excel file wanting to save when no changes were made.  As soon as you open the file and exit.  It prompts for a save.
    All excel versions are 15.0.4701.1002.
    Using a table.
    the functions CELL, OFFSET, TODAY, INDIRECT, NOW, INFO and RAND are not being used.
    2) Same file.   2nd person is being told they are opening the file as read only - but when they are quitting excel prompts them to save the file. 
    Everything was working fine.  I started having problems with Excel, IT wiped my version out and re-installed office. 
    File is on networked server HP - Windows Server 2012 Essentials.  
    We are all on Windows 8.1 Pro.
    I really hope someone can help - the excel expert had no answer - and passed me along to here.

    I copied the whole file and started deleting worksheets one at a time and testing it by closing it and re-opening it then closing it again – to see if it wanted to save. 
    Once all the pivot tables were deleted – the problem went away. 
    I found that some of the pivot tables had automatic refresh upon open, so this caused the excel to think data had changed. 
    It is fixed now.  By clicking on one cell of the pivot table, analyze, options, data and uncheck the 3<sup>rd</sup> square down to not automatically refresh.  NOT A NETWORK ISSUE.

  • Hi! I´m having problems with showing video files in Qlab on my Macbook Air. A sound/video technician told me to "blow out" my Mac. Was told to use  cmd+ r  when restarting. Is this the right way?

    Hi! I´m having problems with showing video files in Qlab on my Macbook Air. It started suddenly. Consulted a sound/video technician who told me to "blow out" my Mac. Was told to use cmd+r  when restarting. Is this the right way to clean up my Mac? And is it likely that some kind of bug is causing problems for Qlab to show video files? I´ve already tried with a bunch of different video files and sometimes Qlab plays them and sometimes not. I need the Qlab playlist for a theatre show and only have a week until showtime so starting to really worry. Is there anyone out there who can help?

    Your Mac runs maintenance in the background for you.
    Command + R gives you access to restore, repair, or reformat the drive using OS X Recovery
    No idea why that was suggested.
    You may have a third party video player installed that's causing an incompatibility issue.
    Check these folders:
    /Library/Internet Plug-Ins/
    /Library/Input Methods/
    /Library/InputManagers/
    /Library/ScriptingAdditions
    ~/Library/Internet Plug-Ins/
    ~/Library/Input Methods/
    ~/Library/InputManagers/
    ~/Library/ScriptingAdditions
    The first four locations listed are in the root-level Library on your hard disk, not the user-level Library in your Home folder.The tilde (~) represents your Home folder.
    To access the Home folder in OS X Lion or Mountain Lion, open the Finder, hold the Option key, and chooseGo > Library.

  • Help with "The iTunes Library file cannot be saved. An unknown error occurred (-54)"

    Hi,
    Has anyone else had this problem?  And how do I correct it?  "The iTunes Library file cannot be saved. An unknown error occurred (-54)"

    adamwineguy wrote:
    I was having this issue as well, after doing two things: updating iTunes yesterday, and installing and running ClamXav, a Mac antivirus tool.
    I have now fixed the issue, first I made sure that I had the proper permissions for iTunes and it's library folders. Then I completely removed ClamXav and all its related files and restarted iTunes.  Now I no longer get this error when adding new media to iTunes or updating apps, and the library file saves fine.  For some reason I think it was related to the antivirus software.
    I think it was a coincidence as ClamXav only modifies permissions on the files it installs and none of those are anywhere near your iTunes folders, but I'm glad you got it working.

  • HT1338 I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    It should unzip if you double-cick.
    What are you seeing happen when you do that?
    Select a .zip file in the Finder and Get Info (cmd-i). What is set for it to Open With. It should be Archive Utility.

  • TS1424 I have all my previous music files in wma formats from PC Windows xp computer. But now I had decided to purchase an iMac computer, and there is a lot of information I would like to bring to the Mac, but I'm having problems with my music file, and o

    I have all my previous music files in wma formats from my previous PC Windows xp computer. And only two weeks ago I decided to purchase an iMac computer OS X Maverick, and there are a lot of files and information I would like to bring to the Mac, but I'm having problems playing my music file, suited to the PC but not with iMac as yet. So, I hope you can help on this...
    Kind Regards
    Robert Klaassen

    WMA files are 'window media audio' files, which is a Microsoft format. If you want to add them to your iTunes library on your Mac then you will need to convert them into a compatible format first. If you still have your windows machine then iTunes for Windows can convert them from WMA to MP3 format : https://discussions.apple.com/message/24158701#24158701
    Or try a search for, for example, 'convert wma to mp3' to find programs to convert them.

Maybe you are looking for

  • It just does not work

    When I clicked on itunes it didn't open. When I rebooted my computer it said it couldn't close itunes but as far as I could make out it wasn't even open. I reinstalled it to repair whatever was wrong and this time it said it needed to close because i

  • Concatenate 4 Characteristics in a Query

    Hello, Can someone tell me how to concatenate 4 characteritics into 1 cell in a report without using Visual Basic? We want combine these four characteristics into 1 field, so we have something like a very long tekststring in a query. Regards, Jos

  • Batch resize artboard on 400+ files via Actions or Script needed

    I have over 400 AI files to process and I need to change the artboard size to the following specifications exactly on all files: X: 108 px Y: -108 px W: 216 px H: 216 px Does anyone have a script for this? I did some digging and came up empty. Any he

  • Inheritance in Kodo JDO 3.1.0

    Hi I am implementing inheritance in 2 classes and buys battling with it. I resorted to using the examples from the Kodo documentation and it is still not working. I am following the example in the documentation by the letter and no success. The subcl

  • Split view

    I am working with a large table and as I descend i loose sight of the header row. How can I keep it in view?