Gui_download for excel

Hi all,
       Please if sumone cud help,
       give me a sample WORKING code for download from internal table to   EXCEL (not vice versa!!).
my internal table is getting in the excelfile but all the fieldsare in 1 line..
heres my code..:
data: Lv_file type string,
Lv_path type string,
Lv_file_path type string.
call method cl_gui_frontend_services=>file_save_dialog
changing filename = Lv_file
path = Lv_path
fullpath = Lv_file_path.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
  BIN_FILESIZE                    =
    filename                        = Lv_file_path
   FILETYPE                        = 'ASC'
  APPEND                          = ' '
   WRITE_FIELD_SEPARATOR           = 'X'
IMPORTING
  FILELENGTH                      =
  tables
    data_tab                        = LIT_ORDER
  FIELDNAMES                      =

*& Report  ZMR_BACKGROUND_DOWNLOAD_EXCEL
REPORT  zmr_background_download_excel.
*TABLES: y001.
CONSTANTS: c_path(14) VALUE '/downloads/'.
*CONSTANTS: c_path(14) VALUE 'C:\ABAP\'.
DATA: BEGIN OF c_tab,
        x(2) TYPE C VALUE '09',
      END OF c_tab.
DATA : FILENAME LIKE RLGRAP-FILENAME VALUE 'EXAMPLE.TXT'.
DATA: buffer(8000),
      fieldname_offset TYPE i,
    fullpath(128),
      fullpath LIKE sxpgcolist-parameters,
    cmdfullpath(128),
      cmdfullpath LIKE sxpgcolist-parameters,
      cmd(40),
      ibtcxpm LIKE btcxpm OCCURS 0.
DATA : BEGIN OF I_MKAL OCCURS 0,
          MATNR LIKE MKAL-MATNR,
          WERKS LIKE MKAL-WERKS,
          VERID LIKE MKAL-VERID,
       END OF I_MKAL.
DATA : WA_MKAL LIKE I_MKAL.
DATA : FLAG TYPE C.
DATA : BEGIN OF I_FINAL OCCURS 0,
          MATNR LIKE MKAL-MATNR,
          MAKTX LIKE MAKT-MAKTX,
          WERKS LIKE MKAL-WERKS,
          VERID LIKE MKAL-VERID,
          ATWRT LIKE AUSP-ATWRT,
         ATWRT1 LIKE AUSP-ATWRT,
       END OF I_FINAL.
DATA : ZATWRT1 LIKE AUSP-ATWRT,
       ZATWRT  LIKE AUSP-ATWRT,
       ZMAKTX  LIKE MAKT-MAKTX.
DATA : LOCATION TYPE C VALUE 'A'.
Start of processing
*FUNCTION z_download.
""Local interface:
*"  IMPORTING
*"     VALUE(FILENAME)
*"     VALUE(LOCATION)
*"  TABLES
*"      DATA_TAB
*"      FIELDNAMES OPTIONAL
     data: ws_line type i.
  FIELD-SYMBOLS: <f>.
  CHECK NOT filename IS INITIAL.
START-OF-SELECTION.
FORMAT COLOR COL_NORMAL.
    SELECT MATNR
           WERKS
           VERID
      FROM MKAL INTO CORRESPONDING FIELDS OF TABLE I_MKAL
     WHERE SERKZ = 'X'
       AND WERKS IN ('1101', '1102').
LOOP AT I_MKAL.
  SELECT SINGLE ATWRT
           FROM AUSP INTO ZATWRT
          WHERE OBJEK = I_MKAL-MATNR
            AND ATINN = '0000000019'
            AND KLART = '001'.
      IF SY-SUBRC = 0.
         FLAG = 'X'.
      ENDIF.
  SELECT SINGLE ATWRT
           FROM AUSP INTO ZATWRT1
          WHERE OBJEK = I_MKAL-MATNR
            AND ATINN = '0000000022'
            AND KLART = '001'.
      IF SY-SUBRC = 0 AND FLAG = 'X'.
            SELECT SINGLE MAKTX
                     FROM MAKT INTO ZMAKTX
                    WHERE MATNR = I_MKAL-MATNR.
            I_FINAL-MATNR = I_MKAL-MATNR.
            I_FINAL-MAKTX = ZMAKTX.
            I_FINAL-WERKS = I_MKAL-WERKS.
            I_FINAL-VERID = I_MKAL-VERID.
            I_FINAL-ATWRT = ZATWRT.
           I_FINAL-ATWRT1 = ZATWRT1.
            APPEND I_FINAL.
      ENDIF.
