Missing X-Axis labels in exported excel sheet

Created chart in Desktop Intelligence.
Missing X-Axis labels in exported excel sheet.
Please help me on thsi

Use the Metrics Inspector.
Click on the chart to select it, then click on one labels of the labels to select only the text box containing the x axis labels.
In the Metrics Inspector, use the control or type in a value (in degrees CCW from horizontal) to Rotate the labels.
You may also need to move, or remove the Legend showing the colour(s) used for each series. This is also in a Text box.
Regards,
Barry

Similar Messages

  • Formatting / Post Processing of Exported Excel Sheet

    Hi ,
    Issue:
    The Columns in the Excel Sheet are not fully visible when we export Report from CR viewer  to Excel Sheet. So we had planned for Post processing of the Excel Sheet using VBA or .NET etc to format the Excel Sheet, which would be on the server side, meaning the End user will never see the formatting process, but only the End Report. Is it possible to achieve this ??
    NOTE:
    1) VBA or .NET could not be run on the Linux Server but we could take advantage of the windows server in the presentation layer.
    Architecture:  
    Presentation Layer                    
    Linux Server <--> Windows .Net Server <--
    > End User
    {Crystal RAS Server} <-->{GUI CR Viewer Application}<--
    >
    Our Proposed Solution:
    1) Create an GUI Application that has CR viewer in it .
    2) Create a Separate Excel Export button on the webpage.
    3) when the user wants to export the report , he clicks the button.
    4) The GUI/ application saves the Exported Excel Sheet from the Ras server to the windows server.
    5) Then the .Net or the Vba code is applied to process/Format the Excel Sheet.
    6) When complete the End user is prompted for saving the report to a local disk.
    My questions:
    1) Can this be achieved ?
    2) what would be the best way to handle this ?
    3) what should be the process flow ?
    4) what are the things to be considered while planning for such a design ?
    Regards,
    Ramkumar Govindasamy

    So you're looking at using RAS .NET SDK on the Application Layer to export a Crystal Report to Excel, save to temp file on the Application Layer machine, process that temp file, and stream that back out to the client web browser.
    Considerations:
    1. You need to create your own custom UI button to trigger the process, since the .NET Web Forms Crystal Reports viewer won't have the hooks to customize the Excel export.
    2. Running Excel VBA from your Web App may be problematic - you'd have to be particularly careful if the system is under load, since the Excel VBA - COM-Interop isn't necessarily designed for high throughput.  Under high load, you may get file locking or COM-Interop layer just refuse to process.  It's pretty common to try and catch exceptions and retry if you encounter this.
    You'd likely not find anyone here familiar with 2 above, but 1 is fairly common.
    Sincerely,
    Ted Ueda

  • Again: Using Crystal Report to export excel sheet.

    Morning every one, first Iu2019d like to apologize for my last question see Using Crystal Report to export excel sheet. Itu2019s pretty hard to understand and wastes your precious time. Now here is a new one hopefully it will do myself a lot of help:)
    First, we have a table called HOURLY_PORTUTIL in the Database:
    Column Name...........Data Type  
    STARTTIME ................DATE
    CIRCLE.......................VARCHAR2
    SERVICENAME...........VARCHAR2
    PORTUTIL....................NUMBER
    The data in this table looks like:
    9/25/2008 00:00:00 AM...AP...(456)...0.01
    9/25/2008 01:00:00 AM...AP...(456)...0.04
    9/25/2008 02:00:00 AM...AP...(456)...5.04
    9/25/2008 12:00:00 PM...AP...(456)...0.02
    9/25/2008 00:00:00 AM...AP...AL-MOD...0.01
    9/25/2008 01:00:00 AM...AP...AL-MOD...0.04
    9/25/2008 02:00:00 AM...AP...AL-MOD...0.04
    9/25/2008 12:00:00 PM...AP...AL-MOD...0.02
    9/26/2008 00:00:00 AM...AP...(456)...1.01
    9/26/2008 01:00:00 AM...AP...(456)...0.34
    9/26/2008 02:00:00 AM...AP...(456)...5.24
    9/26/2008 12:00:00 PM...AP...(456)...7.72
    9/26/2008 00:00:00 AM...AP...AL-MOD...12.0
    9/26/2008 01:00:00 AM...AP...AL-MOD...0.23
    9/26/2008 02:00:00 AM...AP...AL-MOD...0.44
    9/26/2008 12:00:00 PM...AP...AL-MOD...8.11
    9/25/2008 00:00:00 AM...Delhi...(456)...1.01
    9/25/2008 01:00:00 AM...Delhi...(456)...2.04
    9/25/2008 02:00:00 AM...Delhi...(456)...6.04
    9/25/2008 12:00:00 PM...Delhi...(456)...7.02
    Then we have a Cross-Table:
    Columns:
    .............HOURLY_PORTUTIL.SERVICENAME
    Rows:
    ............HOURLY_PORTUTIL.CIRCLE
    ............HOURLY_PORTUTIL.STARTTIME
    ............@hourly
    Summarized Fields:
    ..............................Sum HOURLY_PORTUTIL.PORTUTIL
    The Formula @hourly converts, say, '9/25/2008 01:00:00 AM' to '01:00-02:00'.
    The above all is the information of our Cross-Table configuration, but the outcome is not what we want. I find that this forum doesn't want the user to post image, so I post the actually outcome and the outcome we want in my Picasa.
    Actually outcome:
    [http://picasaweb.google.com/enel.guo/ForWork#5288743968250408770]
    What we want:
    [http://picasaweb.google.com/enel.guo/ForWork#5288743974292750610]
    I know that the outcome looks good enough, but our customers don't think so. They want export the report to Excel sheet and have every row with exact CIRCLE and STARTTIME.
    Thanks again guys:)

    Hi  Ashwini Yadav,
    Thanks for your reply:)
    I'm afraid that your answer is not perfectly right. Again I'm sorry for my vague description. The suggestion you gave us is already adopted. The total and grand total part disappeared but we still can't get what we want.
    Please have a look at the new image link below, Hopefully it will give you a clear picture of what's going on:)
    Cross-table:
    [http://picasaweb.google.com/enel.guo/ForWork#5289122850514299506]
    Cross-Table configuration:
    [http://picasaweb.google.com/enel.guo/ForWork#5289123604007267826]
    Cross-Table configuration::
    [http://picasaweb.google.com/enel.guo/ForWork#5289122854967734466]
    The original output:
    [http://picasaweb.google.com/enel.guo/ForWork#5289120017105336914]
    The output we want:
    [http://picasaweb.google.com/enel.guo/ForWork#5289120018508824882]
    Edited by: Yu-Lin Liang on Jan 9, 2009 3:51 AM

  • Embedding Macros in the BEx web exported excel sheet

    Hi all Advanced reporting gurus,
    I have to embed a macro in the excel sheet, when the user clicks the button Export to excel sheet in the BEx web. This needs to be generic, it means every BEx web user should be able to avail this macro. Can any one suggest me the methods to do so ?? Its really urgent and ur quick response is awaited....
    Thanking you in advance,
    Bret

    Hi Heike,
    Thanks for your help. I searched the office XML documents and one the help file specifys this tag
    IntlMacro Element (Microsoft Excel)
    Specifies whether a worksheet is an international macro sheet.
    Contained In
    WorksheetOptions
    Remarks
    If <x:IntlMacro/> is specified, the worksheet is an international macro sheet.
    so I guess, if Office XML standards are used in BW then this tag also shld work. I read few topics on SAP ABAP class files such as ZCL_RSR_XLS_HELP_WINDOW_PRINT and it has one the method to trigger rendering of data. Can I use this class and method to send the tag values so that macro is also embedded while sending data ????
    your thought are highly awaited,
    thanks
    D Bret

  • Exporting ALV Grid output to Excel sheet

    Hi All,
           How can i export the output displayed using Grid to an Excel sheet. I tried with default option from list->export->excel sheet/local file but i am not getting complete data and the data which i am getting also notin proper format. Please help me in this regard.
    Best Regards,
    Sunil

    Check out the ALV grid toolbar for export options.
    Regards
    Raja

  • EXCEL sheets Merge statment

    Hi There
    I would like to compare two excel sheets
    Sheet1 - Current day records
    Sheet2 - Last day records
    My requirement is this : Comparing sheet1 and sheet2
    1. updating the changes and inserting new records into current day with respect to last day.
    2. I have idea of using Merge. But, use it with PL/sql for comparing two excel sheets how?
    Please help
    Thanks
    Raj

    Rangarajan wrote:
    If you want SQL or PL/SQL to process the data then it really needs to be on the database.
    __What ever it may be i need solution.*I am ok for creating two addtional tables to run the show.*Well you write the solution, we just give you the information you will need to do it. Unless of course you want to pay for our services? (hint: a little less of the bold agressive posturing would go down better; asking nicely works for most people)
    So, although you say it's excel sheets, are you really talking about CSV files (which are not Excel sheets, but Character Seperated Values)?
    its not csv its xls only_
    If you are dealing with CSV's then you could create external tables that read the data from the files and then do the comparisons mentioned above, especially if you are looking to MERGE the data, because SQL commands such as insert, merge etc. don't work on flat files.
    its ok* Ok, Excel (.xls) files are a proprietary Microsoft binary format file. These can't just be read into the database as they are. If your database was on a windows platform you could set up an Excel ODBC connection to the .xls files and then treat them as external databases. As you're on solaris you won't really be able to do that. You only option therefore is to export your data to CSV or other flat file format so that the database can read the data from those. CSV is preferable as you will be able to use Oracles External tables to load the data.
    You don't have to share your actual data with us, just give us some idea of the infrastructure you are dealing with. You haven't even told us if you've got the data loaded into database tables yet...
    its ora 9i / solaris*
    Let me put some more clarity on the objective.
    Currently, I am comparing two excel sheet manually(using vlookup, match etc,) Utimately, I am doing set minus, presence of previous run and not in current run. then,I will make the changes to current run and send excel sheet to email integration system. I would like to automate entire stuff.So here's the steps you need...
    Export excel sheets to CSV files.
    Have Oracle external tables defined to point at those flat files.
    Use the aforementioned comparison methods to compare the two flat files by reading with SQL from the external tables.
    Generate the output into another CSV file. (you can use writeable external tables in 10g onwards, but as you're on 9i you'll need to use UTL_FILE to write it out instead).
    Take your written CSV file and load that back into Excel. (Excel likes reading CSV's)
    The problems you've got in automating it are getting the data exported from Excel to CSV files and also reading the output CSV back into Excel. You may be able to do this using some OLE/DDE type stuff, but as you're on a solaris platform rather than Windows, that could prove a little tricky.
    Could you arrange to have the data delivered to you already in CSV format rather than as Excel sheets? Could you provide CSV results rather than an Excel sheet in return?

  • Does not display axis label in graph when exported to excel

    I have a wierd issue.I have a report with graph with coloum chart and axis labels description on x axis.WHen i export the report to PDF everything looks OK.But when i export it to excel few axis labels disapper.Out of 12 labels only 2 apper when exported to excel.Has anyone encountered this issue.
    If so is there a way to fix this.
    PS: I am using BO XI 3.1 Webi.
    Thank you,
    Sanjeev

    hi,
    I have tried this out with a sample.
    In WEBI preview mode and PDF, all axis labels will appear fine.
    But when exported to excel, some labels will disappear.
    Workaround: We have to increase the chart size in Excel till all axis labels appear clearly.
    Regards,
    Vamsee

  • Problem while exporting data to Excel sheet.......

    Hi
    I have written the following code to export data to excel sheet...
    data:
           conv_out TYPE REF TO cl_abap_conv_out_ce,
           content TYPE xstring.
    data : itab_slsrl type table of znslsrlitm.
    data: xml_out TYPE string.
    Data:
    Node_slsrl type ref to If_Wd_Context_Node,
    Elem_slsrl type ref to If_Wd_Context_Element,
    Stru_slsrl type ref to if_wd_context_element .
    call transformation ('ID') source tab = itab_slsrl[] result xml xml_out.
    CALL FUNCTION 'CRM_IC_XML_STRING2XSTRING'
    EXPORTING
    INSTRING = xml_out
    IMPORTING
    OUTXSTRING = content.
    conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).
    DATA: lv_filename TYPE string.
    conv_out->convert( exporting data = xml_out IMPORTING buffer = content ).
    cl_wd_runtime_services=>attach_file_to_response(
    i_filename = 'Sales_order_release.xls'
    i_content = content
    i_mime_type = 'application/msexcel'
    i_in_new_window = i_in_new_window
    i_inplace = i_inplace ).
    But when i am trying to export data to excel sheet i am getting
    following error...
    "Switch from current encode to specified encoding is not supported"
    "<?xml version="1.0" encoding='utf-16"?>"
    if i change encoding utf-8 to utf-16 in my code its giving dump..
    "The conversion of certain code pages is not supported"
    Did i miss any step...?
    How to resolve this problem please help me....
    Thanks & Regards
    Sowmya.....

    Hi Sowmya,
    I do had a similar issue, but I avoided that problem temporarily by commenting the following code.
        l_conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8'  ).
    attach the first file
    l_conv_out->convert( exporting data = l_xml_out IMPORTING buffer = l_content  ).
    Once this is done, you can export the data to Excel and open it and see too...But this is a temporary solution only. Implement this solution to get to understand more flaws of this.
    Regards
    Raja Sekhar
    Edited by: Raja Sekhar on Dec 26, 2007 7:51 PM

  • How to export the data as integer into excel sheet?

    Hi All,
         I am working on export to excel functionality and using JEXCEL API to create it.  When I export the data to excel sheet, the data are stored in text format in the excel sheet.  If I click on summation button on excel sheet,  it is not summing up the column values since it is stored as the text format. 
    I am writing the following code:
    for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();){
    String attributeName = (String)iter.next();
    for(int index = 0; index < dataNode.size(); index++){
    try{
    IWDNodeElement nodeElement = dataNode.getElementAt(index);
    String colVal = nodeElement.getAttributeAsTex(attributeName);
    Label value = new Label(j, index + 1, colVal);
    sheet.addCell(value);
    j++;
    Here colVal is the variable which holds the data in string format.  So I was just trying to convert it into integer format and used Integer.parseInt(colVal).
    But Label keyword accepts only the int,int,string arguments. 
    Is there any other option to change it as integer value while exporting to excel sheet.
    Pls suggest.
    This is very urgent.
    Regards,
    Subashini.

    Hi Gopal,
    Pls refer the following link.
    /people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache
    I have used the same coding which is mentioned in this link. 
    And also I cannot use integer.parseInt(colval)  because new Label()  will accept only the int,int,string as parameters. 
    Here goes my to excel method code which exports the data to excel sheet .
    private FileInputStream toExcel(IWDNode dataNode, Map columnInfos) {
    String fileName = "output.xls";
    IWDCachedWebResource cachedExcelResource = null;
    int i = 0;
    try{
    File f = new File("output.xls");
    WritableWorkbook workbook = Workbook.createWorkbook(f);
    WritableSheet sheet = workbook.createSheet("First Sheet", 0);
    for(Iterator coluinfoitr = columnInfos.keySet().iterator(); coluinfoitr.hasNext();){
    Label label = new Label(i, 0, (String)columnInfos.get(coluinfoitr.next()));
    sheet.addCell(label);
    i++;
    int j = 0;
    for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();){
    String attributeName = (String)iter.next();
    for(int index = 0; index < dataNode.size(); index++){
    try{
    IWDNodeElement nodeElement = dataNode.getElementAt(index);
    String colVal = nodeElement.getAttributeAsText(attributeName);
    Label value = new Label(j, index + 1, colVal);
    sheet.addCell(value);
    catch (Exception e){
    wdComponentAPI.getMessageManager().reportException(" Data Retrive Err :" + e.getLocalizedMessage(),false);
    j++;
    workbook.write();
    FileInputStream excelCSVFile = new FileInputStream(f);
    cachedExcelResource = getCachedWebResource(excelCSVFile, fileName, WDWebResourceType.getWebResourceType("xls", "application/ms-excel"));
    wdContext.currentContextElement().setExcelDownload(cachedExcelResource.getURL());
    workbook.close();
    It is exporting the data in text format.  So I am unable to sum up the column values in the excel sheet.
    I need an alternate solution wherein I can export the data in integer format to excel sheet and then sum up the column values by clicking on summation button.
    Hope I am clear now.
    Pls suggest.
    Regards,
    Subashini.

  • Entries missing in excel sheet when sent as an attachmt in email in ECC6.0

    Hi All,
    When I am sending an email with excel attachment from SAP , email functionality is working fine. But when I try to open excel sheet it is giving a warning that "Incompatible format" and when I click on "OK" button excel sheet is opened bu some entries are missing. This problem is occuring when I am sending email in ECC6.0 whereas in 4.7E it works fine.
    I am using classes to send email. Please let me know if any one has any solution.
    My code is :
    g_text_content is the internal table having data .
    example data in g_text_content : line 1 : col1#col2#col3#....
                                                     line 2:  col1#col2#col3#...
    convert the content from RAW to TXT
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = g_text_content
          objcont_new = g_text_content
        EXCEPTIONS
          OTHERS      = 0.
        create the document with attachments
        main document
        APPEND 'Sales Report (Quantity Basis) ' TO g_text.
      WRITE p_date TO wa_line.
      CONCATENATE 'Report Date:' wa_line INTO wa_line SEPARATED BY space.
      APPEND wa_line TO g_text.
      APPEND 'Sent as attachment' TO g_text.
    TRY.
        create the send request
          send_request = cl_bcs=>create_persistent( ).
          IF NOT text[] IS INITIAL.
            document = cl_document_bcs=>create_document(
                                      i_type    = 'RAW'
                                      i_text    = text  "main email text
                                      i_subject = p_subj ).
          ENDIF.
        add text attachment to document
          IF NOT text_content[] IS INITIAL.
            document->add_attachment( i_attachment_type    = 'XLS'
                                  i_attachment_subject = p_subj
                                  i_att_content_text   = text_content ).
          ENDIF.
        add list attachment to document
          IF NOT list_content[] IS INITIAL.
            document->add_attachment( i_attachment_type    = 'ALI'
                               i_attachment_subject = p_subj
                               i_att_content_hex    = list_content ).
          ENDIF.
        add document to send request
          send_request->set_document( document ).
    *email to
        create recipient and add to send request
          IF NOT p_to IS INITIAL.
            LOOP AT p_to.
              recipient = cl_cam_address_bcs=>create_internet_address(
                                                p_to-low ).
              CALL METHOD send_request->add_recipient
                EXPORTING
                  i_recipient = recipient.
            ENDLOOP.
          ENDIF.
    *copy to
        create recipient and add to send request
          IF NOT p_cc IS INITIAL.
            LOOP AT p_cc.
              recipient = cl_cam_address_bcs=>create_internet_address(
                                                p_cc-low ).
              CALL METHOD send_request->add_recipient
                EXPORTING
                  i_recipient = recipient
                  i_copy      = 'X'.
            ENDLOOP.
          ENDIF.
    Blind copy
          IF NOT p_bcc IS INITIAL.
            LOOP AT p_bcc.
              recipient = cl_cam_address_bcs=>create_internet_address(
                                                p_bcc-low ).
              CALL METHOD send_request->add_recipient
                EXPORTING
                  i_recipient  = recipient
                  i_blind_copy = 'X'.
            ENDLOOP.
          ENDIF.
        send
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
          IF sent_to_all = 'X'.
            MESSAGE s022.
          ENDIF.
          COMMIT WORK.
        CATCH cx_bcs INTO bcs_exception.
          MESSAGE e865 WITH bcs_exception->error_type.
      ENDTRY.
    Thanks,
    Sonali.

    Hi change the below sample as per your requirement.
    <unreadable code removed by moderator>
    Regards
    chitra
    Moderator message: please post only relevant code parts, your posts must contain less than 5000 characters to preserve readable formatting.
    Edited by: Thomas Zloch on Nov 15, 2011 1:03 PM

  • Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)

    Hi experts,
    I am trying to implement the functionality of downloading the contents of a webdynpro screen to excel sheet. In order to implement the functionality of excel download i used the following blog.
    [/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache ]
    In this blog they have used javaexcel api to implement the excel functionality. I face some problems
    while implementing it.
    i) The use of "Label label = new Label(0, 2, "A label record");
    sheet.addCell(label); " is not supported. It says that a constructor for label with
    (int, int, str) parameter is not available.
    ii) Then i implemented it with "Label label = new Label("A label record"); " Then i deployed it. I got a runtime exception saying that " java.lang.ClassNotFoundException: jxl.format.CellFormat ".
    This cellFormat is an interface available in the jar. I am using jexcelapi_2_6_9_1.4 version. Do i have to
    download some other versions.
    Please help. Thanks in advance.
    Regards
    Ramanan

    Hi,
    Please check the following steps while creating External Library DC:
    1) creating an Extneral library DC
    2) import the JARs to the libraries folder of the External Library DC project
    3) Right-click on each of the JARs imported to the project and add them to the public part.
    This DC is now ready to be used as a build-time reference that will allow CBS to build the "main" Web Dynpro application that will use the external libraries. Next, we have to create a new Web Dynpro DC to hold the class files here are the steps:
    1) Create a new Web Dynpro DC
    2) Create a new public part, selecting the "Can be packaged into other build results" option
    3) Rename the JARs as Zip files and extrct the full content (folders and class files) to your root folder
    4) Import the folders and files to the src/packages folder
    5) Expand the public part node that was created and select the "Entities" node, right-click it and choose Edit
    6) In the Entity Type list select the "Folder" option then in the selected entities tree pick each of the folders that you imported in step 5 (above)
    7) Now do a DC build and a DC deploy of the project
    Then check-in, activate, and release any activities you have associated with creating these two projects. In the DC perspective, refresh the Active DCs and Inactive DCs to ensure that both new DCs appear in the Active list. Now we have to setup the references to these DCs in our main Web Dynpro application. To do this, follow these steps:
    1) Open the Web Dynpro perspective and right click the Used DCs node then choose "Add Used DC.."
    2) Pick the public part of the External Library DC that we created (first) and set it to have a Build Time dependency
    3) Again, right click the Used DCs node and choose "Add Used DC.." then choose the public part of the Web Dynpro DC that we created and give it a Run Time dependecy (weak) and click finish.
    4) Now, due to what I think is a bug. You must right click on the Web Dynpro "used DC" that you just added in the previous step, and set the run time dependency again (it seems to revert to the default values for some reason)
    5) Now do a DC build and a DC deploy on the "main" web dynpro application.
    6) Check-in, activate, and release any activities associated with adding these references and then others on your team may use the classes in the external libraries within the Web Dynpro project.
    Regards.
    Rajat

  • Export Data of a Web Report  having 2-3 Queries(tables) Onto 1 Excel Sheet

    I have a Report designed in Web Application Designer. It has 2 or more Table Web Items in it to which different queries are bound.
    Although the data of these queries is shown as one Report but to the user it is very annoying when he has to export the Data separately for each block and then copy-paste in order to have a single Exported File (as till then the user thinks it is just one Report).
    The question is : Is there a way in which one can Export entire Data of a Web Report  having 2 Queries(tables) Onto 1 Excel Sheet once, so that 2-3 exports or more from context Menu, and then copy-paste from excel, can be avoided?

    Hi , I have gone through this document
    got this installed (the pre requisites) through SAP admin.
    & now the  code in html pane is  as below :
    First I am trying with Button option with only one dataprovider. Later will do changes for context menu option & more dataproviders.
    But when i click on "Web printing with excel" , progress bar finishes & nothing happens.
    Should't the result set be exported to Excel
    Am i missing on some part.
    Best Regards
    Deepali

  • Problem while alv grid display exporting to excel sheet

    Hi,
      I have done an ALV report using reuse_alv_grid _display , out put is fine , but when i click on excel view icon i could only see an excel sheet without any data ., but when i use export to local file and choose spread sheet its giving the data in excel, but the user wants to click only the excel view icon.
    Best Regards

    Hi,
    Check this link
    [Problem with Excel button in ALV Grid...URGENT;
    Regards,
    Sathish Reddy.

  • Reg alv grid display exporting to excel sheet

    hi experts,
    I have done an ALV report using reuse_alv_grid _display , out put is fine , but when i click on excel view icon i could only see an excel sheet without any data ., but when i use export to local file and choose spread sheet its giving  the data in excel, but the user wants to click only the excel view icon., please help me out.
    Note : i have already tried changing the macro security in excel to Low .

    see it will give you the   Status message  as  ...
    <b>View cannot be switched: Product is not installed or integration is not active.</b>
    it means the Excel  Integration was not  done in you  sap system .  ask basis   there  will be a Patch for it  ... once  it was applied   automatically in  all the   ALV  the excel view  will work
    in  my system it was  working 
    Girish

  • How to export the data from table to excel sheet

    hi experts i have some problem am trying to export the data fro table to Excel sheet  in the view controller i have created one button wit public void onActionCLEAR(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCLEAR(ServerEvent)
       //wdContext.nodeBapi_Salesorder_Getlist_Input().
       //wdContext.nodeBapi_Salesorder_Getlist_Input().invalidate();
        //@@end
      //@@begin javadoc:onActionExporToExcel(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionExporToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionExporToExcel(ServerEvent)
         try{
         FileOutputStream fos=new FileOutputStream("Test.xls");
          PrintStream ps=new PrintStream(fos);
          ps.println("<html><body><table border=1>");
          int size=wdContext.nodeBapi_Salesorder_Getlist_Input().size();
           Iterator attributes=wdContext.getNodeInfo().iterateAttributes();
           ps.println("<tr>");
           while(attributes.hasNext()){
            ps.println("<th>");
            DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
            ps.println(attrName.getName());
            ps.println("</th>");
           ps.println("</tr>");
          for(int i=0; i<wdContext.nodeBapi_Salesorder_Getlist_Input().size();i++)
            attributes=wdContext.getNodeInfo().iterateAttributes();
            ps.println("<tr>");
            IWDNodeElement ele=wdContext.getElementAt(i);
            while(attributes.hasNext()){
              ps.println("<td>");
              DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
              ps.println(""+ele.getAttributeAsText(attrName.getName()));
              ps.println("</td>");
            ps.println("</tr>");
           ps.println("</table></body></html>");
           ps.flush();
           ps.close();
           fos.close();
          catch(Exception e){
           wdComponentAPI.getMessageManager().reportException(e.getMessage(), false);
          finally{
         //return("Test.xls")  ;
        //@@end
      }h action and i have return the code
    its running sucessfully but am not able to perform the action plz help me

    Hi,
    You shouldn't use DataAttributeInfo as it is an internal object, if I'm correct.
    Use IWDAttributeInfo instead of DataAttributeInfo and it should work
    (See also API doc of IWDNodeInfo.iterateAttributes() at http://help.sap.com/javadocs/nwce/ce711sp02/wdr/com.sap.wdr/com/sap/tc/webdynpro/progmodel/api/IWDNodeInfo.html#iterateAttributes())
    Cheers,
    Robin

Maybe you are looking for