How to Export from table view to Excel (not BI query)?

There is a 'How to' document explaining how to export from an iView using a BI query:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123
However:
This 'How-To' document is using an example of a BEx query. I am not using a BEx query, therefore I do not have an "Info port". How can I download to Excel from a table view that is not an iView of a BI query? (It is just a internal table coming from a BAPI).

keenneth,
i am using the query from SQL server, i am having the same problem of not having info port. so did you find a work around for exporting to excel with filters for non sap queries ?
any body who had come across this situation , plz guide me.
thanks in advance
ravi

Similar Messages

  • How to export sql table data to Excel/PDf using Storedprocedure?

    Hi ,
            I have one table in sqlserver2008R2 that named "Customer" so that table hold the 1 Lac rows. Now I want send this table data to Excel/pdf with Columns using Storedprocedure.
       I have tried this using xp_cmdshell so This is not working for me.
    finally i want to get data in Excel and pdf also.
    Please guide me

    You can actually run an Excel Macro to grab the data from the SQL Server DB.  Below are some samples.
    Sub ADOExcelSQLServer()
    ' Carl SQL Server Connection
    ' FOR THIS CODE TO WORK
    ' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "Excel-PC\SQLEXPRESS" ' Enter your server name here
    Database_Name = "Northwind" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM dbo.Orders" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    ' Dump to spreadsheet
    With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
    .ClearContents
    .CopyFromRecordset rs
    End With
    ' Tidy up
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Sub ADOExcelSQLServer()
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "LAPTOP\SQL_EXPRESS" ' Enter your server name here
    Database_Name = "Northwind" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM Orders" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    With Worksheets("Sheet1").Range("A2:Z500")
    .ClearContents
    .CopyFromRecordset rs
    End With
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Sub TestMacro()
    ' Create a connection object.
    Dim cnPubs As ADODB.Connection
    Set cnPubs = New ADODB.Connection
    ' Provide the connection string.
    Dim strConn As String
    'Use the SQL Server OLE DB Provider.
    strConn = "PROVIDER=SQLOLEDB;"
    'Connect to the Pubs database on the local server.
    strConn = strConn & "DATA SOURCE=(local);INITIAL CATALOG=NORTHWIND.MDF;"
    'Use an integrated login.
    strConn = strConn & " INTEGRATED SECURITY=sspi;"
    'Now open the connection.
    cnPubs.Open strConn
    ' Create a recordset object.
    Dim rsPubs As ADODB.Recordset
    Set rsPubs = New ADODB.Recordset
    With rsPubs
    ' Assign the Connection object.
    .ActiveConnection = cnPubs
    ' Extract the required records.
    .Open "SELECT * FROM Categories"
    ' Copy the records into cell A1 on Sheet1.
    Sheet1.Range("A1").CopyFromRecordset rsPubs
    ' Tidy up
    .Close
    End With
    cnPubs.Close
    Set rsPubs = Nothing
    Set cnPubs = Nothing
    End Sub
    Finally, you can run a SProc in SQL Server, from Excel, if you want the SProc to do the export.
    Option Explicit
    Sub Working2()
    'USE [Northwind]
    'GO
    'DECLARE @return_value int
    'EXEC @return_value = [dbo].[TestNewProc]
    ' @ShipCountry = NULL
    'SELECT 'Return Value' = @return_value
    'GO
    Dim con As Connection
    Dim rst As Recordset
    Dim strConn As String
    Set con = New Connection
    strConn = "Provider=SQLOLEDB;"
    strConn = strConn & "Data Source=LAPTOP\SQL_EXPRESS;"
    strConn = strConn & "Initial Catalog=Northwind;"
    strConn = strConn & "Integrated Security=SSPI;"
    con.Open strConn
    'Put a country name in Cell E1
    Set rst = con.Execute("Exec dbo.TestNewProc '" & ActiveSheet.Range("E1").Text & "'")
    'The total count of records is returned to Cell A5
    ActiveSheet.Range("A5").CopyFromRecordset rst
    rst.Close
    con.Close
    End Sub
    Sub Working()
    'USE [Northwind]
    'GO
    'DECLARE @return_value int
    'EXEC @return_value = [dbo].[Ten Most Expensive Products]
    'SELECT 'Return Value' = @return_value
    'GO
    Dim con As Connection
    Dim rst As Recordset
    Set con = New Connection
    con.Open "Provider=SQLOLEDB;Data Source=LAPTOP\SQL_EXPRESS;Initial Catalog=Northwind;Integrated Security=SSPI;"
    Set rst = con.Execute("Exec dbo.[Ten Most Expensive Products]")
    'Results of SProc are returned to Cell A1
    ActiveSheet.Range("A1").CopyFromRecordset rst
    rst.Close
    con.Close
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How to export / import tables from UAT Environment to Devlopment  in oracle

    i wanted to share some points about export/import tables in oracle.
    we have two environments one is development and integrated user acceptance test (UAT).
    we have finalized table structures with data in UAT. i wanted to move from UAT to Development.
    i found some commends in google. I tried but I am not able to export and then its throwing some errors.
    i am explaining below what i want to do and what i want did.
    Please provide solution what i need to do.
    admin credentials in UAT
    username :venkat_admin
    password :venkat_admin
    UAT user/schema
    username : ods_inb_stg
    password : ods_inb_stg
    development environment credentials
    admin user name : dev_admin
    password : dev_admin
    Development user/schema
    username :ods_inb_dev
    password :ods_inb_dev
    Above mentioned schema names i want move data from UAT (ods_inb_stg) to development (ods_inb_dev)
    I logged in uat ods_inb_stg user and then
    I used this command
    Exp ods_inb_stg/ods_inb_stg file=party_pt_address.expdat tables=(party,party_address)
    log=party_pt_address.log;
    getting error
    Unknown command beginning "exp ods_inb_stg/..." - rest of line ignored.
    What should I do any one help.
    One more thing i have more than 100 tables how to export all tables and which is the easiest way and how to do it.
    Thanks in Advance
    Venkat

    Hi,
    based import and export we need to do.
    suppose we think we have created tables in production and data also populated. we need to export the tables with data. i am able to export the tables with data some tables or full database.
    suppose we have development environment. in development environment there is no tables. we can treat nothing in development. we have only username,password and hostname.
    when you import the tables production to development automatically create the table structures with data.
    where ever we wanted to import the tables no need to create table structures. thats why no need to think about table structures.

  • How to export all the views in one schema?

    Hi,
    I have more than 1000 views in one shcema.
    How to export all the views in one schema?
    Amy

    Hi,
    It's not a very easy question, I have develop a script wich create a script to create view from old database to new database :
    /* &1: Oracle SID Source
    /* &2: Oracle Schema Source
    SET HEAD OFF
    SET VERIFY OFF
    SET PAGESIZE 0
    SET LONG 40000000
    SET LONGCHUNKSIZE 2000
    SET LINESIZE 2000
    SET FEEDBACK OFF
    CREATE TABLE RECREATE_VIEW(VIEW_NAME VARCHAR2(30), TEXT LONG);
    /* Selection du texte de la vue */
    DECLARE
    w_text long;
    w_text_debut long;
    w_text_column long;
    w_view varchar2 (30);
    w_schema varchar2 (8):='&2';
    CURSOR w_cursor IS
    SELECT a.view_name, a.text
    FROM dba_views a
    WHERE a.owner = w_schema;
    CURSOR w_column IS
    SELECT DECODE (ROWNUM,
    1, 'CREATE OR REPLACE FORCE VIEW ' || '&' || '1..'
    || a.table_name || chr(10)
    || '('
    || a.column_name
    || DECODE (ROWNUM, nbcolumns, ')' || chr(10) || 'AS' || chr(10), ',' || chr(10))
    FROM (select column_name,table_name
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    order by column_id ) a,
    (SELECT COUNT (1) nbcolumns
    FROM dba_tab_columns
    WHERE owner = '&1'
    AND table_name = w_view
    GROUP BY owner, table_name) b
    order by rownum;
    BEGIN
    OPEN w_cursor;
    LOOP
    FETCH w_cursor INTO w_view, w_text;
    EXIT WHEN w_cursor%NOTFOUND;
    w_text_debut := NULL;
    w_text_column := NULL;
    OPEN w_column;
    LOOP
    FETCH w_column INTO w_text_column;
    EXIT WHEN w_column%NOTFOUND;
    w_text_debut := w_text_debut || w_text_column || ' ';
    w_text_column := NULL;
    END LOOP;
    CLOSE w_column;
    w_text := w_text_debut||w_text||';';
    insert into RECREATE_VIEW(VIEW_NAME, TEXT) VALUES (w_view, w_text);
    COMMIT;
    w_text := NULL;
    w_view := NULL;
    END LOOP;
    CLOSE w_cursor;
    END;
    SPOOL scripts_views_&1..sql
    PROMPT SPOOL scripts_views_&1..log
    PROMPT
    SELECT TEXT
    FROM RECREATE_VIEW;
    PROMPT
    PROMPT SPOOL OFF
    PROMPT
    SPOOL off
    PROMPT /* Formattage du fichier SQL */
    !sed 's/[ ]*$//' scripts_views_&1..sql > aprilia.tmp
    !rm scripts_views_&1..sql
    !mv aprilia.tmp scripts_views_&1..sql
    DROP TABLE RECREATE_VIEW;
    EXIT
    I hope that help you.
    Nicolas.

  • I need to restrict users to submit data from Smart view or Excel Addin.

    Hi All,
    I need to restrict users to submit data from Smart view or Excel Addin.
    I cant provision them as read access because I want them to write from the Hyperion Planning Web Form.
    Any help on the same will be highily appriciated.

    John,
    Thanks for the reply . if i dont give them essbase write role user cant submit data through smartview or Excel addin. at the same users want to see adhoc reports making connection in smartview through planning, then users can send data.
    1. I want users to restrict export dataform to smartview, if they can export dataform to smartview it automatically makes connection using planning and users can pretty much change data.
    2. is there any way to restrict users making connection through planning in smartview.
    3. when users make smartview connection through essbase, the secuirty works fine and they cant change the data.
    Please let me know if you any solution ....
    advance thanks,
    NM

  • How to export or delivery report for Excel for more than one sheet in OBIEE

    Hi Experts,
    How to export or delivery report for Excel for more than one sheet in OBIEE 11g? (Every time, I can only see one sheet.)
    Is it possibl to implement this requirement?
    Thanks.

    there are 2 oprions,
    One is have your tow report in a single compound layout of analysis and keep the report in dashboard and give report links.
    it will cath both your report.
    Suppose your analysis are different.
    Then you have the option of printing it to a PDF. on ritght top of Dashboard, Print - > Printable PDF.
    you ca export to PDF no to excel.
    mark if helps,
    fiaz

  • Sender JDBC.....pick data from table view?

    Hi Experts,
    working on JDBC for first time, so have few questions.
    data base guys want to create a table view and we need to pick the data from table view.
    my question is can we import the structure form data view?
    if i am not able to import, so i need to create the structure same as in data base table view and is it case sensitive?
    they dont want to update the data base table view, very time the SQL query will pick all the records form data base.
    the records will be less then 10,000.
    my question is as we are not updating the table view, what we need to write in update query as it is mandatory?
    Regards,
    Chinna

    Hello,
    i hope below option help in update query
    In place of the SQL statement, you can also enter <TEST>. Once the data determined from Query SQL Statement has been successfully sent, the data in the database remains unaltered.
    This is recommended if the data has not only been read, but also changed by a stored procedure entered under Query SQL Statement.

  • How to Export EUL tables ?

    Hi all,
    I have upgraded Discoverer admin/ desktop form 4.1.37 to 4.1.48. When i try to connect to Administrator it asks me to export EUL tables so that it will upgrade EUL. Iam unable to connect to Adminstrator/Desktop 4.1.48 as a Application user.
    How to export EUL tables?
    Thankyou

    Hi,
    Your DBA should export the EUL owner schema using the database command exp. This will export all the EUL tables and will enable you restore the tables if the upgrade fails.
    Rod West

  • How to export from lightroom to premeire pro?

    How to export from lightroom to premeire pro?

    You cannot export directly from Lr to another program.
    You have to export to your hard drive and then open them in Premiere.

  • How to export from Address Book to Microsoft Outlook

    I am using a mail merge program that requires cvs or test files of address cards in order to operated. I can't figure out how to export from Address Book in any other format than Vcard. Does anybody know how to either export in text or covert Vcard files to text or CVS?

    Try Address Book Exporter.

  • How to export oracle table?

    Does anybody knows how to export oracle table into sql format? I know by using PL/SQL Developer can do it,but I have a table,it contains a column,it's type is LONG,PL/SQL can't export it! How to export long type table into sql format?
    Any idea will be appreciated!

    My table structure is follows:
    create table MyDates
    COL1 LONG,
    COL2 VARCHAR2(20)
    In column col1,I store some date in it,then I want to export this table,but I don't want to export this table into dmp file,I only want to export this table' structure and export it into SQL File,such export filename is mydata.sql
    I don't know how to export this table's structure? Because it contains LONG type column.How to export it? By the way,would you tell me how to export other type table,such as it contains column type is blob?

  • How to export the dashboard reports for Excel in OBIEE 11.1.1.6.0?

    Hi Experts,
    How to export the dashboard reports for Excel in OBIEE 11.1.1.6.0?
    For example:
    Dashboard contains more than one report, and add one export button for downloading these reports for Excel.
    Is it possible to implement this requirement?Thanks.

    There is no direct option, you can try the following workaround.
    Page Option -> Print -> Printable Html
    Then File -> Save Page as
    Choos Save as type as -> All files
    File name as Report.xls
    When you Open the xls file, if you get a pop up saying problem during load just omit it and proceed.
    The report will open in excel.
    Or save the page as html /mht and open it with Excel, this also will work.
    Note: I have tested this in Mozilla
    Thanks,
    Vino

  • JPGs exported from Lightroom 5.6 will not open in other applications

    Recently I have noticed that jpgs exported from Lightroom 5.6 can not be opened in Canon DPP 3.14 and can not be resized using Image Resizer plugin. Both of these I use frequently.
    I have seen mention of this issue re other applications also. Does anyone know if there is a solution?
    I am using Windows 8.1 64bit. 5D Mark ii

    This was an issue with 5.5 (the placement of some of the internal headers of the jpgs was changed and some other applications, including DPP, could not open them), but was corrected in 5.6. I just checked on it by exporting a jpg and opening it with no problem in DPP 3.14.15, Windows 7 x64. Are your jpgs old ones from LR 5.5?

  • How To Update A Table View From Client Side !!!!

    Hi I would like to update a table view from the Client Side. So that the user can keep updating the relevent data on the client and when they have finally finished they can press Save so the entire page is then sent to the Server.
    Does anyone know how to do this, I guess u have to use the EPCM, I have just started on it and would really appreciate some Help.
    Thanks,
    Emmanuel.

    This is what I found :-
    There are a couple of ways to approach this.
    1) load the excel spreadsheet into the database "as is". You can use interMedia
    text to convert the .xls file into a .htm file (HTML) or use iFS (see
    http://technet.oracle.com/
    for
    more info on that) to parse it as well. InterMedia text will convert your XLS
    spreadsheet into a big HTML table (easy to parse out what you need at that
    point)
    2) Using OLE automation, a program you write can interact with Excel, request
    data from a spreadsheet, and insert it. Oracle Forms is capable of doing this
    for example as is other languages environments. In this fashion, you can remove
    the "manual" and "sqlldr" parts -- your program can automatically insert the
    data.
    3) You can write a VB script that uses ODBC or Oracle Objects for OLE (OO4O) in
    Excel. This VB script would be able to put selected data from the spreadsheet
    into the database. We would recommend OO4O. It provides an In-Process COM
    Automation Server that provides a set of COM Automation interfaces/objects for
    connecting to Oracle database servers, executing queries and managing the
    results. OO4O is available from
    http://technet.oracle.com

  • [CS3]How to export a table in InDesign to an excel file?

    Hi,
    Can any one tell me how to script the process of exporting a table to excel file in InDesign CS3 using javascript?
    Thanks in advance.
    myRiaz

    Sorry, no javaScript, but here are some lines from a localization tool that I made in VB. I simply loop through the Rows and Columns and use the Excel DOM to fill the Excel-cells.
    Of course you can read amended/localized Excel files back into inDesign the same way, provided that the tables match (nr of rows and columns).
    Afterwards you could loop through the characters of each cell to apply the formatting that you want to keep in Excel, such as SuperScripts.
    Hope it helps you.
    Set myExcel = CreateObject("Excel.Application")
    myExcel.Visible = True
    Set myTableBook = myExcel.Workbooks.Add
    Set myTableSheet = myTableBook.Worksheets.Item(1)
    myTableSheet.Columns.ColumnWidth = 35
    myTableSheet.Cells.VerticalAlignment = xlVAlignTop
    myTableSheet.Cells.WrapText = True
    For R = 1 To myTable.Rows.Count
        Set myTableRow = myTable.Rows.Item(R)
        For C = 1 To myTableRow.Cells.Count
            Set myTableCell = myTableRow.Cells.Item(C)
            If Len(myTableCell.Contents) = 0 Then
                myTableSheet.Cells(R, C) = ""
            Else
                myTableSheet.Cells(R, C) = myTableCell.Contents
                myTableSheet.Cells(R, C).Value = Replace(myTableSheet.Cells(R, C).Value, "1397058884", "—")
                myTableSheet.Cells(R, C).Value = Replace(myTableSheet.Cells(R, C).Value, Chr(13), Chr(10))
            End If
        Next C
    Next R
    good luck
    TonyT 

Maybe you are looking for

  • Problem in  set and get values in h:selectBooleanCheckbox with h:datatabel

    hello friends, Please help me any one...i need urgent......................... My jsf page: <h:panelGroup>                               <h:panelGrid columns="6">                               <h:dataTable border="2" value="#{planGroup.screenFlowValu

  • DNS (internal domain has same name as external website)

    Our internal domain name is called "abc.com"  and our company website is called "abc.com".  I have created an "A" record that points to www.abc.com so staff can browse the website from within the office.  The problem is that if people enter "abc.com"

  • Tracking history of update from forms

    hello I want to keep track of changes to my table namely A .I have a history table namely B, its copy of table A. Whenever the user makes any changes to any of the record of table A that record along with the changes made should be copied into the hi

  • Breakdown details based on the cause, damage on equipemnts

    Dear all We have one requirements with users. Presently we have the Breakdown analysis report, there we can see the equipment, date, object, damage, activities, downtime hours in text. For this presently the Input is equipment or planner group, work

  • I can't install from aps store since upgraded to ios6

    I can't install from aps store since upgraded to ios6 soft ware