CLEAR ZATWRT.
CLEAR ZATWRT1.
CLEAR ZMAKTX.
ENDLOOP.
END-OF-SELECTION.
  CONCATENATE c_path filename INTO fullpath.
  OPEN DATASET fullpath IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
  DESCRIBE TABLE I_FINAL LINES ws_line.
  IF ws_line NE 0.
    PERFORM fieldnames_2_buffer TABLES I_FINAL CHANGING buffer.
    fieldname_offset = STRLEN( buffer ).
    TRANSFER buffer TO fullpath LENGTH fieldname_offset.
  ENDIF.
  LOOP AT I_FINAL.
    CLEAR buffer.
    CLEAR fieldname_offset.
    DO.
      ASSIGN COMPONENT sy-index OF STRUCTURE I_FINAL TO <f>.
      IF sy-subrc NE 0.  EXIT.  ENDIF.
      WRITE <f> TO buffer+fieldname_offset.
      CONDENSE buffer.
      fieldname_offset = STRLEN( buffer ).
      WRITE c_tab TO buffer+fieldname_offset(1).
      ADD 1 TO fieldname_offset.
    ENDDO.
    TRANSFER buffer TO fullpath LENGTH fieldname_offset.
  ENDLOOP.
  CLOSE DATASET fullpath.
  CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
    EXPORTING
      commandname                   = 'ZCHMOD'
      additional_parameters         = fullpath
    TABLES
      exec_protocol                 = ibtcxpm
    EXCEPTIONS
      no_permission                 = 1
      command_not_found             = 2
      parameters_too_long           = 3
      security_risk                 = 4
      wrong_check_call_interface    = 5
      program_start_error           = 6
      program_termination_error     = 7
      x_error                       = 8
      parameter_expected            = 9
      too_many_parameters           = 10
      illegal_command               = 11
      wrong_asynchronous_parameters = 12
      cant_enq_tbtco_entry          = 13
      jobcount_generation_error     = 14
      OTHERS                        = 15.
      IF SY-SUBRC = 0.
      ENDIF.
  CONCATENATE c_path filename '_cmd' INTO cmdfullpath.
  OPEN DATASET cmdfullpath IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
  CASE location.     "location A, B, C, D on a network
    WHEN 'A  '.
BREAK-POINT.
      TRANSFER 'open 192.9.200.223' TO cmdfullpath.
      TRANSFER 'user ROOT ROOT123' TO cmdfullpath.
    WHEN 'B  '.
      TRANSFER 'open xx.xxx.xx.xx' TO cmdfullpath.
      TRANSFER 'user sapftp <pwd>' TO cmdfullpath.
    WHEN 'C  '.
      TRANSFER 'open xx.xxx.xx.xx' TO cmdfullpath.
      TRANSFER 'user sapftp <pwd>' TO cmdfullpath.
    WHEN 'D  '.
      TRANSFER 'open xx.xxx.xx.xx' TO cmdfullpath.
      TRANSFER 'user sapftp <pwd>' TO cmdfullpath.
    WHEN OTHERS.
  ENDCASE.
*start>
    clear y001.
SELECT SINGLE y_path INTO y001-y_path
                      FROM y001 WHERE bname = sy-uname
                                  AND y_site = location.
TRANSFER y001-y_path TO cmdfullpath.
*<end
BREAK-POINT.
     concatenate 'lcd' c_path into cmd separated by space.
  TRANSFER cmd TO cmdfullpath.
  CLEAR cmd.
  CONCATENATE 'put' filename INTO cmd SEPARATED BY space.
  TRANSFER cmd TO cmdfullpath.
  TRANSFER 'bye' TO cmdfullpath.
  CLOSE DATASET cmdfullpath.
  CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
    EXPORTING
      commandname                   = 'ZCHMOD'
      additional_parameters         = cmdfullpath
    TABLES
      exec_protocol                 = ibtcxpm
    EXCEPTIONS
      no_permission                 = 1
      command_not_found             = 2
      parameters_too_long           = 3
      security_risk                 = 4
      wrong_check_call_interface    = 5
      program_start_error           = 6
      program_termination_error     = 7
      x_error                       = 8
      parameter_expected            = 9
      too_many_parameters           = 10
      illegal_command               = 11
      wrong_asynchronous_parameters = 12
      cant_enq_tbtco_entry          = 13
      jobcount_generation_error     = 14
      OTHERS                        = 15.
