Problem while opening Excel through OLE

Hi Friends
I am facing a problem while opening an excel file through OLE. it is working fine in SAP ECC 5.0, but the problem is in ECC 6.0.
I am adjusting the cells for auto fit. I have written the code like below.
CALL METHOD OF e_appl 'CELLS' = e_cell.
  CALL METHOD OF e_cell 'EntireColumn' = ole_columns .
  CALL METHOD OF ole_columns 'AutoFit'.
  set property of e_appl 'VISIBLE' = 1.
if I take out the adjustment part it is working fine for this program, rest other programs even if I have this code, they working fine.
When I am executing the statement set property of e_appl 'VISIBLE' = 1. the return code is coming as 2.
Could anybody please help me to overcome this problem.
Thanks
Praveen

In ECC 6.0, if the worksheet is portedcted SAP unable to open that sheet, now we have taken out this option so it is working.

Similar Messages

  • Problem while opening excel files in office 365

    Hi, Facing issue in office 365. Suppose one excel file is already opened and if we tried to open another one it just is looks like opening file and if check after sometime it shows excel blank window to open new file.
    Please help

    Hi,
    Thanks for your post.
    Based on my experience, if you've ticked the option of "Ignore other applications that use Dynamic Data Exchange (DDE)“
    under FILE>Options>Advanced, you will probably have this kind of issue.
    Please try to turn off that option and see if it works.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Getting error while opening Excel document from SharePoint site

    Hello All,
    I am getting following error while opening Excel document from SharePoint site.
    This issue appears when we open Excel document from Windows>> Run using below mentioned command:
    Excel.exe "{File Name}"
    If once I go to Excel back stage and browse for the SharePoint location, then this problem disappears.
    I have a work around for this issue but main problem is that i do not have any work around when i need to open Exel document using Excel COM interop in C#.
    Thanks,
    Amit Bansal
    Amit Bansal http://www.oops4you.blogspot.com/

    Hi Amit Bansal,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues involve Excel application.
    According to the description, you got an error when you open the document form SharePoint site.
    Based on my understanding, this issue maybe relative to the SharePoint, I would like move it to
    SharePoint 2013 - General Discussions and Questions forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem while opening Bex query on the web

    Hello BW experts,
    I have a problem while opening Bex query from my SAP Favorites.See below.
    When i double click on the query, i get the following page, with the server name KBWS01QX.
    But, from RSRT Tcode, select the query > query display as HTML > Click on ABAP Web , click execute as shown below, it is going to the correct URL as in the 2nd screen shot below.
    My question is why is it going to the wrong URL when i open it from  SAP Favorites menu?
    I want it to open the same URL as it opened from RSRT(which is the right one)
    What is the Config needed to make it to work from SAP favorites.
    Any help would be appreciated.
    Thanks alot.
    SV

    Hello,
    Thank you all for your responses.
    See below some additional info.
    From RSRT, this time I clicked on JAVA WEB, and i get the below URL, which is the same URL i was getting when i executed the query from SAP favorites.
    http://kbws01qx.xxxxxxx.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZCONSUMPTION
    Also, i have executed the Function module : RSBB_URL_PREFIX_GET and i get the below values.
    It seems that it is trying to connect to Java portal something services may be, but i want it to open in ABAP web only.
    Please help.

  • Problem while uploading data through F-43

    Hello Experts ,
    I am facing a problem while data uploading through F-43.
    Suppose I have many vendors with having several debit and credit items for each.So in t code same screen will appear for same vendor several times where we have to enter debit / credit items.
    Please suggest how to solve this issue through LSMW/BDC program.
    Thanks in adv.
    A Miter.

    Hi..
    Use BDC Recording MEthod ...
    Develop BDC program, Before Recording the Transaction sit with Functional Consulatnt for REcord The f-43.
    After that  that  u can do ur coding  and built ur own logic.
    Prabu

  • Is there any way to insert a sharp into excel through OLE?

    Dear Expert,
    Is there any way to insert a sharp into excel through OLE ?If have , Would you please give a sample code?
    BR Edward

    Hi,
    Check this link..[OLE2, Excel, WinWord |http://translate.google.com/translate?hl=en&sl=ru&u=http://www.sapnet.ru/] you can find the code snippets.

  • Error while opening excel integration with sap

    Hi
    While view planning with excel integration in SAP, I am getting error. I am getting this error in CCA and COPA also.
    Can anybody help me how to resolve the issue. Please see the meessage
    Error while opening document
    Message no. SOFFICEINTEGRATION143
    Diagnosis
    An error occurred in the desktop application while opening a document.
    Procedure
    Check first whether you can insert a document from this desktop application as an embedded object in another application. The necessary menu item is usually 'Insert --> Object'. The application then lists all of the OLE document types. Choose the type corresponding to the desktop applciation. If the insertion fails, the error is in the desktop application itself.
    This error has various causes. Often, it is caused by activating certain add-ins. Sometimes, the desktop application is wrongly installed. The error should not recur once you have disabled any add-ins or reinstalled the desktop application.
    Procedure for System Administration
    If you cannot solve the problem as described above, enter a problem message. There are notes relating to how to generate the log file using the program SAPROFFICEINTEGRATIONTRACE.
    Regards
    Sekhar Datta

    Hi ,
    I think you are using older version,use microsoft excel 2007 version,then it will opens.
    Regrads,
    SVS
    Edited by: svskumar on Aug 19, 2010 12:18 PM

  • Problem when opening excel sheet in jsp

    Hi friends
    When i try to open excel sheet from my program I am getting two problems
    1. first row of excel sheet is empty
    2. while opening I am getting error message of "the file is not in a recognizable format"
    Please help me..It is an urgent work
    my code
    <%@page language="java" import="java.io.*,java.text.*,java.sql.*,java.util.*"%>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn = DriverManager.getConnection("jdbc:mysql://256.136.119.86/mydb","zzz","zzz");
    Statement st = conn.createStatement();
    StringBuffer sb = new StringBuffer();
    sb.append("SAP#" + "\t");
    sb.append("x-plant status" + "\t");
    sb.append("Total Amount" +"\t");
    sb.append(">90 days" + "\t");
    sb.append("\n");
    try
    String query="select * from temp_Xplant";
    ResultSet rs = st.executeQuery(query);
    while(rs.next()){
    sb.append(rs.getString("sapNo") + "\t");
    sb.append(rs.getString("status")+ "\t");
    sb.append(rs.getString("amt") + "\t");
    sb.append(rs.getString("days") + "\t");
    sb.append("\n");
    conn.close();
    st.close();
    catch (Exception e)
    out.println("error");
    conn.close();
    st.close();
    response.setContentType("application/vnd.ms-excel");
    // response.setHeader("Content-Disposition", "attachment; filename=\"test.xls\"");
    String testt = "tests.xls";
    response.setHeader("Content-Disposition", "attachment; filename="+testt);
    out.println(sb.toString());
    out.close();
    %>
    thanks in advance

    The problem here is, you have setted the content type as excel sheet and you are writing some String content into the output stream. when excel tries to read the String content it will surely throw some error. Lot of excel APIs are available in the market to generate excel sheets.
    you can find one in the below URL.
    http://www.teamdev.com/downloads/jexcel/docs/JExcel-PGuide.html

  • Problem while opening ai cc

    hi guys
    I'm facing a problem when opening the ai cc on my laptop and the problem is that the ai shuts down immediately while opening it
    for some informations : I use windows 8.1 , and my laptop requirements are good enough to open the ai cc
    and thx

    ifkfhf,
    You may try some of the following (you are past 1) and 2).
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • BDC problem in Open Excel

    Hi,
    We are facing the problem to run the BDC.
    Actually problem is that we are using the UBUNTU instead of Window XP / Server and Open Office instead of Microsoft Office..
    File extension of Open Excel is .ODS & Microsoft Excel extension is .XLS. Also our BDC is supporting the .XLS extension files.
    Is there any way to use the .ODS extension file in my BDC. Is it possible that if i change the code somewhere and use .ODS file, my BDC should run..
    How to upload my .ODS file in BDC?? or any other way to make my BDC successful??
    Thanks...
    Edited by: @ABAP@ on Oct 10, 2009 5:57 PM

    Hi,
    There are few things that I need you to check:
    1.Make sure your file is not open while executing the eport
    2.Declare internal table with all fields as Char type haning the length same as defined in the backend.
    3.You can either upload the XLs file using the direct FM TEXT_convert_xls_to_sap
    or save the xls file as the tabdeliminator file and use the Fm GUI_UPLOAD.
    4.FM GUI_DOWNLOAD is used to download any fiel data to the presentaion server.
    Hope now your problem will be solved.
    Pooja

  • Error while opening excel report

    Hi,
    While opening the excel report i am getting the below error.
    REP-51026: No output for job 8923
    Note: We have deployed the report in 10g Oracle Reports server present in a UNIX m/c.
    Please let me know what i have to do.
    Thanks & Regards,
    Sudhaharan.
    Message was edited by:
    jsudhaharan

    Refer Note:280376.1 on MetaLink. Hope this will help you resolve the issue.
    Thanks
    Shail

  • Power view error while opening excel fine in SharePoint 2010

    I am getting an error while opening an excel file:
    "The following features
    are not supported in the browser and might not display or might display only partially: 
    • Comments, Shapes, or other
    objects 
    Some features, such as external
    data queries, display cached data which can only be refreshed in the client version of Excel."
    Is this issue browser
    related or SharePoint related?

    Hiya,
    it depends what that file contains. There are a lot of new features for Excel, Excel services in the newer versions of SharePoint and SQL server. So it really depends on which of these features your using in your excel file.
    What version is your SharePoint and SQL server(database services) and SQL Reporting?
    There is a pretty specific article for that error message relating to PowerPivot.
    https://msdn.microsoft.com/en-us/library/ff487973.aspx
    And some additional information on Excel services
    http://blogs.office.com/2005/12/01/excel-services-part-12-unsupported-features/

  • OPM Error while opening excel files

    When I open the excel file of my rule, it gives the following error.
    Oracle Policy Modeling
    An error occurred while opening the document 'C:\Documents and Settings\HCHATURV\Desktop\Customer Service\OPA\Development\Rules\Raise.xls': Unable to set the Installed property of the AddIn class
    OK
    I uninstalled OPA from my machine and again installed it but no result.
    I would be thankful If somebody can help.

    What version of OPA/OPM is this? What operating system & processor type (32 or 64 bit)? What version of Excel?
    Depending on what was active when installing or uninstalling, Excel may not be looking at the correct location of the OPM add-in. The one time I've seen this was with XP and Office 2007 (both 32 bit) which was solved by the following:
    1) Open the excel document outside OPM
    2) Select "Excel Options" from the Office Menu (circle at top left). Select "Add-Ins", then find "Manage: Excel Add-Ins", and click "Go...".
    3) Tick Oracle Policy Modeling Excel 2007 (if it is already ticked, try un-ticking, pressing okay, and ticking it again)
    4) Press OK
    5) Try opening the workbook again in OPM.
    I think if you can convince Excel that the add-ins isn't active any more, then OPM will be able to convince Excel to use the correct location.

  • Error while opening Excel file with Add-ins "CtExcelLinksWeb.xll" for BOFC

    Hi,
    While opening an excel sheet with the Add-ins, "CtExcelLinksWeb.xll", the following error is being displayed,
    The file you ar trying to open , "CtExcelLinksWeb.xll", is in different format than specified by the file extension.
    Verify that the file is not corrupted and is from a trusted source before opening the file. Do you wnat to open the file now?
    If any setting is required for solving the error kindly help me on it.
    Thanks
    Prity

    Hi ,
    I think you are using older version,use microsoft excel 2007 version,then it will opens.
    Regrads,
    SVS
    Edited by: svskumar on Aug 19, 2010 12:18 PM

  • Problem while opening a file

    Hi ,
    Can anyone give a solution for me ?
    I have a problem while using files with PDF.
    writer = PdfWriter.getInstance(document,
    new FileOutputStrea("c:/ filename.pdf "));
    Exception occurs when specified file is already opened.
    How can i rectify it?
    Here what i want is ... if specified file is already opened then it is close phisically .How can i close a file by using java?
    In my example a pdf file is opened . how do i close that pdf file using java program.
    Please quickly give response to me .
    Thanks in advance.........

    Hi ,
    Can anyone give a solution for me ?
    I have a problem while using files with PDF.
    writer = PdfWriter.getInstance(document,
    new FileOutputStrea("c:/ filename.pdf "));
    Exception occurs when specified file is already opened.
    How can i rectify it?
    Here what i want is ... if specified file is already opened then it is close phisically .How can i close a file by using java?
    In my example a pdf file is opened . how do i close that pdf file using java program.
    Please quickly give response to me .
    Thanks in advance.........

