Upload Excel is not working

Hi all, Excel upload program is not working in SAP CRM 7.2 Service Pack 10 with IE 11. Same is working fine in SP08. Below is the code.
The debugger is not coming into Servervent handler method . any notes suggested ? sorry for posting the big code lines.
<thtmlb:fileUpload id="fileUpDown" />
<thtmlb:button id = "UPLOAD"
                iconSrc = "ICON_XLS"
                tooltip = "Upload Excel file"
                text = "Upload"
                onClick =  "upload_file( );" />--%>
  <thtmlb:textArea id  = "Excel_Data"
      text   = " "
      width  = "0"
      height = "0"
      rows   = "0" />
<%-- Registering server event--%>
<bsp:htmlbEvent name = "nameUpload"
                  id = "idUpload"
                  onClick = "SERVEREVENT"
<%--                 serverEvent"--%>
                  p1 = "p1"
                  p2 = "p2"
                   p3 = "p3" />
<script language="javascript"  type="text/javascript">
function upload_file( ){
var iRow="1",
      jCol="1",
      ActiveRows="0",
      fileName="",
      sValue=" ";
fileName=document.getElementById("<%= controller->component_id %>_fileUpDown").value;
if ( fileName == "" ) {
alert("Upload." + "\n" + " " + "\n" + "Please choose an Excel file as source.");
return;
if ( fileName != "") {
<%--alert("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);--%>
var r=confirm("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);
if (r!=true)
return;
Excel = new ActiveXObject("Excel.Application");
Book = Excel.Workbooks.Open( fileName );
ActiveRows = Book.Worksheets("Input").Range("A1.IV64000").CurrentRegion.Rows.Count;
<%--ActiveRows = Range("A1.IV64000").CurrentRegion.Rows.Count;--%>
for (iRow=1; iRow<=ActiveRows; iRow++) {
for (jCol=1; jCol<=4; jCol++) {
cData = Book.Worksheets("Input").Cells(iRow,jCol).value;
<%--cData = Cells(iRow,jCol).value;--%>
sValue = sValue.concat(cData,"\n");
sValue = sValue.concat("\n\r");
document.getElementById("<%= controller->component_id %>_Excel_Data").value = sValue;
Excel.Workbooks.Close;
<%--return statement here calls the server event SERVERVENT--%>
  return nameUpload();
</script>
regards,rama

Hello all,
Excel = new ActiveXObject("Excel.Application");
the above statement is not working in Service pack 10 CRM 7.2.  any help is appropriated
thanks,rama

Similar Messages

  • Upload excel file not working with FM "HR_KR_XSTRING_TO_STRING"

    Hi Colleague,
    Can you let me know if there is any other Function module which can be used to upload an Excel file, as the FM "HR_KR_XSTRING_TO_STRING" is not existing in GTE system. It would be great if you provide the link which explains  on how to do it.
    Thanks & regards,
    Roopesh

    Hi,
    Use this instead.
    PERFORM gui_upload.
    FORM gui_upload .
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
             filename                      = lv_filename
             has_field_separator           = 'X'
           TABLES
             data_tab                      = it_file
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17
      IF sy-subrc <> 0.
        Message text-a12 type 'I' DISPLAY LIKE 'E'.
        EXIT.
      ENDIF.
    ENDFORM.                    " gui_upload

  • I started to download Maverick but then read that Word and Excel do not work  with Maverick.  I hit pause on the download. How do I stop the download.  In non technical terms please!

    How do I stop the download of Maverick on my MacBookPro?  I started downloading then discovered that 2008 Word and Excel do not work  with Maverick. I have too many files in the 2008 version to upgrade them at this time.  I just need instructions in non technical terms to stop the Maverick download.

    I did the same as Tapmr and have paused the "upgrade".  So am I to understand that the upgrade only downloads and will not automatically install it?  I am an extreme novice here, and cannot afford any issues after I upgrade/download.  I don't know how to make a clone copy as you suggested either.
    I need assurance that if the upgrade is allowed to continue that I will be able to delete the upgrade downloaded and continue on as before with my regular system. 

  • Interface for Excel does not work in Windows 7 - Important

    Hi,
    Im using BPC 75 MS SP04 with a computer Windows 7, IE 9, Office 2007. Apparently the Excel works "fine", the issue is that whenever I try to access to Interface for web from the main page (clicking the icon) it does not work, does not do anything...
    What do you suggest to do?
    Working directly in excel is not a problem, accesing to templates vía "Etools - Open dynamic templates" is fine.
    The issue is that users that have every access controlled by BPF's (using Interface for Web)  cannot work.
    Also, we use a template that uses 12 EVDRE reports in the background, we know it is a lot... but it was required like that.
    Once accesing to this template vía Etools -Open dynamic template... Excel gets stuck and I have to force it to shut down.
    Also Im working with a Vista system, Office 2003.
    For this systems, we also use the template EVDRE (12 reports). Once any of both systems access to this specific template, Excel gets stuck and I have to shut it down. Any other template is able to work with, but these 2 machines  (7 and Vista) cant.
    Please help !
    Velázquez

    Hi Velázquez,
    Based on SAP Note: 1603248, IE9 is not supported on BPC 7 and 7.5.
    So you have to revert to IE8.
    Only IE8 and IE7 are supported in 7.5 MS.
    Hope this helps.
    Karthik AJ

  • Image upload/retrieve turorial not working

    The tutorial regarding image upload retrieval in the following link is not working:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/retrieve_binary_data.html
    I get the following error:
    Java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.security.PrivilegedActionException : Error opening socket to server localhost on port 21527 with message : null
    Thanks

    Hi Sakthi,
    Finally I managed to make it work with the following modifications:
    (1) In the servlet jdbc/Order> jdbc/Travel
    (2) The datasource names for the rowsets in the session as Travel (instead of Order)
    Another observation I made is: If you bind the url of the image component (which is on the datatable column) to a (for example applicationbean) property which retruns the necessary url, it is very convinent to handle the datatable layout visually. (Otherwise if you go to the datatable layout it shows some error message popup)
    Thanks.

  • File upload custom renaming not working with {KT_ext}

    Hi,
    I used many times custom renaming with file upload, and used {KT_ext} for file's extension, but in first ADDT project is not working. I use this:
    $uploadObj->setRenameRule("{GET.id_cd}_{track}.{KT_ext}");
    Does anybody know if {KT_ext} is broken in ADDT?
    Thank you,
    Ruben

    Hi Günter,
    {track} and {id_track} are both table fields, and setRenameRule worked right with both, but it didn't with {KT_ext}.
    I've changed {track} with {id_track} in first page, and it stills fail to put extension.
    But maybe is this, in first page the column for Update Transaction is like this
    $upd_cds_peces->addColumn("mp3", "FILE_TYPE", "POST", "mp3");
    and in the second page (where it works right) is
    $upd_cds_peces->addColumn("mp3", "FILE_TYPE", "FILES", "mp3");
    Althought in both cases the file is uploaded and DDBB field is filled, maybe in first case the TNG doesn't expect a file and cannot find its extension.
    I'll try to change it,
    thanks,
    Ruben
    Edit: Yes, it was this... Now it works. Thank you Günter for your help!

  • Service Process Monitor  export to excel is not working

    Hi,
    The  Tx. CRM_SRV_REPORT ( Service -> Service Process Monitor) is not working.
    When you try to export to Excel (press button Excel (CtrlshiftF7) is not working. However, this button in other transaction is working, for example Activity Monitor.
    Any idea?
    Lyda

    Report to SAP. They sent a solution... it's an error

  • Sharepoint 2013 open in excel button not working

    Hi,
    We have a problem with buttons which are in top of the PowerPivot Workbook like OPENI N EXCEL, DATA , FIND, neither of
    the buttons are not working. This is happening for ie11 browser with windows 8.1.
    For Ie10 browser those are working fine. We suspect that if we upgrade that if we update from windows 8.0 to 8.1 those
    are working fine for some machines, but most of the cases these options are not working for ie11. Can anyone please help what could be problem for this issue. we
    need to find out when there is going to be a fix for this from SharePoint.
     Thanks,
    Bharath

    Hi Bharath,
    In IE11 if you choose the Browser mode to IE 10 does it works? Also enable Status bar on the Browser to see if there are any script errors. Check by adding the web site address to Local Intranet/Trusted sites zone to see if that makes any difference.
    Does this happen for all users including Administrators with IE11.
    Regards, Bhavik Jain

  • Excel Filter not working in Bex

    Hi All
    I have a report in Bex where I have a date field called basic date. Now when user is trying to select some basic function like greter than or less than a particular date(When we apply filter in excel we have the optioon Custom where so many option like greter than, less than, equals are available). It is giving blank value. I tried to change the format to date but still not working.
    Please suggest.
    Sunny

    Hi Sunny,
    The problem occurs if you set your auto filter in the wrong cell. I have found the easiest way to get auto filter to trigger in the correct cell is to click on a blank cell (i.e. outside of the analysis grid) and then switch on auto filter in Excel as normal. You should find that the filter icons appear in a different set of cells and when you use them they will contain the values in the columns.
    Hope this helps!

  • Multiple Excel Sheet not working

    Hi,
          I have a requirement where I need to split the excel data and send it to my inbox as excel attachment. But the below is not working as expected. Do let me know if there is issue with the below code.
      DATA : lv_start type i value '1',
                p_split type i value '10'.
    DESCRIBE TABLE i_attachment LINES lv_tot.
      DO.
        IF  lv_tot <= 0.
          EXIT.
        ENDIF.
      lv_start = lv_start + p_split.
        w_packing_list-doc_size =
        ( lv_tot ) * 255 + STRLEN( ls_att ).
        w_packing_list-transf_bin = 'X'.
        w_packing_list-head_start = 1.
        w_packing_list-head_num = 0.
        w_packing_list-body_start = lv_start.
        w_packing_list-body_num = p_split.
        w_packing_list-doc_type = 'XLS'.
        w_packing_list-obj_name = 'ATTACHMENT'(009).
        w_packing_list-obj_descr  = 'Excell Attachment2'.
        APPEND w_packing_list TO i_packing_list.
        CLEAR  w_packing_list.
        lv_tot = lv_tot - 10.
        IF  lv_tot <= 0.
          EXIT.
        ENDIF.
      ENDDO.
    Regards,
    Siva.

    Issue is resolved...
    Solution is,
    Remove selectionListener and selectedKey attributes from the table.
    Delete code is:
    DCBindingContainer dcBindings =
    (DCBindingContainer)getBindings();
    DCIteratorBinding dcIterator =
    dcBindings.findIteratorBinding("Iterator...");
    RowSetIterator rs = dcIterator.getRowSetIterator();
    RowKeySet rks = this.t1.getSelectedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    List l = (List) rksIter.next();
    Key key = (Key)l.get(0);
    Row row = rs.getRow(key);
    if(row != null)
    row.remove();
    }

  • Oracle Applications 11i Export to Excel does not work.

    The export button does not work. When I click on export it says complete but does not bring up a window asking me to save. I have pop up blocker off and the site added to trusted sites. I have tried everything I have found so far but no luck. Help would be much appreciated.....thanks!!!!

    Please post the details of the application release, database version and OS.
    The export button does not work. When I click on export it says complete but does not bring up a window asking me to save. I have pop up blocker off and the site added to trusted sites. I have tried everything I have found so far but no luck. Help would be much appreciated.....thanks!!!!Was this working before? If yes, any changes been done recently?
    Can you reproduce the issue from other browsers/machines?
    Can you find any errors in the database log file?
    Please see these docs/links.
    Troubleshooting Export and Attachment issues in Oracle Applications 11i [ID 338651.1]
    Attachments and Exports, a Troubleshooting Guide [ID 135444.1]
    Export To Excel: How To Activate Debugging? [ID 464469.1]
    How to Troubleshoot Forms Hanging Using Export Functionality [ID 423261.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Troubleshoot+AND+Export&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Troubleshooting+AND+Export&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Export+AND+Excel&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Upgraded and now word, excel do not work, upgraded and now word, excel do not work

    upgraded to 10.7.2 and now my excel, word etc do not work

    Office 2004 and older will not work with Lion.

  • Cmd+t in Excel 2011 not working

    Hi,
    I've just started moving over to the Mac. A search tells me that in Excel cmd+t is the Windows equivalent F4, which changes the absolute references within the cell. Unfortunately, this key combination is not working for me. Any help is appreciated. I am using Excel 2011 for the Mac and using Mac OS X v10.7.5.
    Thanks.

    Have a look on the right on this page under 'More like this'.

  • Word, powerpoint and excel are not working with lion. Has anyone else had this problem

    Word, Powerpoint and Excel have stopped working since downloading Lion. Has anyone else got this problem?

    Which version?  If it is 2004, then you are out of luck - Lion no longer supports apps written for PPC processors, only Intel.  There is no solution, either go back to Snow Leopard or upgrade to a later version of Office (2008 or 2011), or switch to another bracnd (OpenOffice, iWork).

  • Excel upload in background not working

    Greetings,
    I have used 2 functions, ALSM_EXCEL_TO_INTERNAL_TABLE and TEXT_CONVERT_XLS_TO_SAP. Both work when run online, but fail in background. What I am reading suggest that the excel must be converted first to a txt (tab-delimited). Is this correct or is there another function that will work without the conversion?
    Thanks.

    hi Richard,
    the above mentioned FMs work only in foreground. The reason for this is that they communicate with Excel implemented on the presentation server on your machine during the upload. In background, there is no presentation server, so no Excel communication possible, so no successfull upload. You have to for another solution, the one you mentioned (tab delimited text file) could be a good way.
    hope this helps
    ec

Maybe you are looking for

  • Creation of G/L for Reibursable Income & Expense

    Dear All, As required, We want to maintain seperate G/Ls for Material - Service Material (Professional Charges) Income & Expense and Material - Reimbursable Income & Expense. Currently, all Materials have been created as Material Type: DIEN - Service

  • Camera raw not working on photoshop elements 8

    I have tried installing camera raw 6.2 for photoshop elements 8 so I can open RAW image files, I have done exactly as the instructions said and I still encounter the error of "cannot open ___ because it is the wrong type of file"

  • Whether postgresql-8.2-506.jdbc4 works in a 64 bit operating system?

    Whether **postgresql-8.2-506.jdbc4** works in a 64 bit operating system? Especially I would like to know whether it works in windows server 2008 64 bit operating system.

  • Photoshop Elements 7.0 won't open

    I have Photoshop Element 7.0 on a PC. Until last week it was working fine but now it won't start at all. Can anyone help please? Regards Tom

  • Reg Oracle 8i to Oracle 9i migration Java

    The following java stored program which works fine in Oracle 8i (8.1.7) throws an ArrayIndexOutOfBounds Exception in Oracle 9i (9.2.0.4). import java.io.*; import java.util.*; import java.lang.*; public class chk extends Object public static String c