IF SY-SUBRC = 0.
      ENDIF.
  CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
       EXPORTING
            commandname                   = 'ZFTP'
         commandname                   = 'ZFTP'
            additional_parameters         = cmdfullpath
       TABLES
            exec_protocol                 = ibtcxpm
       EXCEPTIONS
            no_permission                 = 1
            command_not_found             = 2
            parameters_too_long           = 3
            security_risk                 = 4
            wrong_check_call_interface    = 5
            program_start_error           = 6
            program_termination_error     = 7
            x_error                       = 8
            parameter_expected            = 9
            too_many_parameters           = 10
            illegal_command               = 11
            wrong_asynchronous_parameters = 12
            cant_enq_tbtco_entry          = 13
            jobcount_generation_error     = 14
            OTHERS                        = 15.
IF SY-SUBRC = 0.
      ENDIF.
*ENDFUNCTION.
      form fieldnames_2_buffer                                      *
-->  fieldnames                                                    *
-->  buffer                                                        *
form fieldnames_2_buffer tables fieldnames changing buffer.
CLEAR buffer.
CLEAR fieldname_offset.
LOOP AT fieldnames.
  WRITE fieldnames TO buffer+fieldname_offset.
  CONDENSE buffer.
  fieldname_offset = STRLEN( buffer ).
  WRITE c_tab TO buffer+fieldname_offset(1).
  ADD 1 TO fieldname_offset.
ENDLOOP.
fieldname_offset = fieldname_offset - 1.
IF fieldname_offset >= 0.
  WRITE space TO buffer+fieldname_offset(1).
ENDIF.
ENDFORM.                    "

