Why authorization needed when accesing an export in excel from Bex

Hi Experts,
Before upgrade to version 7.0 when our user export a report to excel is
neccessary enter user and password, the issue is that not everybody
have a user therefore so they cannot see the excel.
This problem is due to the icons are in the server and in the excel
there are links to these icons of the server.(for example the icon of the hierarchy node)
If you configurate the excel to not load the icons the issue disappears
In Microsoft Excel
Select tools->Options->General->Web Options->General tab
and unmark the flag "Load pictures from Web pages"
But this solution is not always available for all users due to different excel plug-ins installed in their local computers.
Our questions are:
1.- How can we avoid these icons in the future?
2.- Why these problems occurs since the upgrade to SAP BW 7.0?
3.- Is there any option to insert the icons instead of having links?
Thanks in advance

Hi Reddy,
it has been some time ago you have posted this issue so I'm not sure if you still need a solution for this issue.
Anyway, I assume you have found the manual regarding the export to excel, csv and pdf for Visual Composer (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123)
We also had issues with the export funcationality described in the document. I don't recall the exact error message.
Just some advice:
Copy the code from the document into Notepad. Then, make sure you re-arrange the code into 1 single line (remove all enters). Then, copy the code into the formula editor of the hyperlink action. Don't forget to define a store (e.g. reptname) but that is explained in the document as well.
Regards,
Sven

