Excel OLE query

I want to use the the OpenText method of the workbooks collection in Excel.
This method expects an array for the method parameter FieldInfo.
How do i pass an array to this parameter from ABAP ?

Hi,
This is the forum to discuss questions and feedback for Microsoft Office client. Since your query is directly related to Power Query, I'm moving this to the forum of
Power BI>Power Query, where you can get more experienced responses:
http://social.technet.microsoft.com/Forums/en-US/home?forum=powerquery
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. Thank you for your understanding.
Thanks,
Ethan Hua CHN
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.

Similar Messages

  • EXCEL Web Query  - load into SAP via Web dynpro or standard ABAP

    Hi everybody
    I was wondering if you can run an EXCEL WEB Query from abap and then upload the data retrieved from the web into SAP using either a web dynpro application or standard SAP.
    For standard ABAP one could probably run the EXCEL web query by executing some code such as
    call method cl_gui_frontend_services=>execute
    exporting
    document = 'your excel web query file'.
    You could then save the data and using GUI_UPLOAD get it into sap.
    I'd really like to do it via a web dynpro application.
    Any ideas anyone.
    For guys who've never used EXCEL web queries --quite easy.
    Open EXCEL
    go to Import External Data
    Choose New web query
    Enter URL of where you want to retrieve your data from such as YAHOO finance etc.
    For example to get the components of the Dow Jones Composite Index (^DJA) use this url
    http://finance.yahoo.com/q/cp?s=%5EDJA
    click the yellow arrow on the table data you want to import. The arrow will turn Green and press IMPORT
    Then enter the cell number where you want to start importing data
    Hey presto you've got your data from the web.
    Cheers
    jimbo

    when you create a new webquery, in the properties, you can set when the page should refresh (data fetch to happen), you can set that to refresh at file open.
    then you can use either OLE or gui_upload to upload the excel to read the data.
    have couple of question:
    why do you want to choose excel webquery ?=> is it because the ability to get unstructured data from the web?
    what sort of data you are trying to read from the web?=> most of data centric sites (forex, stock quotes) will have either RSS feeds or some web APIs to get data which can be easily consumed by ABAP
    Regards
    Raja

  • Visual studio online - Excel power query usage and samples needed

    Background
    Visual Studio Online does not offer much in the way of reporting, when compared to (onsite) TFS... unless you utilize the REST API functionality.
    The Visual Studio Online REST API is fairly extensive, but not very 'reporting' friendly to applications like Microsoft Excel.
    Question
    Are there any good examples of Microsoft Excel Power Query usage - to acquire and create reports via the Visual Studio Online REST API?  I've searched - but surprisingly haven't found anything of substance.  It is fairly simple to call a VSO REST
    query using Excel Power Query, but not so simple to iterate through the lists within lists, etc... unless you are familiar with 'M language'.

    Hi,
    Thank you for reaching out to us. I am currently researching to gather more information with regards to your request. I shall revert back to you with an update at the earliest. Sincerely appreciate your patience.
    Regards,
    Nithin Rathnakar

  • Opening Linked Excel OLE Objects in Forms 6i

    Hi,
    I have a linked Excel OLE object which is populating properly into an OLE container. However, I cannot open the file to save a local copy, as I would a non-linked Excel OLE object. If I right-click on the linked OLE object choose copy, I can paste the data into a spreadsheet, but it appears as an image, rather than as regular tabulated data. Is there anyway to open the file normally?
    Thanks in advance.

    Hi Shay,
    Thanks for the reply but i was unable to register to metalink. they need some support agreement code which i do not have. Can you please give me some more information on how to use that.
    waiting for an early reply.
    Warm Regards
    Vivek Bajaj

  • Port Excel SmartView Query to Powerpoint

    Can someone help me with detailed steps on how to port an Excel Smartview query to a MS Powerpoint presentation slide. I would like to port my nicely formatted smartview query to a powerpoint presentation that I am working on. I will like the formatting to be retained and also be able to refresh data in the SV query inside my powerpoint presentation. Thanks.

    What version of Oracle client are you using?  There's a known issue with older versions where you'd get errors if the app executable resided in a path with parenthesis in it.   It's resolved in 10203 and later though, so the better solution rather than moving executable around is to just use 11g client.   If you have access to MOS, see the following:
      ORA-12154 or ORA-6413 Running 32-bit Oracle Software on 64-bit Windows OS [ID 334528.1]
    Hope it helps,
    Greg

  • Query SQL code gets deleted after export to Excel. "Query must have at least one destination field"

    Hi all,
    I'm getting really frustrated by this Access error. It happens when I export the result of a query through an Access macro to Excel, the first time it runs well but the next time, there is a chance that the query won't run and the error "Query
    must have at least one destination field" will be displayed. After that, I try to check the query SQL code and discover the code has vanished. I'm using simple Select query without joins, only "where", "group by" and "order by"
    statements.
    Thank you in advance for your help,
    Jesus 
    Edit:
    One of these queries are like the following (all of them are of this type):
    SELECT Field1, field2, field3, field4, field5, Sum(Field6) AS SumOfField6, Sum(Field7) AS SumOfField7
    FROM Table1
    WHERE Field6 is not null
    GROUP BY Field1, field2, field3, field4, field5
    Order By Sum(Field6) desc

    Hi Peter, 
    Thank you for your response, I updated the original question with one of the codes.
    Thanks,
    Jesus

  • Truncation of leading Zeros when Down Loading into Excel - OLE Objects

    Hi,
    Can any one help me on this.
    I am using <b>OLE Objects</b> to download Data into Excel Sheet. Data with leading Zeros is getting truncated in Excel.
    Ex: Report Output is showing Plant Number as 0002. But when i am downloading to Excel Plant value will become 2 .
       I would like to have it as 0002 in Excel.
    I have declared Werks as CHAR of 4.I am using OLE Obects for Downloading into Excel Sheet.
    I am using "OLE2_OBJECT" I can not use any other FMs to down load to Excel.As i am modifying this program not creating.
    Thanks In Advance.
    K.Nirmala
    Message was edited by: Nirmala Reddy

    Hi Nirmala,
    While downloading to excel sheet, u need to change the number format of cell from General to Text, then leading zero's won't get deleted. For that u need to set the property of the cell. Please check this sample code,
    INCLUDE OLE2INCL.
    tables : zobrent.
    data : it_kna1 type table of zobrent with header line.
    handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_MAPL TYPE OLE2_OBJECT,         " list of workbooks
          H_MAP TYPE OLE2_OBJECT,          " workbook
          H_ZL TYPE OLE2_OBJECT,           " cell
          H_F TYPE OLE2_OBJECT.            " font
    DATA  H TYPE I.
    DATA: cell1 TYPE ole2_object.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
      select * from zobrent into table it_kna1
               where zopanid = '10001'
                and zo_brent = '050'.
    start Excel
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
      PERFORM ERR_HDL.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'EDate'.
      PERFORM FILL_CELL USING 1 2 1 'Brent'.
      PERFORM FILL_CELL USING 1 3 1 'Zopanid'.
      PERFORM FILL_CELL USING 1 4 1 'Contract Type'.
      PERFORM FILL_CELL USING 1 5 1 'Price Type'.
      PERFORM FILL_CELL USING 1 6 1 'Installation Type'.
      PERFORM FILL_CELL USING 1 7 1 'Volume'.
      PERFORM FILL_CELL USING 1 8 1 'AQ'.
      PERFORM FILL_CELL USING 1 9 1 '00000123'.
      LOOP AT IT_KNA1.
    copy values to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_KNA1-zo_effdat.
        PERFORM FILL_CELL USING H 2 0 IT_KNA1-zo_brent.
        PERFORM FILL_CELL USING H 3 0 IT_KNA1-zopanid.
      ENDLOOP.
      CALL METHOD OF h_excel 'Cells' = cell1
        EXPORTING
          #1 = 1
          #2 = 1.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
      if sy-subrc eq 0.
       write : / 'year'(001).
      endif.
         FORM FILL_CELL
    sets cell at coordinates i,j to value val boldtype bold
    FORM FILL_CELL USING I J BOLD VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL.
    ***Changing the format of the cell from General to Text
      <b>SET PROPERTY OF H_ZL 'NumberFormat' = '@'.</b>
      PERFORM ERR_HDL.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
      WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
      STOP.
    ENDIF.
    ENDFORM.                    " ERR_HDL
    U just paste this code in a sample program & see.
    Please reward, if found helpful.

  • Export Report to Excel File & query design??? Urgent

    Hi all,
    1) It seems that I cannot use any BEx tools/function afer I export query report to excel file, such as refresh query report,...etc. If I am wrong, please let me know.
    2) I have about 18 free CHARs in my report as my clien request (all variables are optional), now I only can run the query in the specific period, otherwise the report will show error and cannot run it. Why? is there any way I can fix it?
    Thanks.
    J.

    Hi Prvaeen,
    That is what i see in my excel file after exported.
    Here is the error I got from web report:
    The URL http://sdcbwqa03.amcc.com:8100/sap/bw/BEx was not called due to an error.
    Note
    The following error text was processed in the system BWQ : Invalid dynamic line component.
    The error occurred on the application server sdcbwqa03_BWQ_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: COPY_SETXX_LINE of program CL_RSR_REQUEST================CP
    Form: GET_DATA_CELLS of program CL_RSR_REQUEST================CP
    Form: COMPUTE_NOP of program CL_RSR_LIST_CALCULATION=======CP
    Form: COMPUTE_ORDER of program CL_RSR_LIST_CALCULATION=======CP
    Form: COMPUTE of program CL_RSR_LIST_CALCULATION=======CP
    Form: REQUEST_DATA of program CL_RSR_REQUEST================CP
    Form: READ_DATA_INTERNAL of program CL_RSR_REQUEST================CP
    Form: READ_DATA of program CL_RSR_REQUEST================CP
    Form: READ_DATA of program CL_RSR_WWW_VIEW===============CP
    Form: RENDER of program CL_RSR_WWW_ITEM===============CP
    Thanks.
    J.

  • Excel 2007 query problems

    Has anyone else noticed problems with Excel 2007 when doing webqueries? We have someone who wrote a bunch of VBA in an excel document (excel 2003) that does 7 web queries, and then creates pivot tables on the results.
    Because of the row limitations in older excel version (1million+ rows in Excel 2007), we upgraded. However, now the Excel queries take forever. In TOAD, the queries run in 5 seconds, but take hours upon hours in Excel 2007. The PC where Excel runs is adequately powered (CPU, RAM, etc) to handle the load.
    I'm assuming some type of ODBC problem? Maybe an incompatibility with Oracle 9iR1 drivers?
    We're running 9.2.0.1 here for now.
    Any help would be appreciated!
    Thanks!
    -Mike

    turns out the Excel 2007 VBA engine is extremely slow. THe query returns very quickly, but Excel 2007 is taking much much longer to use the result set.

  • Excel insert query

    Hi. I connect to excel in this way:
      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
      String excelFileName = "logFile.xls";
      String excelDatabase= "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=C:/JDoc/Client/classes/logFile.xls;"+
       "DriverID=278;READONLY=false";
      Connection excelCon = DriverManager.getConnection(excelDatabase);
      Statement excelStat;
      excelStat=excelCon.createStatement();
    // Here is the problem:
      String sqlInsert="Insert into [Foglio1$] values('[Data]','[Orario]','[IP]','[Username]','[Operazione]')";
      excelStat.executeUpdate(sqlInsert); I have an error with this query (in which i try to insert the table headers):
    java.sql.SQLException: [Microsoft][Driver ODBC Excel] Number of values in the query does not correspond to the one in the destination fields
    Any help is appreciated.
    Thanks..

    The Excel ODBC driver should be deprecated, IMO. SQL simply does not offer a rich enough set of functionality to manipulate Excel files (though I give the authors kudos for having an early solution). Jakarta's POI API can read, manipulate and create Excel files via Java. Easy to use and far more features than the Excel ODBC driver.
    - Saish

  • Excel OLE acces in the Application Server

    Hi all,
    I have a requirement to Output a formatted(Bold fonts, Merged Cells etc.) Excel File.
    It is to be run as background process. So ideally, the file will be produced in the ApplicationServer and will already contain the formatting. If I am to use ole2 functions such as
    *--Opening the existing document
       call method of gs_wbooks 'Open' = gs_wbook
       exporting #1 = file_path.
    Is this possible? can file_path point to the file created in the ApplicationServer?
    Any answers, suggestions or workarounds would be greatly appreciated.
    Thanks in Advance

    Hi,
       OLE commands are linked to the program on the presentation server (in your case it's MS Excel). So, they can't run in background at all.
    As you want a formatted excel I can't think of any other way to do that except OLE (I may be wrong).
    Another method I can suggest is to send the output in HTML format in a E-Mail. In that case you have option of basic formatting.
    It is just a suggestion as I am not sure of your exact requirement.
    Regards
    Barada

  • Office 365 Excel Power Query Preview Problem Signing In -- Appears Corrupted, Please Repair

    The image below shows that Excel "thinks" I'm signed in with an organizational account that has Power BI Preview, yet Power Query from Excel doesn't think I'm signed in and says it's corrupted when I try to sign in.  I was trying to use the
    online search to find the odata feed that I have set up for Office 365 Power BI Preview.  So, alternatively, when I go to other data sources and specify the odata feed that is set up properly and available, Microsoft says "access forbidden". 
    Clearly, account credentials aren't being passed correctly.  I have read other posts on this forum and have verified that I have the latest Power Query Preview, that I only use lower case letters to sign in, that IE cache is clear.  I have repaired,
    uninstalled and re-installed Power Query Preview multiple times, with no change in this behavior. 
    Any ideas?
    Neil

    Zarar, yes, tried that, and much more. 
    Even though Power BI is supposed to navigate through firewalls, I believe we are having firewall problems. 
    I need to ask our network people to open up for Microsoft on this one, but there's no good information out there on the sites/IPs required to make Power BI Preview work. 
    In addition, the complexity that comes with using domain credentials, Microsoft Account (live) credentials, and Organizational credentials (O365) on the same computer at various times of the day complicates matters.
    That said, I can take my machine to my home network and get as far as attempting to connect to the odata feed I set up -- except the data source is on a computer with an internal IP and Power Query cannot resolve the local computer name -- i.e. x.x.local. 
    So now, I have two questions:
    1. What IPs need to be unblocked to make Power BI work?
    2. Is there a way to get the odata feed to work when the datasource is on an internal network (the datasource is working and tests okay from Power BI Admin -- but does not resolve the machine name when coming in through Excel via the odata feed from an off-site
    location
    Neil

  • Sent output from excel to query builder

    Hi all,
    I am usung BO XI 3.0. I have some query in query builder, how can I sent that to excel output, without doing VBA.

    The only thing without VBA is copying and pasting, as far as I am aware.
    What are you trying to accomplish?
    I have a macro that extract data from the CMS tables and loads them in Excel.
    We can customize it if you wish...

  • Two Excel Web Query (IQY) features I am missing when using Power Query

    1. header labels
    In Excel Web Queries, I could specify the heading label
    2. format expressions
    In Excel Web Queries, I could specify a format string.
    I'm not too concerned about #1, but #2 is a real issue. Perhaps is just a lack of feature understanding on my part, but I don't see in the Query Editor any way to change the format for a column.  I can change the format in the worksheet but that change
    is lost when I refresh the data. Can formatting be done via "M"?  If so, then a feature request would be to add formatting to UI.
    Reading the docs, I see Number.ToText()
    http://office.microsoft.com/en-us/excel-help/number-totext-HA104110114.aspx
    But I don't get how I can use this in a Table.TransformColumns

    Ah, I did not understand "format" as "number format". As you've noticed, there's no notion of number format in Power Query itself, so you can only format the number by transforming it into another value. Number.ToText has a variety of options for transforming
    a number into a string. The following will format the "Column" column to have four places after the decimal point.
    = Table.TransformColumns(Data,{{"Column", each Number.ToText(_, "f4")}})
    Be aware, though, that this will cause the cell value in Excel to have a type of Text instead of Number.

  • 2 questions in one - Related to Excel Microsoft Query

    Hi ALL ,
    i want to schedule a microsoft query script to run at 4:36 am Daily and save the workbook as Remedy in a defined path  .After an hour the Remedy Excel should automatically get deleted.
    Task flow
    Excel -- > ODBC --> Remedy DB ---> Data -- > SSIS --- > Load Excel Data to Sql Server ..
    Am not able to use SSIS for this as the Data loading is taking huge amount of time using ODBC whereas excel is very fast in retrieving the Data .
    Q How can i query the current date in ODBC .
    i have tried this:
    Where ("HPD:Help Desk"."Last Modified Date" = {fn current_date()}) but its not working ( Error Message lexical 3700 not found)
    Where ("HPD:Help Desk"."Reported Date">={ts '2014-01-01 00:00:00'}) ( am using this for now )
    Please help am a newbie in excel
    Thanks
    Priya

    In Microsoft query ,we should use date() to get the current date.
    Try: Where ("HPD:Help Desk"."Reported Date">=date())
    Also please check if the method listed in the following thread is helpful:
    http://www.mrexcel.com/forum/excel-questions/479250-odbc-query-current-date.html

Maybe you are looking for

  • Palm Pre no longer syncing with Google Calendar

    I've had my Pre for 4-5 weeks, and when I first got it, I configured the calendar to sync with my Google calendar.  Everything worked fine.  At some point, it stopped syncing.  If I add something to the calendar through Google, I don't see it on my P

  • How do you transfer music from a flashdrive to your itunes library

    I had some music saved on my old hp computer.  Now I have an imac and I want to transfer the music into my itunes library so I can put it on my iphone.  I dragged the flashdrive over to my itunes and it makes a green plus sign my when I drop it nothi

  • Problem with XSLT: xsl:copy

    xsl:copy let us copy a node from the source to the result of a XSLT transformation. My problem is that each element is copied without its attributes ! For example a template: <xsl:template match="myelement"> <xsl:copy> <xsl:apply-templates/> </xsl:co

  • Extreq Transfer with source of supply assigned

    Dear all, We are on SRM 7.0 PDP scenario. Purchase Requisitions with Contracts assigned are being transferred to SRM. We expect these purchase requisitions with an assigned source of supply not to be transferred to SRM. How can be solved? Thanks Ezeq

  • Error -50 and -39

    I was trying to download some episodes of Suits (Season 1 episodes 2 and 3 not sure if that matters) and it downloads about a minute of the show and then stops and gives me an error box saying "There was a problem downloading(Episode name). An unknow