Similar Messages

  • Using Gui_download for excel output

    Hi,
    I am using gui_download to output in excel format, my requirement is i want to start records from 3rd row in excel.
    On first row first column title shoud come? Second row blank,  i used fieldname for header in export paramenter from 3rd row.
    Plz help me to sove this issue.
    Thanks in advance.
    Vishnu.

    Hi vishnu,
    Here is the sample code below.
    *& Report  ZVK_TEST1
    REPORT  zvk_test1.
    TYPES:BEGIN OF ty_ekko,
            ebeln TYPE ekko-ebeln,
            bukrs TYPE ekko-bukrs,
    END OF ty_ekko.
    TYPES:BEGIN OF ty_fields,
            field TYPE dd03l-fieldname,
          END OF ty_fields.
    DATA:lt_ekko TYPE STANDARD TABLE OF ty_ekko,
         lt_dummy TYPE STANDARD TABLE OF ty_ekko.
    DATA:lw_ekko TYPE ty_ekko.
    APPEND INITIAL LINE TO lt_dummy.
    APPEND INITIAL LINE TO lt_dummy.
    SELECT ebeln bukrs INTO TABLE lt_ekko
      FROM ekko UP TO 10 ROWS.
    DATA:lt_fields TYPE TABLE OF ty_fields,
         lw_field TYPE ty_fields.
    lw_field-field = 'PO NUMBER'.
    APPEND lw_field TO lt_fields.
    lw_field-field = 'COMPANY CODE'.
    APPEND lw_field TO lt_fields.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
       bin_filesize              =
        filename                  = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
        filetype                  = 'ASC'
      CHANGING
        data_tab                  = lt_dummy
      EXCEPTIONS
        file_write_error          = 1
        no_batch                  = 2
        gui_refuse_filetransfer   = 3
        invalid_type              = 4
        no_authority              = 5
        unknown_error             = 6
        header_not_allowed        = 7
        separator_not_allowed     = 8
        filesize_not_allowed      = 9
        header_too_long           = 10
        dp_error_create           = 11
        dp_error_send             = 12
        dp_error_write            = 13
        unknown_dp_error          = 14
        access_denied             = 15
        dp_out_of_memory          = 16
        disk_full                 = 17
        dp_timeout                = 18
        file_not_found            = 19
        dataprovider_exception    = 20
        control_flush_error       = 21
        not_supported_by_gui      = 22
        error_no_gui              = 23
        OTHERS                    = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
       bin_filesize              =
        filename                  = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
        filetype                  = 'ASC'
        append                    = 'X'
        write_field_separator     = 'X'
        fieldnames                = lt_fields
      CHANGING
        data_tab                  = lt_ekko
      EXCEPTIONS
        file_write_error          = 1
        no_batch                  = 2
        gui_refuse_filetransfer   = 3
        invalid_type              = 4
        no_authority              = 5
        unknown_error             = 6
        header_not_allowed        = 7
        separator_not_allowed     = 8
        filesize_not_allowed      = 9
        header_too_long           = 10
        dp_error_create           = 11
        dp_error_send             = 12
        dp_error_write            = 13
        unknown_dp_error          = 14
        access_denied             = 15
        dp_out_of_memory          = 16
        disk_full                 = 17
        dp_timeout                = 18
        file_not_found            = 19
        dataprovider_exception    = 20
        control_flush_error       = 21
        not_supported_by_gui      = 22
        error_no_gui              = 23
        OTHERS                    = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • GUI_Upload & GUI_Download for excel files

    Hi experts,
    I want to upload excel file into sap. i am trying with GUI_Upload function module. when i see the data it is filled with # and other special char. When i save the excel file as .txt file and then read the txt file. Now i am getting correct data. Is it possible to read Excel data using GUI_UPLOAD directly without changing .xls to .txt.
    Also, how to change data in  second or  third tab of excel file using GUI_Download.
    -RK

    Hi
    Actually ur file selection s wrong.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          PROGRAM_NAME  = SYST-REPID
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = 'P_FNAME'
          STATIC        = 'X'
         MASK          = '*.txt'
        CHANGING
          FILE_NAME     = P_FNAME
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
    Upload:
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = LV_FNAME
          FILETYPE                = 'ASC'
          HAS_FIELD_SEPARATOR     = 'X'
        TABLES
          DATA_TAB                = IT_UEXBANK01
        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 ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • GUI_DOWNLOAD in Excel format

    Hi Gurus,
    I am using GUI_DOWNLOAD for excel (.XLS) format
    I Used
    *FILETYPE                        = 'ASC'   / DAT
    WRITE_FIELD_SEPARATOR           = 'X'
    My problem is the data not getting  proper excel format.
    thanking you.
    Subash

    You can create a file with extension .xls,
    but in fact the file contains only plain text, but when you open a file by using ms.excel,  it will be generated so that it becomes a table.

  • Gui_download for transferring the data from internal table to excel sheet.

    hi all,
    i am using gui_download for transferring the data from internal table to excel sheet.
    I have a internal table with 3 columns col1,col2,col3 and I am getting the file at the specified path,but my problem is that,in the excel sheet(path specified) all the 3 columns values are printed in one column.Please help me.
    Thanks in advance.

    Hi Venkata,
    plz use FM 'SAP_CONVERT_TO_XLS_FORMAT' :
      call function 'SAP_CONVERT_TO_XLS_FORMAT'
        exporting
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
          i_filename                 = p_file
    *   I_APPL_KEEP                = ' '
        tables
          i_tab_sap_data             = t_mbew
    * CHANGING
    *   I_TAB_CONVERTED_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.
    Hope this helps,
    Erwan

  • Problem for Report Generation Toolkit for excel 2000

    Hi all,
    Now I am Developing my program with Report Generation Toolkit 1.1.0 and Labview 7.1.
    In my computer I am using Excel XP, and there is not any problem. But when I build to
    a exe file, and use in a computer with Excel 2000, it didn't work.
    And I try to check the source file in this computer, I found that there any some connection
    error. And this is caused by the active X class. As I know Excel 2000 is using Microsoft Excel
    Object Library 9.0, but i cannot find it in the list of active x. So it is using Microsoft Excel Object
    Library with a very old verison. So in the property node there are missing functions, such as the
    UsedRange in _Worksheet in the Excel_Get_Range.vi. However, In VBA, I can find the 9.0 Library.
    Is it the problem of 9.0 library? How can I solve the problem? How can I upgrade the library to 10.0?
    Thanks.
    Regard,
    Ryan

    Hi Mike,
    Since my program is for all the staff in office, everyone may use it.
    I cannot call the whole office to upgrade the excel to XP.
    And I think Report Generation Toolkit is alway support Excel 2000,
    since the old version of it is not support for Excel XP.
    Regard,
    Ryan

  • Error in running a function to convert coordinates in degrees to decimal for EXCEL VBA

    For your information, I have 3 cross-posts regarding this question - and all I can said there is still no firm solution regarding this error.
    1) http://stackoverflow.com/questions/27634586/error-in-running-a-function-to-convert-coordinates-in-degrees-to-decimal-for-exc/27637367#27637367
    2) http://www.mrexcel.com/forum/excel-questions/826099-error-running-function-convert-coordinates-degrees-decimal-excel-visual-basic-applications.html#post4030377 
    3) http://www.excelguru.ca/forums/showthread.php?3909-Error-in-running-a-function-to-convert-coordinates-in-degrees-to-decimal-for-EXCEL-VB&p=16507#post16507
    and the story of the error is as below:
    Currently I am working on VBA excel to create a widget to verify coordinates whether it lies under the radius of ANOTHER predefined and pre-specified sets of coordinates.
    In the module, I want to convert the coordinates from degrees to decimal before doing the calculation - as the formula of the calculation only allow the decimal form of coordinates.
    However, each and every time I want to run the macros this error (Run-time error '5', invalid procedure call or argument) will appear. Then, the debug button will bring me to below line of coding:
    degrees = Val(Left(Degree_Deg, InStr(1, Degree_Deg, "°") - 1))
    For your information, the full function is as below:
    Function Convert_Decimal(Degree_Deg As String) As Double
    'source: http://support.microsoft.com/kb/213449
    Dim degrees As Double
    Dim minutes As Double
    Dim seconds As Double
    Degree_Deg = Replace(Degree_Deg, "~", "°")
    degrees = Val(Left(Degree_Deg, InStr(1, Degree_Deg, "°") - 1))
    minutes = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "°") + 2, _
    InStr(1, Degree_Deg, "'") - InStr(1, Degree_Deg, "°") - 2)) / 60
    seconds = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "'") + _
    2, Len(Degree_Deg) - InStr(1, Degree_Deg, "'") - 2)) / 3600
    Convert_Decimal = degrees + minutes + seconds
    End Function
    Thank you.
    Your kind assistance and attention in this matter are highly appreciated.
    Regards,
    Nina.

    You didn't give an example of your input string but try the following
    Sub test()
    Dim s As String
    s = "180° 30' 30.5""""" ' double quote for seconds
    Debug.Print Deg2Dec(s) ' 180.508472222222
    End Sub
    Function Deg2Dec(sAngle As String) As Double
    Dim mid1 As Long
    Dim mid2 As Long
    Dim degrees As Long
    Dim minutes As Long
    Dim seconds As Double ' or Long if only integer seconds
    sAngle = Replace(sAngle, " ", "")
    mid1 = InStr(sAngle, "°")
    mid2 = InStr(sAngle, "'")
    degrees = CLng(Left$(sAngle, mid1 - 1))
    minutes = CLng(Mid$(sAngle, mid1 + 1, mid2 - mid1 - 1))
    seconds = Val(Mid$(sAngle, mid2 + 1, 10)) ' change 10 to 2 if only integer seconds
    Deg2Dec = degrees + minutes / 60 + seconds / 3600
    End Function
    As written the function assumes values for each of deg/min/sec are included with unit indicators as given. Adapt for your needs.
    In passing, for any work with trig functions you will probably need to convert the degrees to radians.

  • FR Report Print Layout Setup for Excel

    Hello All,
    Is there any way to setup the Page Layout for Excel export of the report.The user will export the report from HTML view on Workspace to Excel from File Menu options.After viewing the report in excel the user should be able to directly print the report without setting the page size and all.
    The Page Set Up option seems to be working for PDF but not in excel.
    REgards
    AG

    Hi AG,
    As far as I know, this option is limited to pdf view. It could a nice enhancements in the upcoming versions as I've heard this request many times from various clients.
    Cheers,
    Mehmet

  • BO Analysis for Excel – How to connect to SAP BW

    Hi Gurus,
    We recently upgrade to BO 4.1 (from 3.1).  And want to start to use Analysis for Excel.
    We are little unclear how to connect from Analysis for Excel to SAP BW 7,3.
    From Analysis select “Select Data Source” Then get a pop-up “Logon to SAP BussinessObjects BI Platform” with User, Password and Web Service URL.  All those are blank.  For the Web Service URL there is a message “Error while checking availability of SAP BussinessObjects BI Platform system”
    If choose “Skip” then get SAP Logonpad and can log on to BW.  From there I can choose the BW queries directly.
    What is the best practice to connect from Analysis for Excel to SAP BW?
    Is it not possible to connect to the BO server?  And choose OLAP connection from there to connect to BW?
    If so, is something missing in our setup?
    Regards,
    Reynir

    Yes you need to define an OLAP connection of you are connecting to BW through the BIP - see tutorial http://scn.sap.com/docs/DOC-20625
    You can also connect directly to BW without going through BIP
    I also recommend searching before you post per SCN rules - there are many posts about creating OLAP connections
    Tammy

  • Scheduling issue with Analysis for Excel

    Hi,
    I am trying to schedule a workbook in Analysis for  Excel from CMC. The schedule always fails when I uncheck the APPLY DEFAULT FORMATS in the components tab of the Display Analysis. The schedule works fine if this box is checked. Has anyone come across this issue?
    Analysis Excel Version: 1.4.5.2837
    Thanks,
    Kal

    Hi Tammy,
    Sorry for getting back to you so late. We are right now BIP-add on SP5 for Analysis Office. We are planning to have BIP-add on SP6 next week. Dont know if this will solve my issue but something to try.
    Thanks,
    Kal

  • Excel Trying to Load PowerPivot Add-in (version 11.1.3129.0) for Excel 2010 even after Uninstalltion of the Add-in.

    Hi all,
    I am trying to Package and deploy Powerpivot Add-in for Excel 2010. I have the Powerpivot_X86_(11.1.329.0) .MSI which installs Unattended, but Uninstallation will not remove entry from COM ADD-IN list in Excel and at first re-launch (even after
    Power Pivot Uninstallation) it will try to load Powerpivot add-in and will give an error.
    Downloading file.///c:/Program files (x86)/Microsoft analysis services/AS Excel Client/110/Microsoft.AnalysisServices.XLHost.Addin.VSTO did not succeed.
    this above path is the [InstallDir] which gets wiped off with the unistallation of the .MSI. So, before uninstallation,I stop the excel process and am running a script to delete HKCU Add-in Reg key entries.
    and also, I thought it may be implicitly loading the add-in from folder such as,
    C:\Program Files\Microsoft Office\Office14\XLstart
    %appdata%\Microsoft\Excel\XLSTART
    but nothing is installed there.
    Second Issue
    when I re-install,
    it doesn't automatically show up in the Excel ribbon (even after reboot and even if regeistries are created at the same location) but instead we should add it through COM ADD-IN list in Excel Manually.
    Appreciate any idea's and suggestion's.
    P.S
    is it possible to make it completely installed per system rather having user entries?
    Error Details:
    Name:
    From: file:///C:/Program Files (x86)/Microsoft Analysis Services/AS Excel Client/110/Microsoft.AnalysisServices.XLHost.Addin.vsto
    ************** Exception Text **************
    System.Deployment.Application.DeploymentDownloadException: Downloading file:///C:/Program Files (x86)/Microsoft Analysis Services/AS Excel Client/110/Microsoft.AnalysisServices.XLHost.Addin.vsto did
    not succeed. ---> System.Net.WebException: Could not find a part of the path 'C:\Program Files (x86)\Microsoft Analysis Services\AS Excel Client\110\Microsoft.AnalysisServices.XLHost.Addin.vsto'. ---> System.Net.WebException: Could not find a part of
    the path 'C:\Program Files (x86)\Microsoft Analysis Services\AS Excel Client\110\Microsoft.AnalysisServices.XLHost.Addin.vsto'. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Microsoft Analysis Services\AS
    Excel Client\110\Microsoft.AnalysisServices.XLHost.Addin.vsto'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES
    secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
       at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
       --- End of inner exception stack trace ---
       at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
       at System.Net.FileWebRequest.GetResponseCallback(Object state)
       --- End of inner exception stack trace ---
       at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.Net.FileWebRequest.GetResponse()
       at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
       --- End of inner exception stack trace ---
       at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
       at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

    Guys, I think I solved the
    issue:
    Symptoms
    1. Power Pivot SQL 2012 32-bit installed over the old version without
    deinstalling it
    2. Installed with a user with administrator rights
    3. It worked under the profile with admin rights, it didn't work under the
    normal users w/o admin rights and threw this error message: Downloading file.///c:/Program files (x86)/Microsoft analysis services/AS Excel Client/10/Microsoft.AnalysisServices.XLHost.Addin.VSTO
    did not succeed.
    4. In the admin profile, it went to the path "110":  C:/Program
    Files (x86)/Microsoft Analysis Services/AS Excel
    Client/110/Microsoft.AnalysisServices.Modeler.FieldList.vsto
    5. In the normal profile, it went to the - wrong - "10" path:
    C:/Program Files (x86)/Microsoft Analysis Services/AS Excel
    Client/10/Microsoft.AnalysisServices.Modeler.FieldList.vsto
    SOLUTION
    1. ADMIN: Installed VSTO 4.0
    2. ADMIN: Checked if the .NET Programmability Support was installed - it was -
    if not, install it!
    3. NORMAL USER: Create a .reg file (Backup your registry before!) and
    use it UNDER THE NORMAL USER!!!
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Office\Excel][HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins][HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\Microsoft.AnalysisServices.Modeler.FieldList]
    "Description"="Microsoft SQL Server PowerPivot for Microsoft Excel"
    "FriendlyName"="PowerPivot for Excel"
    "LoadBehavior"=dword:00000003
    "Manifest"="C:\\Program Files\\Microsoft Analysis Services\\AS
    Excel Client\\110\\Microsoft.AnalysisServices.XLHost.Addin.vsto|vstolocal"
    "CartridgePath"="C:\\Program Files\\Microsoft Analysis
    Services\\AS OLEDB\\110\\Cartridges\\"
    4. NORMAL USER: Rename the registry key
    "HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\User Settings\Microsoft.AnalysisServices.Modeler.FieldList"
    into
    "HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\User
    Settings\Microsoft.AnalysisServices.Modeler.FieldList_old"
    5. NORMAL USER: Start up Power Pivot and it should
    work now!
    Analysis
    IMHO the issue lies in the fact, that the Power Pivot
    installer creates two problems:
    The first issue is that the path to the add-in under
    the NORMAL user is simply wrong and points to a wrong location (the
    "10" in the path). In the admin profile, where it was originally
    installed, it points to the "110" path which is correct.
    The second issue is that the installation procedure
    somehow needs to create a registry key (the one under point 4 in the solution)
    to complete it self and if this key already exists it fails to install and
    throws up weird error messages. If you delete or rename this key, it is created
    again (exactly in the same way) but then everything works out.
    Hope this
    helps!
    Regards, Reto

  • "Authorization error" while accessing Multiprovider in Analysis for excel tool

    Hi,
    We are using "Analysis for excel" 1.4 version. My users are executing all queries out of any MP with out any issue. But while accessing Multi Provider in "Analysis for excel" tool they are geeting "Authorization" error.  Any suggestions please.
    Thanks,
    Deepa.

    Hi Deepa,
    I'm facing the same problem, which basically is no issue but expected behaviour?!
    Reason: When allowing access on Multiproviders via queries you probably restrict the data selection with authorization variables, where users have to select characteristics they are allowed to see.
    In that way, you prevent that users can see data for which they are not authorized.
    Finally, if the direct selection via Multiprovider was allowed without any restriction, your whole authorization concept would be for the birds :-)
    In my case, I wanted to give users just an overview of the "last update dates" of several infocubes:
    =SAPGetSourceInfo("DS_1"; "DataSourceName")
    =SAPGetSourceInfo("DS_1"; "LastDataUpdate")
    (... we all know that Multis can display only the oldest load date of any of all Cubes below....)
    I even deleted the cross-tabs, and kept only the reference to the DS_x ... But still, when users try to refresh the data sources they are not even allowed to select pure technical Cube Information :-/
    Regards, Martin
    PS: If anyone else has a different idea as solution to my problem, just let me know :-)

  • Preventing automatic scientific notation conversion for excel o/p of bi pub

    I have a column in a query that contains a mixture of numbers and letters and hyphens. If the only letter is E, then I get scientific notation instead of the actual text,when I run the report for excel output and open it in excel.
    For example:
    185701E-02 becomes 1.86E+03 in the excel output of the report
    4962E6 becomes 4.96E+09
    will be really grateful if anyone can help

    See this thread:
    Re: Long account Numbers displayed in exponential form in excel using XML Pub
    Regards,
    Dave

  • Master Data Services Add-in for Excel Issue

    I am trying to configure MDS in the Production server. I am running into isssues.
    (I was able to do the whole process successfuly in my local system - Versions are same in the local and server - Only difference is local machine is windows 7 server is Windows 2008 R2)
    I have installed SQL server 2012 Enterprise Version SP1. I am able to browse the MDS URL. User has got full permissions. When I try to access the MDS via Excel I get the below error.
    Can any one help me please I have spent days on this withou any joy.
    Error message
    TITLE: Master Data Services Add-in for Excel
    An error occurred while receiving the HTTP response to
    http://MYIPADDRESS/mds/service/service.svc/bhb. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See
    server logs for more details.
    ADDITIONAL INFORMATION:
    The underlying connection was closed: An unexpected error occurred on a receive. (System)
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. (System)
    An existing connection was forcibly closed by the remote host (System)
    BUTTONS:
    OK
    Bn

    I have finally found a solution for this problem!  Every time I opened Excel (unless I ran as administrator) I would have to activate the MDS add-in; this was time-consuming and annoying. It seems like there was no solution posted online anywhere! Well
    after much aggravation, I have finally found a solution:
    Fixing the Microsoft MDS Excel Add-In so it Stays Enabled
    Press the Start button (Windows button)
    In the search bar type “REGEDIT”
    Open regedit.exe
    A pop-up will ask permission for the Registry Editor to make changes to the computer, select Yes.
    In the Registry Editor expand HKEY_CURRENT_USER
    In the HKEY_CURRENT_USER folder, expand in the following order:  Software -> Microsoft -> Office -> Excel -> Addins
        Select Microsoft.MasterDataServices.ExcelAddIn
    Double-click on LoadBehavior in the right panel
        In the Edit Value popup, change the value to 
    Press OK
    Exit the Registry Editor
    The excel add-in should now be active anytime you open Excel. If multiple errors occur while using the add-in, the Load Behavior may change back to 0.  If that occurs simply follow these steps so the add-in will be active when Excel starts up.
    I hope this helps some of you avoid the long hours of trying to find a solution to this silly problem.
    Cheers!
    Tony

  • Exporting a List to Excel to use for Excel Services WebPart (not working)

    Hey everyone, here's the scenario. I'm trying to export a list to excel and save it to a library. All the connections are saved. Now. I want that excel file to render as a web part. When I make a change on the list and try to refresh the data connection
    I get the error below. Please help
    AJ MCTS: SP 2010 Configuration MCSA: Windows 7 If you find this post useful kindly please mark it as an answer :) TY

    Hi,
    I did a test as the followings:
    Create a list, and add some items into it.
    Export the list into a Excel file, then upload the excel file to a library.
    When I opened the file via Excel service, I saw the a yellow warning about unsupported features.
    Then I created a wiki page, and add Excel Web Access web part and connect the web part to the excel file.
    When I refresh all data conections, nothing happened.
    From the article:
    https://msdn.microsoft.com/en-us/library/ms496823.aspx (they are similar with SharePoint 2013)
    SharePoint lists are not supported for Excel service. So, it may cause this issue.
    I suggest you click "Open in Excel" to open the file in Excel application, then refresh the data connection, and save back to SharePoint. Then after you refresh the page, the data of the Excel Web Access web part will refresh.
    Thanks,
    Wendy
    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]

Maybe you are looking for