Similar Messages

  • Exporting to Excel from Aria People Search

    Is it possible to export to Excel from Aria People Search.
    I would like to output the Org Chart (built in) and the Tree (I created) to an Excel file.
    Does anyone know how to do this?
    Thanks,
    Tom

    Hi,
    If you are using 10g, then OLE2 is supported. However, it will be executed in the App Server Machine.
    If you want to do the operation in the Client machine (as how it was done in the Client / Server), you need to use Client_OLE (Which is part of WebUtil).
    Look at
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    for more details on WebUtil.
    HTH.
    Regards,
    Arun

  • Any method to Import & Export to Excel from Client Side

    Hi,
    Is there any method to Import and Export to Excel from the Client side. I have one procedure to export to Excel , but the excel file will be opened in the Application Server only, even if it executed from the client side. Also this procedure will not work if OLE2 chnaged CLIENT_OLE2. I am writing my procedure, Is there any idea to get it in the client side.
    PROCEDURE pr_Forms_to_Excel(p_block_name IN VARCHAR2 DEFAULT NAME_IN('system.current_block')) IS
    -- Declare the OLE objects
    application OLE2.OBJ_TYPE;
    workbooks OLE2.OBJ_TYPE;
    workbook OLE2.OBJ_TYPE;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    cell OLE2.OBJ_TYPE;
    range OLE2.OBJ_TYPE;
    range_col OLE2.OBJ_TYPE;
    -- Declare handles to OLE argument lists
    args OLE2.LIST_TYPE;
    -- Declare form and block items
    form_name VARCHAR2(100);
    f_block VARCHAR2(100);
    l_block VARCHAR2(100);
    f_item VARCHAR2(100);
    l_item VARCHAR2(100);
    cur_block VARCHAR2(100) := NAME_IN('system.current_block');
    cur_item VARCHAR2(100) := NAME_IN('system.current_item');
    cur_record VARCHAR2(100) := NAME_IN('system.cursor_record');
    item_name VARCHAR2(100);
    baslik VARCHAR2(100);
    row_n NUMBER;
    col_n NUMBER;
    filename VARCHAR2(100);
    ExcelFontId OLE2.list_type;
    BEGIN
    -- Start Excel
    application:=OLE2.CREATE_OBJ('Excel.Application');
    OLE2.SET_PROPERTY(application, 'Visible', 'True');
    -- Return object handle to the Workbooks collection
    workbooks:=OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    -- Add a new Workbook object to the Workbooks collection
    workbook:=OLE2.GET_OBJ_PROPERTY(workbooks,'Add');
    -- Return object handle to the Worksheets collection for the Workbook
    worksheets:=OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    -- Get the first Worksheet in the Worksheets collection
    -- worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1);
    worksheet:=OLE2.GET_OBJ_PROPERTY(worksheets,'Item',args);
    OLE2.DESTROY_ARGLIST(args);
    -- Return object handle to cell A1 on the new Worksheet
    go_block(p_block_name);
    baslik := get_block_property(p_block_name,FIRST_ITEM);
    f_item := p_block_name||'.'||get_block_property(p_block_name,FIRST_ITEM);
    l_item := p_block_name||'.'||get_block_property(p_block_name,LAST_ITEM);
    first_record;
    LOOP
    item_name := f_item;
    row_n := NAME_IN('SYSTEM.CURSOR_RECORD');
    col_n := 1;
    LOOP
    IF get_item_property(item_name,ITEM_TYPE)<>'BUTTON' AND
    get_item_property(item_name,VISIBLE)='TRUE'
    THEN
    -- Set first row with the item names
    IF row_n=1 THEN
    ------updated by faisal-to give Bold font-----
    --FOR k IN 1 .. 3 LOOP
         args := OLE2.create_arglist;
         OLE2.add_arg(args, 1);
         OLE2.add_arg(args, col_n);
         cell := OLE2.get_obj_property(worksheet, 'Cells', args);
         OLE2.destroy_arglist(args);
         --cell_value := OLE2.get_char_property(cell, 'Value');
         ExcelFontId := OLE2.get_obj_property(Cell, 'Font');
         OLE2.set_property(ExcelFontId, 'Bold', 'True');
    --END LOOP;
    baslik:=NVL(get_item_property(item_name,PROMPT_TEXT),baslik);
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, row_n);
    OLE2.ADD_ARG(args, col_n);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(cell, 'Value', baslik);
    OLE2.RELEASE_OBJ(cell);
    END IF;
    -- Set other rows with the item values
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, row_n+1);
    OLE2.ADD_ARG(args, col_n);
    cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    OLE2.DESTROY_ARGLIST(args);
    IF get_item_property(item_name,DATATYPE)<>'NUMBER' THEN
    OLE2.SET_PROPERTY(cell, 'NumberFormat', '@');
    END IF;
    OLE2.SET_PROPERTY(cell, 'Value', name_in(item_name));
    OLE2.RELEASE_OBJ(cell);
    END IF;
    IF item_name = l_item THEN
    exit;
    END IF;
    baslik := get_item_property(item_name,NEXTITEM);
    item_name := p_block_name||'.'||get_item_property(item_name,NEXTITEM);
    col_n := col_n + 1;
    END LOOP;
    EXIT WHEN NAME_IN('system.last_record') = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    -- Autofit columns
    range := OLE2.GET_OBJ_PROPERTY( worksheet,'UsedRange');
    range_col := OLE2.GET_OBJ_PROPERTY( range,'Columns');
    OLE2.INVOKE( range_col,'AutoFit' );
    OLE2.RELEASE_OBJ( range );
    OLE2.RELEASE_OBJ( range_col );
    -- Get filename and path
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG( args, p_block_name );
    OLE2.ADD_ARG( args,'Excel Workbooks (*.xls, *.xls');
    filename := OLE2.INVOKE_CHAR( application,'GetSaveAsFilename',args );
    OLE2.DESTROY_ARGLIST( args );
    -- Save as worksheet
    IF NVL(filename,'0')<>'0' THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG( args,filename );
    OLE2.INVOKE( worksheet,'SaveAs',args );
    OLE2.DESTROY_ARGLIST( args );
    END IF;
    -- Close workbook
    --OLE2.INVOKE( workbook ,'Close');
    -- Release the OLE objects
    OLE2.RELEASE_OBJ(worksheet);
    OLE2.RELEASE_OBJ(worksheets);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    --OLE2.INVOKE(application, 'Quit');
    OLE2.RELEASE_OBJ(application);
    -- Focus to the original location
    go_block(cur_block);
    go_record(cur_record);
    go_item(cur_block||'.'||cur_item);
    END;
    Thanks in advance.
    Rizly Faisal

    Alternatively you could use OLE2 to do the bulk of the importing and exporting and then use the webutil file transfer functions to move the file to the client and then simply open the file there...That might be more efficient in terms of performance as well.
    Regards
    Grant

  • Exception when remotely executing Export-CsArchivingData cmdlet from C# managed code

    Hi,
    Hopefully this is the right forum.
    The issue is specifically about remotely executing Export-CsArchivingData cmdlet from C# managed code.
    I use RunspacePool to connect to remote Lync server as described here:
    http://msdn.microsoft.com/en-us/library/ee706598(v=vs.85).aspx
    I can connect to remote Lync server and execute many Lync cmdlets (e.g. Get-CsUser, Get-CsSite, Get-CsPool, etc) and get the results just fine.
    However, when it tries to execute Export-CsArchivingData cmdlet remotely, it throws the following exception:
    System.AggregateException: One or more errors occurred. ---> System.Management.Automation.RemoteException: The term 'Export-CsArchivingData' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
    name, or if a path was included, verify that the path is correct and try again.
       at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
       at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
    Additional info:
    1. I created a custom RBAC role and added Export-CsArchivingData to it. Then, assign this new role to the account that runs the application.
    2. Using regular powershell (not Lync powershell) from the machine (that I run my app from) with Lync admin tool installed and ran with the account that has the custom RBAC role assigned, I can connect to remote Lync server and execute Export-CsArchivingData
    just fine.
    3. Execute the app using the same above account (that has custom RBAC role) on two machines (one with Lync admin tool installed, one without) and connect to remote Lync server.
       Same behavior on both machine, I got the above the exception when executing Export-CsArchivingData and no problem when executing other Lync cmdlets mentioned above.
       Yes, even from a machine without Lync admin tool installed, I can execute other Lync cmdlets mentioned above.
    At this point, I am not sure why I get the above exception when Export-CsArchivingData is executed from my app while I can connect to remote Lync server and call Export-CsArchivingData just fine via regular Powershell, both on the same machine.
    Note: I do not call Import-Module Lync in C# managed code since it is not necessary so far for executing other Lync cmdlets remotely.
    Any idea on what to look for?
    Thanks in advance.

    I would recommend you call Import-Module Lync first, the command is not recognized.
    Lisa Zheng
    TechNet Community Support

  • Why PDF hang when attempting to open or saved from bank site?

    HI,
    I have a user who tried to export word file from a bank into PDF, she encountered page hang as her screen try to open/saved excel. It only happens to this particular pc.
    When she attempt to save from ERP, it hangs.
    Also to note is that this hanging of PDF is not always, it only hangs when it is my user's first time trying to save/open any document document.
    I have tried to uninstall the pdf software, and reinstalled.
    I have confirmed that the windows and PDF version is the latest as of this posting,
    Please advise. Thank you.
    Regards Joshua Tay

    Hi vanncraw
    What Product are you using ?
    What is the Exact Error Message ?
    is it happening with all PDF Files ?

  • Needs a change in export to excel format

    Hi,
    i would like to know how to change the format (want columNs to be vertical and headings to be bold) of export to excel feauture
    Regards,
    CJK

    I think in that case you would need to change almost everything.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Problem with numeric columns when ADF table exported to Excel

    Hi,
    We have a ADF table on a page which can be exported to excel spreadsheet using the <Af:ExportCollectionActionListener>. The adf table is within panel collection.
    There are many numeric columns in this table and there is <af:convertnumber> used on these columns. No other properties are changed on the <af:convertnumber> tag, everything is default. And no formatting is applied on the view object attributes as well. When a user from US is exporting the table to excel everything works well no issues. But a Netherlands or French user exports the excel, the numeric values which have decimal point are shown as left aligned and the whole numbers in the same column are right aligned. As a result when the user is trying to sum the entire column only the right aligned numbers are getting added.
    I am not sure what is the issue here ?
    HAs someone seen this scenario before ?
    Am I missing anything here - any property setting ?
    The numbers are shown like this in the excel exported from table.
    4,077.78
    3,555,34.12
                        1,234
                        19,219
    3,4445,33.22
    Jdev - 11.1.2.3
    Thanks

    Add a decimal to the whole number columns to make all columns left-aligned. Do all left-aligned columns get added?
    4,077.78
    3,555,34.12
    1,234.00
    19,219.00
    3,4445,33.22

  • When trying to export to Excel the tool hangs for 10-15 min. (1.5.1.54.40)

    When trying to export a result set after a query the tool hangs for 10-15 minutes. This is regardless of the export fileformat; xls, html etc. It seems like the problem is related to the complexity of the query: Low-cost query=export OK, High-cost query=Export Not OK (even though the number of returned records is low)
    Exporting to any fileformat from a tables data-tab is OK, the problem occurs only in combination with a query that has been ran in a Worksheet.
    Will be greatful for any hint!
    SQL Developer: 1.5.1.54.40
    Java: 1.5.0_06
    Client OS: XP Prof 5.1.2600 SP 3
    Database: 9.2.0.5.0

    Hi,
    If you are using SQL Dev 1.5.1, you can include the column header by using
    CTRL + Shift + C (instead of CTRL + C), and paste it to Excel.
    I got this info from other forum, sorry I couldn't find which one.
    Don't use the Edit - Copy Path menu, even it uses the same shortcut.
    Regards,
    Buntoro

  • Error detected by Export DLL, when trying to export to excel

    Hi All
    We are having an issue that has occured recently where some of our user's are unable to export to excel. They were working ok.
    The crystal viewer was originally designed using Framework 1.1 (vs.net 2003) and we have applied the hotfix to the user's pc called:
    crnet11win_en.exe
    Which fixed the issue originally, by upgrading the ExportModeller.dll to 9.1.1.528.
    However in this case, even after running the patch, the user's pc is still unable to export to "excel", works ok for PDF and WORD, just not excel.
    Tested the report on 2 other pc's and the report is able to export to excel.
    Just not on that user's pc, is anyone able to give advice of what could be stopping the user from running the report.
    The user is on Windows XP SP3, but we been informed that other user's with XP SP3 are able to export to excel with no problem.
    Thanks in advance for any help or advice that you can give.
    Regards
    Chris
    Edited by: CMThompson on Feb 22, 2010 11:52 AM

    Thanks Ludek
    We found the issue after doing control tests, here.
    We found that our crystal viewer, developed in .NET 2003, does not work with XP SP3, even with the fix crnet11win_en.exe.
    Our control test, was:
    Ran report with XP SP2, exported ok
    Upgraded pc to XP SP3, then ran report again, Report failed to export, with error message as described.
    Had a crystal viewer set for  using .NET 2005 files, but not yet ready for deployment to users, tested and was able to export to excel using .NET 2005 with XP SP3.
    The issue seems to relate to exportmodeller.dll, which was the issue in the past when XP was upgraded and stopped the export function from working before.

  • Export To Excel from a VC Iview

    Hi all,
    I tried to  Export the data to an Excel  from a Table in a VC iView....I have created a Button on the Toolbar of table and added relavent code to do the exporting...But when i click on the button on iam getting the following error...
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iviews/com.sap.ip.bi.bex.
    Exception id: 04:23_14/04/08_0006_171933750
    See the details for the exception ID in the log file
    Do i have to change the Permissions for the above iview?
    Any answers would be rewarded...
    Thanks & Regards,
    P.Navakanth

    Hi Reddy,
    it has been some time ago you have posted this issue so I'm not sure if you still need a solution for this issue.
    Anyway, I assume you have found the manual regarding the export to excel, csv and pdf for Visual Composer (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123)
    We also had issues with the export funcationality described in the document. I don't recall the exact error message.
    Just some advice:
    Copy the code from the document into Notepad. Then, make sure you re-arrange the code into 1 single line (remove all enters). Then, copy the code into the formula editor of the hyperlink action. Don't forget to define a store (e.g. reptname) but that is explained in the document as well.
    Regards,
    Sven

  • Unable to export to excel from ALV

    Hi,
    i was trying to display information in an ALV report and it shows up properly. however, when i click on the excel icon it is not populating the data in the spread sheet though the excel window shows up in place of the report.
    any suggestions will be rewarded. i attached the code below
    Regards,
    ravi.
                F O R M    F I L L _ A L V _ D A T A                    
    FORM fill_alv_data.
      DATA: ls_fieldcat TYPE slis_fieldcat_alv,
            ls_sort TYPE slis_sortinfo_alv.
      CLEAR ls_fieldcat.
    field catalog information
    Purchase order number
      ls_fieldcat-fieldname = 'EBELN'.
      ls_fieldcat-datatype  = 'C'.
      ls_fieldcat-seltext_m  = 'P.O NUMBER'.
      ls_fieldcat-key = 'X'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    P.O line item
      ls_fieldcat-fieldname = 'EBELP'.
      ls_fieldcat-datatype  = 'NUMC'.
      ls_fieldcat-seltext_m  = 'P.O Line item'.
      ls_fieldcat-key = 'X'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Doc. condition number
      ls_fieldcat-fieldname    = 'KNUMV'.
      ls_fieldcat-datatype  = 'C'.
      ls_fieldcat-seltext_m  = 'doc. conditon no'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    P.O date
      ls_fieldcat-fieldname    = 'BEDAT'.
      ls_fieldcat-datatype  = 'DATS'.
       ls_fieldcat-seltext_m  = 'P.O date'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    purchasing org
      ls_fieldcat-fieldname    = 'EKORG'.
      ls_fieldcat-datatype  = 'C'.
       ls_fieldcat-seltext_m  = 'Purchasing org.'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    purchasing group
      ls_fieldcat-fieldname    = 'EKGRP'.
      ls_fieldcat-datatype  = 'C'.
      ls_fieldcat-seltext_m  = 'Purchasing group'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    vendor number
      ls_fieldcat-fieldname    = 'LIFNR'.
      ls_fieldcat-datatype  = 'C'.
      ls_fieldcat-seltext_m  = 'Vendor number'.
    ls_sort-subtot    = 'X'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    company code
      ls_fieldcat-fieldname    = 'BUKRS'.
      ls_fieldcat-datatype  = 'C'.
      ls_fieldcat-seltext_m  = 'Company code'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    short text
      ls_fieldcat-fieldname    = 'TXZ01'.
      ls_fieldcat-datatype  = 'C'.
      ls_fieldcat-seltext_m  = 'Text'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Material group
      ls_fieldcat-fieldname    = 'MATKL'.
      ls_fieldcat-datatype  = 'C'.
      ls_fieldcat-seltext_m  = 'Material group'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    order quantity
      ls_fieldcat-fieldname    = 'MENGE'.
      ls_fieldcat-datatype  = 'QUAN'.
      ls_fieldcat-seltext_m  = 'order quantity'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    order unit
      ls_fieldcat-fieldname    = 'MEINS'.
      ls_fieldcat-datatype  = 'UNIT'.
      ls_fieldcat-seltext_m  = 'order unit'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Gross amount
      ls_fieldcat-fieldname     = 'BRTWR'.
      ls_fieldcat-datatype      = 'CURR'.
      ls_fieldcat-outputlen = '15'.
      ls_fieldcat-seltext_m  = 'Gross amount'.
      ls_fieldcat-do_sum = 'X'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Discount Condition
      ls_fieldcat-fieldname     = 'KSCHL'.
      ls_fieldcat-datatype      = 'C'.
      ls_fieldcat-do_sum = 'X'.
      ls_fieldcat-seltext_m  = 'Discount Cond.'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Discount amount
      ls_fieldcat-fieldname     = 'DISV'.
      ls_fieldcat-datatype      = 'CURR'.
      ls_fieldcat-outputlen = '15'.
      ls_fieldcat-do_sum = 'X'.
      ls_fieldcat-seltext_m  = 'Discount amount'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Net amount
      ls_fieldcat-fieldname     = 'NETWR'.
      ls_fieldcat-datatype      = 'CURR'.
      ls_fieldcat-outputlen = '15'.
      ls_fieldcat-seltext_m  = 'Net amount'.
      ls_fieldcat-do_sum = 'X'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Tax code
      ls_fieldcat-fieldname     = 'MWSKZ'.
      ls_fieldcat-datatype      = 'C'.
      ls_fieldcat-seltext_m  = 'Tax code'.
      ls_fieldcat-do_sum = 'X'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Tax amount
      ls_fieldcat-fieldname     = 'NAVNW'.
      ls_fieldcat-datatype      = 'CURR'.
      ls_fieldcat-outputlen = '15'.
      ls_fieldcat-seltext_m  = 'Tax amount'.
      ls_fieldcat-do_sum = 'X'.
      APPEND ls_fieldcat TO gt_fieldcat.
      CLEAR ls_fieldcat.
    Striped pattern
      gs_layout-zebra = 'X'.
    sort by p.o number
      ls_sort-fieldname = 'LIFNR'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
      ls_sort-subtot    = 'X'.
      APPEND ls_sort TO gt_sort.
    ENDFORM.                    "fill_alv_data
                F O R M   A L V _ D I S P L A Y                         
    FORM alv_display.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = 'zreport'
          is_layout          = gs_layout
          it_fieldcat        = gt_fieldcat[]
          it_sort            = gt_sort
          it_events          = gt_events[]
        TABLES
          t_outtab           = T_PO.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "alv_display

    Hi Ravi,
    Normally we dont have to write any code for getting data in ALV's Excel inplace View. It is taken by SAP itself.
    Any way waht we can try is just comment
       <b>it_events = gt_events[]</b>
    and test whether the data is getting populated in excel..

  • How to remove values formatting in export to excel from ALV grid

    Hi all,
    I have small issue, I have ALV Grid with some data, but the problem is with columns containing e.g. gross amounts, because it is displayed in the grid as e.g. 1.764,81, and after export to excel it is still in this format (with dot and comma), so excel doesn't treat it as numeric value but as text, and then when I try to calculate total on the column then this values are not taken to the total. Do you know if that is possible to remove column formatting?
    kind regards,
    Marcin

    I replied too soon to Peter's suggestions.  For some reason, I was able to add new info. to my first new row, but not the second.  However, I finally figured out the problem.
    I found the Help Center page on: "Here are ways to change custom formats and apply changes to table cells:"
    To change the elements associated with a custom format that’s been applied to cells, select the cells and click Show Format in the Format pane of the Table inspector.
    I saw that the "cell format" was listed as "automatic," so I changed it to "Custom;" then left the new custom window at it's default settings. Now my cells would accept pasted info. without spreading it through the lower rows.  Whatever automatic was in the table, it was not what I wanted. Doing this to other new cells, solved my problem.  Thanks again.

  • Export to Excel from Report region (pl/sql returning sql query)

    Hello all,
    I have encountered an interesting problem. I have an HTMLDB application with a lot of sql reports coded straight inside the report region. In order to better organize my reports, I decided to
    1. make all my report regions of type "Pl/Sql function returning SQL query"
    2. create a package inside my database schema which houses all reports as pl/sql functions returning VARCHAR2, the string returned being the report query
    3. just calling "return package_name.function_name" from inside my report region of type "Pl/sql function returning SQL query".
    This technique seemed to work perfectly. The reports were being returned as expected. I was then asked to provide the "Export to Excel" capability to all my reports. This seemed like a piece of cake using HTML DB's "Export to Excel" extension. However, the "export to excel" does not function correctly when my reports are inside a package in the database. HTML DB tries to export but inside the excel spreadsheet, instead of seeing row data, I see:
    <pre>failed to parse SQL query:
    ORA-00936: missing expression
    <!-- select a.username, b.table_name, 'View Row Data' from schema_browser_user_list a, all_tables b where a.user_id = and a.username = b.owner order by b.table_name asc
    --!>
    </pre>
    I am building my query string inside of my package functions by using a combination of literal strings and concatenating them with some parameter values being passed in. It seems that the HTML DB engine which exports the report to excel does not properly understand the concatenation of variables as can be seen by the empty space to the right of the equal sign in the "a.user_id = " clause. Does anybody have any input as to whether this is a known issue or if I am doing something wrong? Thanks a lot for your time.
    - Kenny R.

    James,
    Thanks for the quick reply. I think you mis-understood what I'm doing. All I'm doing is creating packaged functions which return VARCHAR2. The VARCHAR2 that they return is the report query. With this technique, I no longer have to type the query into the HTML DB report region. Instead, I make the report region a "Pl/sql function returning sql query" and make the following call: return package_name.function_name(some_application_items passed in as parameters)
    This makes for a much more organized html db app. The problem is that the "export to excel" function does not correctly interpret the VARCHAR2 that my packaged functions are returning. Is this a better explanation? Thanks again for your time.
    - Kenny R.

  • Error while Exporting to Excel from ALV Report

    Dear Experts,
    When I am exporting my report output to an Excel Sheet  directly some of the headers are appearing in Row No 1 and some are displaying in Row No. 2. Hence the corresponding values are also showing in the same manner.
    I want to show all the Rows in a single row in row No 1. I am unable to find the solution for this.
    But when I am exporting the same report into the MHTML Excel format the Report Headings are showing correctly in a single row and hence the respective values are also showing correctly in a single row. And if I save the same MHTML Excel as normal EXCEL(97-2003) format then also it is showing correctly.
    The problem comes only when I as exporting it directly into EXCEL(97-2003) format. 
    Plz help.

    Hi,
    This is the Technical limitation of ABAP list export to local file.
    ALV grid greater than 1023 characters per line will be split into 2 lines.
    To prevent a line break occuring when you download the list as a local spreadsheet file, you must reduce the width of the list in ALV. You can do this either by hiding columns or by changing the column widths in the ALV. Take care that the column heading characters also dont exceed 1023 characters. This will work.
    Thanks
    LG

  • Error while exporting to excel from a JSP page on Win XP

    Hi,
    I have used the below code to output the content from jsp to excel file, its working fine until we noticed an error on computers with Windows XP installed. The application is working fine on Win 2k systems. Please help.
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-disposition", "attachment;filename=Report.xls");

    My problem was somewhat similar....
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......
    Thanks in advance...

Maybe you are looking for

  • Dialog Box Appears Whenever Booting Flash Player 11.2; Please Help!

    Whenever Flash Player 11.2 boots, a dialog box like the one below appears. I have uinstalled and reinstalled flash, and I still get this.  I have run virus scans and malwarebytes scans and neither have gotten rid of this.  Sometimes, when I click the

  • Windows Live Messenger 2.5.27 - help

    Hello everyone, Does anyone know how to clear the login information from the memory on the new version of messenger 2.5.27  you can set it to not remember the password but I cannot find anywhere to clear the drop down menu that stores the email addre

  • Hi,everyone,I wanna know how to get a Julian date? thanks!!!

    GarygoryDate?? other mothod?

  • Sqlplus opens in new window

    As per the title, I am using sqlplus version 8.0.6 on Windows XP and when it is invoked, either through the command line or via script, it opens in a new window. This prevents the output of the script from being captured to a logfile. I've looked thr

  • Logitech Vision Pro Webcam not working fine

    Hi, I put my new Logitech Vision Pro Webcam (for mac) on my MacMini via USB... connected, recognized, fine... But... Photo Booth and also other Programs like "Iris" loose the picture and don´t show it as usable after a while... For example at PhotoBo