Still no data in Excel InPlace

Hi.
No data is being displayed when I use the Excel view in an ALV from 'REUSE_ALV_GRID_DISPLAY', but this is not the usual problem.
I have the recommended settings in Excel in Tools > Macro > Security.
The View tab of Change Layout in the ALV lists the templates sap_om.xls and sap_mm.xls.
Trying Excel InPlace for different users and different PCs seems to show that the problem lies with the PC and not the user.
I have re-installed Excel and SAPgui on my PC, but the fault remains.
My SAPgui is 6.20 patch level 42.
My Excel is 2002 SP-2.
What could be the problem?
Thanks,
John

I have a possible answer to my own question.
I have re-installed my Kaspersky Anti-Virus for Windows Workstations software.
It is now version 5.0.712.  I don't know what it was before.
Now when I try to use Excel InPlace, I get a Kaspersky dialog box four times, warning about a potentially dangerous macro, and advising me not to execute it.  If I allow the execution of each macro, then Excel InPlace works.
So it seems possible that Excel InPlace was not working before because my anti-virus software was silently preventing the execution of the macros.
Can anyone confirm that this can happen?
Thanks,
John

Similar Messages

  • Manipulating data in Excel inplace via ALV grids

    Hi everybody,
    I want to create a report which displays data in an Excel file (Excel inplace).
    To solve the problem I have created a custom layout and uplodaded it via the report BCALV_BDS_MAINTENANCE to the BDS. The written report loads the data into an ALV grid, opens Excel inplace and displays the data in the custom layout. This works fine but for one exception: You can only upload an internal table to the ALV grid, consequently no additional information about the selected data itself (e.g. given by a custom selection screen) can be presented in the grid. What I need is a way which adds strings to the excel file not in an internal table.
    Is there a way to to this? Is this possible with ALV grids or do I have to use OLE?
    Thanks in advance.
    Greetings, Daniel

    Daniel,
    Its the TOP_OF_PAGE. See below.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
             EXPORTING
                  i_callback_program     = sy-repid       <<<
                  i_callback_top_of_page = 'TOP-OF-PAGE'  <<<
             TABLES
             EXCEPTIONS
                  program_error          = 1
                  OTHERS                 = 2.
    And then for the call back form.
    FORM top-of-page.                                          
    ALV Header declarations
      DATA: t_header      TYPE slis_t_listheader,
            wa_header     TYPE slis_listheader.
      wa_header-typ  = 'S'.
      wa_header-info = 'Text goes in here'.   <<<<<
      APPEND wa_header TO t_header.
      CLEAR wa_header.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = t_header.
    ENDFORM.
    This will add header to your ALV.
    Execute the program again and open the same in excel. you will now see the strings/text in the layout.
    Hope this helps.
    Ravi.
    Message was edited by: Ravi Gopan

  • ALV to Excel inplace and return issue High

    Folks;
    I have delveloped and ALv program that uses standard SAP access to EXCEL inplace but also contains the selection button process to allow individual line items to be selected to be used for another process within the report.
    I can click the Excel Icon and the ALV report downloads and displays properly in Excell inplace.  The isue starts, when I manipulate the data in Excel inplace (sort data, sum totals and then display only sums) then click on VIEWS -> SAP LIST Viewer.
    This causes one of three conditions to occur;
    Either their system will lockup, cancels out all SAP sessions and leave Excel running in the background without any indication that it is still running, or the system will cause a dump.
    I even tried with the SAP ddemo program BCALV_TEST_FULLSCREEN_LAYOUT and  the same thing occurs with SAP programs.
    Has anyone run accross this and found a solution?  SAP Notes does not appear to have anything on this.
    Thanks for any assistance.
    Mike

    Hi Michael:
    I can reproduce what you say.
    Maybe the problem is not from SAP, but from Excel. If you check the windows tasks (CTRL + ALT + DEL) and windows tasks, you will see that CPU is dedicated to Excel. If you finish the Excel process, then you get a blank screen in SAPGUI, and the transaction locked, but you can cancel transaction.
    Sorry for not giving a solution, but is just a clue.
    Regards
    Jordi

  • Excel inplace, fill excel templates

    Hey everybody!
    Do anyone have documentation or links to it how to fill in templates and mayby abap code examples about exporting data and making kind of headers and footers in Excel inplace from ALV?
    I have sap_om.xls and sap_mm.xls, but they are empty when I push 'export to excel' buttom. I couldn't find the way how to reference data from ALV or from abap report to Excel inplace. Maybe I have to fill any exact internal tables to export information (like 'xxx_data_table' or something).

    Hi,
    Hope you have Excel installed on the PC. THis excel view displays the data you have in the excel workbook instead of the display of tabular display in SAP. YOu can save these files and use them for any purpose.
    Also you can get more about this on SAP help with string "displaying data in excel inplace view".
    Details are available there.
    Regards
    Prasanna

  • Leaving excel Inplace, the excel session is still active

    I all,
    I use the Excel Inplace method to format data in PivotTables. I use a template based on sap_MM.xls with the procedure Public Sub ALV_CUS_Exit (). It is working correctly.
    My problem happens when I leave the transaction and return to the initial screen. The excel session is still active causing blockages in the Excel application itself
    I looked at the OSS note 122539: it describes functions which do not yet exist in the SAP delivery for certain events. I have tried those functions with the SAP declaration like :
    public sub customer_workbook_deactivate()
        Me.Application.Quit
    End Sub
    Either I use the wrong syntax or I do not set the code in the correct place of the VBA project, I have never activated these functions while leaving the screen excel inplace.
    Can you guide me to a solution ?
    In advance thank you very much.

    Thanks, but my first problem is that I do not pass through the procedure. Once I pass through it I'll try  "me.quit()".
    Regards.

  • Excel Inplace - Update SAP R/3 tables from Excel Data

    Hi,
    I developed a report displaying using Excel inplace.  After user finished editing the Excel workingsheet, I called method get_ranges_data of interface I_OI_SPREADSHEET to get data contents.  But this method or almost all the methods of this interface requires user hit a enter key after edit a cell.  Without hit a enter key or click different cell, this method will not be able to get any data contents. 
    Is there a way I can force a user click or enter event?
    An example is apprieciated.

    I have not tested this, but you might try the following.
    The inline excel should be created from a template. And in the excel VB code should exists which call a customer event in Workbook_SheetChange. This code is executed each time a change occurs on the worksheet.
    so in you r worksheet you should have the following code:
    Private Sub Workbook_SheetChange(ByVal Sh As Object, _
            ByVal Source As Range)
        ' runs when a sheet is changed
      Call ThisWorkbook.Container.SendCustomEvent("DATA_CHANGE")
    End Sub
    this event you can catch in SAP, and reread the data from excel.
    so now each change in excel triggers an event in SAP.
    Not sure it works, but worth a try.
    Joris.

  • No "file - send to" with excel inplace

    In excel (Version excel 97) I can send files via "file - send to - email" which starts my email client and attaches the xls file to the mail.
    When I use excel inplace in an abap program this option is not available. I still can see it, but it is grey and I cannot choose it
    Is it possible to activate this options? I use the methods of desktop office integration to get excel inplace and fill it with data (i_oi_container_control,  i_oi_document_proxy, i_oi_spreadsheet).
    regards
    Herbert

    USB Thumb drive?
    Patrick

  • AVL excel inplace

    Hello,
    I am can also display data in an Excel view. The data is transferred to Excel and displayed there in an Excel sheet within the window instead of the grid. The ALV Grid Control toolbar is still visible and you can use its functions in the Excel view in my computer. But when it is run in another different equipment not it generates. It open Excell with each Shets but the data do not displayed.
    Any guide to solve to this problem.
    thanks

    Info collected from search..
    To create the template you do:
    1) Run the report.
    2) When you see the result (the AVL GRID report), you go to change layout - the view tab - mark the excel radio button, choose template sap_om.xls by double click and press enter.
    3) Now you see the report as 'excel Inplace'
    4) In the excel menu you choose 'Save as' to save your file - and now you have a template ready to be modified.
    Try to modify template :
    1) The template has 15 sheets (Format, Header, Pivot etc. etc.) - don't delete any of these! (If you do the template won't work) (I would normally call these sheets 'tabs', but in excel they are sheets of an excel-book).
    2) Add your own sheet or sheets
    3) In your own sheet you make links to the data in the standard sheets Format or RawData.
    You now have and modified template. In your own sheet you can add any formatting or calculations you want. Finally to clean the template I would clear the contents of the standard sheets Format and RawData
    you can upload the template :
    Refer the Oss note 358644 and 548409
    You will have to build your own templates by creating modified copies of the SAP standard templates SAP_OM.XLS and SAP_MM.XLS. If you can find these see note 316728 to copy them from client 000.
    You will have to work with transaction OAOR to administrate the templates and program BC_BDS_UPLOAD to upload new templates.
    And finally run the report and choose the new layout instead of sap_om.xls.
    Basis guys might able to help you.
    regards
    Vivek
    award points for useful answers

  • Preview using Excel Inplace

    Hi,
    Could anyone tell me the reason why some Excel functions are not available when using Excel Inplace?
    For example, the print preview. You have the button in the tool bar but it does not work.
    Another questions is: How many other excel functions are not available and we still don't know?
    Thanks

    I have not tested this, but you might try the following.
    The inline excel should be created from a template. And in the excel VB code should exists which call a customer event in Workbook_SheetChange. This code is executed each time a change occurs on the worksheet.
    so in you r worksheet you should have the following code:
    Private Sub Workbook_SheetChange(ByVal Sh As Object, _
            ByVal Source As Range)
        ' runs when a sheet is changed
      Call ThisWorkbook.Container.SendCustomEvent("DATA_CHANGE")
    End Sub
    this event you can catch in SAP, and reread the data from excel.
    so now each change in excel triggers an event in SAP.
    Not sure it works, but worth a try.
    Joris.

  • Excel empty with 'excel inplace' option

    Hi everyone,
    in order to show my alv data in an excel format, with 'excel inplace' option, this sheet appears empty. However, if i choose to download the data into a excel file, it appears right.
    Do you know the reason of this?
    Thanks

    Implement OSS Note 782922 - Excel Inplace: Header Sheet contains garbage characters.
    This will require installation of SAP GUI Patch Level 8.
    Also , You can try be installing SAP GUI with all options checked.

  • Read data from excel sheet and then perform the required operations.

    Hi all
    I need to write a procedure which can read data from excel sheet.I have excel sheet in which i have to options one is modification and other is addition.so if it reads modification then i need to read the concerned table name then check its availability in pl-sql datbase.If table exists then reading the realated column in that row to fire the querry. The excel sheet is saved in local disk c.
    can anybody help me with this.How i need to start specialy to read the data from excel sheet saved in local disk c.
    Edited by: user13334062 on Jun 30, 2010 3:45 AM

    Hi
    If you can convert the excel to a csv format, then it can be simply query from DB Creating Oracle External Tables. Best part is that you may still change the CSV using EXCEL.
    Following action Points can be adopt;
    *1. Convert Excel File to a csv. File Save as CSV*
    *2. Create Oracle Directory* ( This has to be the location of your excel file )
    SQL> Create directory mydir as 'C:\testdb'; --- "testdb" is the location folder in win for your excel sheet.
    *3. Create the External Table*
    SQL> create table my_ext_tab (
    Field1 Datatype,
    Field2 Datatype,
    Field3 Datatype,
    Field4 Datatype,
    Field5 Datatype
    Organization external
    (type oracle_loader default directory mydir
    access parameters (records delimited by newline fields terminated by ',')
    location ('my_ext_tab.csv'))
    reject limit 100;
    *4. Now you can query the table "my_ext_tab"*
    Select * from "my_ext_tab";
    Please avoid the reformat the data column inside the spreadsheet (CSV).

  • [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messa

    Error
    [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There
    may be error message
    I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
    My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
    But the error still occurs .
    I checked on Google and  many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
    Mudassar

    Thats my connection string
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
    Excel 2010 installed and its 32 bit edition
    Are you referring to install this component -AccessDatabaseEngine_x64.exe?
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Mudassar
    You can try an OLEDB provider in that case
    see
    http://dataintegrity.wordpress.com/2009/10/16/xlsx/
    you might need to download and install ms access redistributable
    http://www.microsoft.com/en-in/download/details.aspx?id=13255
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Hi iam getting the alv grid data in excel format but iam facing one problem

    hi iam getting the alv grid data in excel format but iam facing one problem ,
    i.e., i want it read only  but iam getting it in edit mode i use layout default in excel iam getting in xl directly but in edit mode but i need it in read only mode
    what i have to do for that  and bdy knows reply me i need it urgently.

    there's always edit-mode if you choose excel-inplace - but noone can modify/rewrite the data
    A.

  • 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.

  • Fewer than expected group outlines after display Excel inplace ALV

    After upgrade 4.6 to ECC, I save alv grid layout with sorting and total function .  If you switch to the Excel inplace display in ALV, the system displays an "group outlines" option in only first page (nearly 14 groups) . But the next page cannot group the same data in  1 value and no yellow color in subtotal lines
    For example :
    Current :     
    Material number   |  transaction data |   origin   | actual cost   |
      10                     |  Good issue       |    A        |   10              |
      10                     |  Good issue       |    B        |   20              |
      10                     |   Good issue      |    C        |   30              |
    10                     |  Good issue       |              |   60              | *   >>> No yellow color
    Need :
    Material number   |  transaction data |   origin   | actual cost   |
      10                     |  Good issue       |    A        |   10              |
    B
    20
    C
    30
    10                     |  Good issue       |              |   60              | *   >>> Have yellow color
    Please give me the solution ...

    I apply many sap note but it can not solve this issue...
    1046560 WD ABAP ALV (SP13): Eliminate duplicate code
    1065242 WD ABAP ALV (SP13): Export to Excel, Problems during load
    1067707  WD ABAP ALV (SP13): Export Excel hyperlink w/o reference
    1075242 WD ABAP, ALV, export, Excel, counting table entries
    1083072 ABAP ALV Export: Missing icon display
    1084202 ABAP: ALV export: Icons missing in subtotals
    Please help to solve this problem ...

Maybe you are looking for