Pop Up to be displayed on Export to excel button click

Dear All,
I am using BW 3.5 web template for reporting. I have a requirement to display a pop-up window when user clicks on Export to excel button in web report. The pop up will be a confirmation message/disclaimer saying the data being sensitive.
I need 2 buttons to be displayed on the pop-up, Ok and Cancel. If user clicks on Ok then data will be exported to excel as usual and if he clicks on Cancel then no action should be performed and pop up should be closed.
Does anyone have implemented the scenario or can anyone guide me how to achieve this requirement.
Regards,
Niraj

Not done this but you can use JavaScript confirm alert box
Event 1.Upon pressing Export button to Open Alert Message
2. Listen from Alert Message buttons OK or Cancel
3.Trigger events based on user input.
Google "JavaScript confirm alert box" you will get bunch of sample codes.

Similar Messages

  • ALV GRID Export to Excel button Missing

    HI All,
    I am facing some problem with ALV GRID. When excuting the report with my user id I am able to see the 'Export to Local file' button in the ALV GRID where as if i am excuting with another user id which is having less authorisations than the button is greyed out.  I checked by giving all authorisation than we are able to see the button.
    Could anyone please tell me which authorisation object we have to assign to see the buttons.
    Thanks & Regards,
    Murali.

    Hi,
    Before clicking on the Export to Excel button, start the debugging session by placing the command /H in the command prompt.
    Now, put the break point at statement AUTHORITY-CHECK. Now it will trigger all the authorization objects relevant to this.
    check the sy-subrc value gets failed.
    Regards,
    Santhosh.

  • Remove export to excel button on an assignment block

    Hi
    I have a requirement to remove the "export to excel button" on an assignment block".
    I have coded the following in .htm
    <chtmlb:configTable xml              = "<%= lv_xml %>"
                          id                    = "BuilContactPerson"
                          navigationMode        = "BYPAGE"
                          onRowSelection        = "select"
                          table                 = "//BuilContactPerson/Table"
                          displayMode           = "<%= controller->view_group_context->is_view_in_display_mode( controller ). %>"
                          width                 = "100%"
                          headerVisible         = "FALSE"
                          hasLeadSelection      = "TRUE"
                          downloadToExcel       = "FALSE"
                          actions               = "<%= controller->gt_button %>"
                          selectionMode         = "<%= BuilContactPerson->SELECTION_MODE %>"
                          selectedRowIndexTable = "<%= BuilContactPerson->SELECTION_TAB %>"
                          selectedRowIndex      = "<%= BuilContactPerson->SELECTED_INDEX %>"
                          visibleFirstRow       = "<%= BuilContactPerson->visible_first_row_index %>"
                          usage                 = "ASSIGNMENTBLOCK"
                         />
    Though I have coded the downloadTo Excel to "FALSE" the button still appears.
    I think the button comes by default for an assignment and I am not sure how to restrict for assignment block.
    Can anyone please provide some pointers on this?
    Thanks
    Sushma

    H Sushma,
    Could you check with this SAP note 1288220 inorder to disbale the export to excel in the AB's.
    Regards,
    Venkat.

  • Add 'export to excel' button !!

    Hi All,
    i need to export my query output from bex analyzer to excel....so i need to add an 'export to excel' button....so that user can easily export it to excel....this option i can do in WAD....but in analyzer how to do it ?
    Regards,
    Ashutosh

    you can use the save button to save it as excel workbook

  • Export to Excel button only launches in Internet Explorer window

    Hi Experts - A subset users that are experiencing issues with the option to Export to Excel via Web Analyzer on 7.0.  For others, including myself it works just fine.
    When they click the Export to Excel option after running a query, it only opens in an Internet Explorer window (no Excel options to manipulate data) and does not give them the typical MS Excel pop-up window (like I get) to OPEN or SAVE in Excel format.
    Thinking this would be an MS Excel or Internet Explorer setting somewhere, but don't know where to find it....
    Any help is appreciated!

    Hello,
    I think that you're right, the problem doesn't seem to come from anything in SAP servers (otherwise no user would be able to make it work right).
    If I understand well, you want to open an Excel window when selecting "export to Excel" option, not having the table opened in IE with an Excel tab. Am I right ?
    If it's the case, I think that this should work :
    In windows explorer, open tools -> folder options
    Tab "file type"
    find xls extension, and click "advanced" button
    uncheck "browse in the same window" button
    I'm using windows XP, therefore I can't guarantee that you'll find the same menus with another OS. Furthermore, I'm using a french OS, so my translations might differ slightly from what you'll actually have on screen. The result is reflected in the following registry key : HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Sheet.8
    (this could be a different key, depending on the MS Office version installed on your computer)
    You should now have a DWORD value BrowserFlags = 8
    If you have a helpdesk department in your company, that handles software installations, I guess that they should handle this problem (by broadcasting the change in registry ?). But if you're a small company, where everyone has the rights to change such settings, this method will be OK.
    Best regards,
    Giang DANG

  • WAD Export to Excel Button Output problem

    hi
    we are facing issue in WAD ,here we have a button (Export to Excel).
    when we use it, out put for one field is limited to 60 char only but that field text having more than 60 char's.
    while excuting WebTemplate its getting all char's but in Excell its getting 60 char's.
    Regards'
    Ramakrishna.

    try to run this on somebody elses computer
    2nd download software http watch run a trace on when you ran the report in internet explorer and wsee the results. you will need basis assistance on this.
    you can also run the query in rsrt using HTML and export to excel see if that works.

  • Embedding a text file to display its contents on a button click

    I am quite a beginner in this platform. I have text file with me and I want to display its contents to the user(Read Only) on a button click event in my app.(using C#)
    I wish to know how to link/ embed this text file to my app and once it is embedded, how to deploy the file reading.
    P.S. i would really appreciate it if you can provide some sample code.

    thx Rob..plz check this piece of code..
    namespace Syllabus
        public partial class MainPage : PhoneApplicationPage
            public MainPage()
                InitializeComponent();
            private async Task Button_Click(object sender, RoutedEventArgs e)
                try
                      System.IO.Stream src = Application.GetResourceStream(new Uri("Syllabus;vbu.txt", UriKind.Relative)).Stream;
                      string text;
                      using (StreamReader sr = new StreamReader(src))
                          text = sr.ReadToEnd();
                      TextBlock t = new TextBlock();
                      t.Text = text;
                  catch
                      MessageBox.Show("File Not Found");
    On running the code always chokes within the constructor itself ...what's wrong?

  • How to get the exact decimal places displayed while exporting to Excel?

    Hi All,
    I have a requirement to display the exact decimal place values in my report. In my pivot table, i duplicated a column named order number and converted to percentage by applying these conditions Show Data As-> Percent Of-> Column. I got a resultant column with one decimal point. As i needed two decimal points i took the xml of the report and changed the minDigits='2' and maxDigits='2' values like this. After that i got the accurate answer. But when i export it as excel sheet it is not showing the % column properly. The values after 0 is not getting displayed. Any solution for this?
    Thanks in Advance
    Thenmozhi

    Hi Thenmozi,
    You can try adding the below statement in the Custom CSS section of the your column properties.
    mso-number-format:"\@"
    Edit your report--> Criteria-->which column you want to display in excel click column properties --> select CCS--> Paste here above code.
    Second way:
    Edit your report --> criteria-->click fx option for your column and apply the below code.
    2. '<span style="display:none">&nbsp</span>' || CAST(your column name AS CHAR)
    Award points it is useful.
    Thank,
    Satya

  • Displaying a field when radio button clicked

    I am new using Acrobat and JavaScript and am trying to create a form. I have a radio button called Rate with 2 values, Pay and Bill. I also have 2 text boxes, called Pay_Rate_Fillin and Bill_Rate_Fillin which are initially set up as hidden fields. I would like for the Pay_Rate-Fillin text box to be visible when Pay is select and hidden otherwise. Then if Bill is selected the Bill_Rate_Fillin text box is visible. I have tried many different scripts and I just can't seem to get this right.

    Place this code as Rate's custom calculation script:
    var rate = event.value;
    if (rate=="Pay") {
        this.getField("Pay_Rate_Fillin").display = display.visible;
        this.getField("Bill_Rate_Fillin").display = display.hidden;
    } else if (rate=="Bill") {
        this.getField("Pay_Rate_Fillin").display = display.hidden;
        this.getField("Bill_Rate_Fillin").display = display.visible;

  • Overlaying 2 fields to display different values on a button click

    hi,
    I have designer 7 in my local machine and I have overlaid 2 fields - one as visible and one as invisible - containing value and Percentage information. When the user clicks on a button I show percentages or values like a toggle. It seems to work fine in the preview mode of Designer 7.0 but it does not work in our form server that has version 6 .. Is there a work around to this issue?
    This is the actual function that I call when the toggle button is clicked..
    Thanks
    Subha
    JS Function:
    try {
    if( btnToggle.caption.value.text.value == 'Display Percentages' )
    btnToggle.caption.value.text.value = 'Display Values';
    var baseNode = root.StrategicChoices.WorkPrograms.region;
    for( var i = 0; i < baseNode.nodes.length; i++ )
    if ( baseNode.nodes.item(i).name != 'regionItem' ) continue;
    var item = baseNode.nodes.item(i).regionDetails;
    item.prior12mos.presence = 'invisible';
    item.last12mos.presence = 'invisible';
    item.plan.presence = 'invisible';
    item.outlook.presence = 'invisible';
    item.prior12mospct.presence = 'visible';
    item.last12mospct.presence = 'visible';
    item.planpct.presence = 'visible';
    item.outlookpct.presence = 'visible';
    else
    btnToggle.caption.value.text.value = 'Display Percentages';
    var baseNode = root.StrategicChoices.WorkPrograms.region;
    for( var i = 0; i < baseNode.nodes.length; i++ )
    if ( baseNode.nodes.item(i).name != 'regionItem' ) continue;
    var item = baseNode.nodes.item(i).regionDetails;
    item.prior12mos.presence = 'visible';
    item.last12mos.presence = 'visible';
    item.plan.presence = 'visible';
    item.outlook.presence = 'visible';
    item.prior12mospct.presence = 'invisible';
    item.last12mospct.presence = 'invisible';
    item.planpct.presence = 'invisible';
    item.outlookpct.presence = 'invisible';
    } catch( e ) { app.alert( e.toString() ); }

    With version 7, there is a new dynamic xfa tag within the document. If you are trying to change the content of the document within Reader then you are probably using Dynamic PDF. If you save your code with Acrobat 6 compatible PDF, then you will see the same thing happen as form server 6. Form Server 6 does not have support for Dynamic PDF yet. That will be available with Form Server 7

  • Hide / display conditionally export links and export options

    Hi all,
    Is there a way to hide / display conditionally export links in a dashboard. Also, is there a way to limit the export options to display only Export to Excel, and not all the other options such as pdf, etc.
    Thank you
    Regards,
    Laurent

    Hi Laurent,
    Regarding limiting the choices of export, you can refer to below post:
    Re: Export to only PDF,Excel, PPT
    Thanks
    Hyder

  • Export to Excel from PL/SQL Procedure

    Hello,
    I am creating a report using PL/SQL and html code. Once the report is display, I click on "Export to Excel" button. it should open the new window with Excel. The window opens in Excel, but no data. I have following code
    as the first statement in the procedure.
    OWA_UTIL.MIME_HEADER ('application/vnd.ms-excel', FALSE);
    and this is the script
    <script language="JavaScript">
    var param_list
    l_param_list := l_param_list || '&p_app_main_id=' || p_app_main_id;
         l_param_list := l_param_list || '&p_from_date=' || p_from_date ;
         l_param_list := l_param_list || '&p_to_date=' || p_to_date ;
    htp.prn('
    param_list = ''');
    htp.prn( l_param_list);
    htp.prn('''
    function NewWindow(mypage,myname,w,h,scroll){
    var win = null;
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = ''height=''+h+'',width=''+w+'',top=''+TopPosition+'',left=''+LeftPosition+'',scrollbars=''+scroll+'',resizable''
    win = window.open(mypage,myname,settings)
    win.focus();
    function ExportToExcel() {
    var wndname = ''ExpCodeMoveRep'';
    var wndw = screen.width-10;
    var wndh = screen.height-10;
    var wattr = ''scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes'';
    var wndurl = ''pm_codemove_report?p_output=E'';
    wndurl = wndurl + param_list;
         NewWindow(wndurl,wndname,wndw,wndh,wattr);
    </script>
    My submit is
    htp.prn('
    <p align="center">
    <input type="button" class="printbutton" value="Close" class="button" OnClick="window.close();"> 
    <input type="button" class="printbutton" value="Export To Excel" class="button" OnClick="ExportToExcel();">');
    Can anyone tell me what is wrong.
    I have the same code in another schema and it is working fine. Both schema are on the same server. Do they have any set up on appserver in DAD file to be able to see the data in Excel?
    Thanks
    Yagna

    Thank you for your answer dccase!
    I decided to go with on demand process. I have trouble with calling procedure from (button URL - javascript:popupURL('#OWNER#.exportXML')) pop window which cause "Forbidden, The requested operation is not allowed" error. I read that this is because I'm using XE edition and there is no HTMLDB_PUBLIC_USER role in XE.
    Now, I use on demand process and button URL link:
    javascript:popupURL('f?p=&APP_ID.:0:&APP_SESSION.:APPLICATION_PROCESS=PLSQL_Export_XML:NO::')
    It is working. Now I have to find solution to automatically close popup window :-)
    Thanks!
    Marko

  • Timeout when using  ALV build-in functionality: exporting to Excel

    Hello,
    I have the following problem within one of my web dynpro abap applications:
    I need to be able to display data in a table that preferably should be via alv component.
    Then I shall also be able to download the displayed data via Excel.
    So I have embedded the ALV component I added to the component within a view and activated the export to excel button.
    Downloading small amount of data does no lead to any problem, but when trying to process a larger amount of data (in this case 22500 entries), I get a timeout.
    Does anybody have any idea if it is possible to increase performance here without reducing the amount of data to be downloaded?
    thanks a lot ion advance!
    Ana

    Hello,
    coming back to the UI element download.
    I managed to get the data being saved to the desktop, but unfortunately, the data remains being displayed as in chines letters.
    Anybody got an idea, what parameters I might have set wrong? Or if I have to do an additional encoding before generating the XString?
    Here is the supply method code and the parameters I have set in the UI element:
    The Supply method
    method GEN_EXCEL_DOWNLOAD_DATA .
      data: wa_cmx_line type zksb_cmxshowline.
      data: lt_excel type zksb_cmx_excel_download_t.
      data: wa_excel type zksb_cmx_excel_download.
      data: l_guid type guid_32.
      data: l_url type string.
    * read context-------------------------------------------------------------------------------------
      data lo_nd_z_ksb_get_prcm type ref to if_wd_context_node.
      data lo_nd_exporting type ref to if_wd_context_node.
      data lo_nd_rt_zksb_cmx_show type ref to if_wd_context_node.
      data lo_el_rt_zksb_cmx_show type ref to if_wd_context_element.
      data lt_rt_zksb_cmx_show type table of wd_this->element_rt_zksb_cmx_show.
      data wa_rt_zksb_cmx_show like line of lt_rt_zksb_cmx_show.
    *   navigate from <CONTEXT> to <Z_KSB_GET_PRCM> via lead selection
      lo_nd_z_ksb_get_prcm = wd_context->get_child_node( name = wd_this->wdctx_z_ksb_get_prcm ).
    *   navigate from <Z_KSB_GET_PRCM> to <EXPORTING> via lead selection
      lo_nd_exporting = lo_nd_z_ksb_get_prcm->get_child_node( name = wd_this->wdctx_exporting ).
    *   navigate from <EXPORTING> to <RT_ZKSB_CMX_SHOW> via lead selection
      lo_nd_rt_zksb_cmx_show = lo_nd_exporting->get_child_node( name = wd_this->wdctx_rt_zksb_cmx_show ).
    *   @TODO handle not set lead selection
      if lo_nd_rt_zksb_cmx_show is initial.
      endif.
    * get static attributes table
      lo_nd_rt_zksb_cmx_show->get_static_attributes_table( importing table = lt_rt_zksb_cmx_show ).
    * reduce data to only the data that shall be displayed----------------------------------------
      loop at lt_rt_zksb_cmx_show into wa_rt_zksb_cmx_show.
        move-corresponding wa_rt_zksb_cmx_show to wa_excel.
        append wa_excel to lt_excel.
      endloop.
    * populate data as tab separated strings-----------------------------------------------------
      data l_str  type string.
      data lv_struct type extdfiest.
      data itab type ref to zksb_cmx_excel_download_t.
      data r_xstring type xstring.
      data s(256) type c.
      field-symbols <wa_desc> like line of lv_struct.
      field-symbols: <tab> type table.
      field-symbols:  <wa> type any.
      field-symbols:  <f> type any.
    * populate the column headers----------------------
      get reference of lt_excel into itab.
    * assign lt_excel to <tab>.
      assign itab->* to <tab>.
      lv_struct = wd_this->get_table_structure( itab = itab ).
      loop at lv_struct assigning <wa_desc>.
        concatenate wa_cmx_line
                    <wa_desc>-coltitle
                    cl_abap_char_utilities=>horizontal_tab
                    into wa_cmx_line.
      endloop.
      concatenate wa_cmx_line
                  cl_abap_char_utilities=>cr_lf
                  into wa_cmx_line.
    * loop through the data table-----------------------
      loop at <tab> assigning <wa>.
        loop at lv_struct assigning <wa_desc>.
          assign component sy-tabix of structure <wa> to <f>.
          check sy-subrc = 0.
          if <wa_desc> is assigned and <wa_desc>-convexit is not initial.
    *  Process any output conversion routines
            concatenate 'CONVERSION_EXIT_' <wa_desc>-convexit '_OUTPUT' into wa_cmx_line.
            call function wa_cmx_line
              exporting
                input  = <f>
              importing
                output = s.
          else.
            concatenate wa_cmx_line
                     <f>
                      cl_abap_char_utilities=>horizontal_tab
                      into wa_cmx_line.
          endif.
        endloop.
        concatenate wa_cmx_line
                    cl_abap_char_utilities=>cr_lf
                    into wa_cmx_line.
      endloop.
    *Convert the strings to Binary strings (UTF-16le)------------------------------------------------
      call function 'SCMS_STRING_TO_XSTRING'
        exporting
          text     = wa_cmx_line
          mimetype = ''
        importing
          buffer   = r_xstring.
    *Add the UTF-16 Little Endian Byte Order Mark to the begining of the file
      concatenate  cl_abap_char_utilities=>byte_order_mark_little
                   r_xstring
                   into r_xstring in byte mode.
    * set context
      DATA lo_nd_excel_download TYPE REF TO if_wd_context_node.
      DATA lo_el_excel_download TYPE REF TO if_wd_context_element.
      DATA ls_excel_download TYPE wd_this->element_excel_download.
      DATA lv_excel_download_data LIKE ls_excel_download-excel_download_data.
    * navigate from <CONTEXT> to <EXCEL_DOWNLOAD> via lead selection
      lo_nd_excel_download = wd_context->get_child_node( name = wd_this->wdctx_excel_download ).
    * get element via lead selection
      lo_el_excel_download = lo_nd_excel_download->get_element(  ).
    * set single attribute
      lo_el_excel_download->set_attribute( name =  `EXCEL_DOWNLOAD_DATA`  value = r_xstring ).
    endmethod.
    and the parameters to the UI are as follows
    behaviour: allowSave
    data: <data that was created by supply method>
    fileName: CMX.xls          also tried CMX.cvs
    mime-type: ms-excel     also tried  /vnd.ms-excel
    text: $OTR:SOTR_VOCABULARY_BASIC/DOWNLOAD
    textDirection: inherit
    type: navigation
    visible: Visible
    Any suggestion of what I might have to change would be great!
    Tx
    Ana

  • Template with tabs Export to excel with variable dataprovider

    I have looked at examples in this forum of how others have used an "export to excel" button with a variable dataprovider but I cannot get these examples to work for my situation.
    I have a web template with 2 tabs, 1 dataprovider on each. The template has an icon button for "export to excel". The code came from 0QUERY_TEMPLATE. The tabs require a JavaScript function which hides all items except for the one on the selected tab and sets the property for the selected tab. I got the code for this from the WEB API reference for BW 3.x.
    I cannot get the button "export to excel" to export the selected (non-hidden) data provider. I need somehow to have a variable for dataprovider on the command to export. 
    Any help would be greatly appreciated.
    Provided below is my template.
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_PROPERTIES"/>
    <param name="TEMPLATE_ID" value="ZTEST_EXPORT"/>
    <param name="VARIABLE_SCREEN" value="X"/>
    TEMPLATE PROPERTIES
    </object>
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_DATA_PROVIDER"/>
    <param name="NAME" value="DATAPROVIDER_1"/>
    <param name="QUERY" value="ZPC_010"/>
    <param name="INFOCUBE" value="ZPC_M01"/>
    DATA_PROVIDER: DATAPROVIDER_1
    </object>
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_DATA_PROVIDER"/>
    <param name="NAME" value="DATAPROVIDER_2"/>
    <param name="QUERY" value="ZPC_011"/>
    <param name="INFOCUBE" value="ZPC_M01"/>
    DATA_PROVIDER: DATAPROVIDER_2
    </object>
    <html>
    <head>
    <link href="/sap/bw/Mime/Customer/StyleSheets/ServicePortalBWReports.css" type="text/css" rel="stylesheet"/>
    <Script type="text/javascript">
    <!--
    /* function goto_tab: Show all items, starting with tabname, Hide all other items */
    function goto_tab(tabname) {
    SAPBWOpenURL(SAP_BW_URL_Get()'&item=TAB*&multi=X&hidden=X&cmd_1=item%3d'tabname+'*%26hidden%3d %26multi%3dX');
    /* DHTML function to set correct span-Tag visible
    For each Tab in Tab-Header (head_TAB) check, if item TABx is visible
    If Item is visible set Header as selected
    Otherwise set corresponding span-Tag to not visible */
    function set_actual_tab() {
    i=0;
    do {
    i++;
    if (document.getElementById('head_TAB'+i) != null) {
    /* Check if Object tag is hidden */
    var prop = SAPBWGetItemProp('TAB'+i);
    var hidden=true;
    if (prop != null){
    for(j=1;j<prop.length;j++){
    if (prop[j][0] == "HIDDEN") hidden = (prop[j][1]=='X');
    if (hidden) {
    document.getElementById("TAB"+i).setAttribute('style', 'display:none;visibility:false;',false);
    else {
    document.getElementById("head_TAB"+i).setAttribute('className', 'SAPBEXTbsTABsel',false);
    } while (document.getElementById('head_TAB'+i) != null)
    -->
    </script>
    </head>
    <body>
    <TABLE class=SAPBEXNavLineBorder cellSpacing=0 cellPadding=1 width=5 border=0>
    <TR>
    <TD width="5%">
    <TABLE cellSpacing=1 cellPadding=2 width="100%" border=0>
    <TR>
    <!-- Display Export Excel--->
    <TD class=SAPBEXNavLine><A href="<SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='DATAPROVIDER_1'>">
    <IMG alt="Export to MS Excel" src="Mime/BEx/Icons/S_X_XLS.gif" border=0></A></TD>
    </TD></TR></TABLE></TD></TR></TABLE>
    <TABLE cellSpacing=1 cellPadding=5 width="75%" border=0>
    <TR>
    <TD vAlign=top>
    <P>
    <TABLE cellSpacing=0 cellPadding=5 border=0>
    <TR>
    <TD class=SAPBEXTbsTab id=head_TAB1><A href="javascript:goto_tab('TAB1')">Tab 1</A></TD>
    <TD class=SAPBEXTbsTab id=head_TAB2><A href="javascript:goto_tab('TAB2')">Tab 2</A></TD>
    </TR></TABLE>
    <TABLE class=SAPBEXTbsBdyEdg cellSpacing=0 cellPadding=5 width="5%"
    border=0>
    <TR>
    <TD vAlign=top>
    <SPAN id=TAB1><object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="TAB1"/>
    <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
    <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
    <param name="GENERATE_CAPTION" value=""/>
    ITEM: TAB1
    </object></SPAN>
    <SPAN id=TAB2><object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="TAB2"/>
    <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
    <param name="DATA_PROVIDER" value="DATAPROVIDER_2"/>
    <param name="GENERATE_CAPTION" value=""/>
    <param name="HIDDEN" value="X"/>
    ITEM: TAB2
    </object></SPAN>
    </TD></TR></TABLE></P>
    <SCRIPT type=text/javascript>
    <!--
    /* This function call is needed to set the correct state */
    set_actual_tab();
    -->
    </SCRIPT>
    </TD></TR></TABLE>
    </body>
    </html>

    Kevin,
    Try calling a javascript function (e.g. excel_export) when the export icon is clicked on.
    Using the prop array find the tab that is not hidden and then use that index to build your export command. i.e. if tab1 is visible then pass dataprovider_1 to the excel download command.
    Another method would be to place a hidden field on the form to store the dataprovider and then read that field in the javascript function.  You would have to update this field when you switched between the tabs.
    Cheers,
    Kelly

  • How to Export to Excel and Pdf

    Hi,
    I displayed the data into table using JSP page.
    I am creating two buttons as one is Export to Excel and 2nd one is Export to Pdf. If i click Export to Excel button then the table data has to Export to Excel sheet. and same to to Pdf also.
    Can you please send me the corresponding code
    It's very urgent

    Can you please send me the corresponding codereally ???
    It's very urgentindeed...
    See:
    - iText (pdf) => www.lowagie.com/iText/
    - POI HSSF (excel) => http://poi.apache.org/hssf/index.html
    hope that helps

Maybe you are looking for