Maybe you are looking for

  • How can I get the Rockwell font in elements 11?

    Is there a way to add the rockwell font to elements 11?

  • Login screen - sap b1

    Dear All, We want to display the customer Name & logo in login screen of sap b1. Is it possible ? Request your suggestions please. Regards, V.Rajesh

  • TFS 2010 to TFS 2013 Migration stuck at step 13

    Hi, We've been trying to migrate our TFS 2010 collections to TFS 2013, but we always get stuck at Step 13 of 793.  We tried 3x already.  For the first try we waited around 8 hours, and decided to just restart.  On the second try, we waited for more t

  • System Information Utility forces open at startup

    Hi everyone, Recently when I boot my Macbook Pro, the System Information utility app opens immediately without prompting. It does not open a window but the icon pops up in the dock. When I click the icon, it opens a system report window. And then if

  • HT201441 NEED HELP FOR ACTIVE PHONE

    HELLO AND GOOD DAY I AM SHIP CHANDLER AND SUPPLY CARGO VESSLES . I BUY ONE IPHONE 4 FROM ONE RUSSIAN CAPTAIN AND I'M NOT ACTIVE IT INSIDE THAT VESSLE AFTER THAT VESSLE SAIL I CHECK PHONE AND I TRY TO ACTIVE AND USE IT BUT I SEE THIS MESSAGE THIS PHON