EXPORT PIVOT CHART TO EXCEL

Hi Experts ,
I want to export the internal table data to the excel graph or chart .
using OLE .( or any other method which u can suggest.)
my internal table in having three col
name
val1
val2
Name should be Y Axis.
Please suggest me the solution.
right now am just displaying the graph using Business Object.
But the requirment is the EXCEL OUTPUT with GRAPH or chart.

Get your data into an ALV GRID (OO --NOT THE OLD SLIS FUNCTION MODULE VERSION)
and a Toolbar with Transfer to EXCEL button on it.
*Click on the EXCEL button you created and the Popup prompt will give you  options of a Pivot table amongst others.*
*The EXCEL spreadsheet will be displayed in the Foreground with the pivot table options you want*
*From here just use the Chart Wizard (built into EXCEL) to get your chart.*
*You can of course save etc. On exit from excel you are returned to the GRID where you can EXIT  or perform further functions.*
*You probably could use excel macros to generate a graph / chart automatically -- the EXCEL prompt also allows you to run macros --you need to see the popup to understand what I'm trying to post here --but I haven't tried that option yet.*
method on_toolbar .
type-pools icon.
clear ls_toolbar.
     move  0 to ls_toolbar-butn_type.
     move 'EXCEL' to ls_toolbar-function.
     move  space to ls_toolbar-disabled.
     move  icon_xxl to ls_toolbar-icon.
     move 'Excel' to ls_toolbar-quickinfo.
     move  'EXCEL' to ls_toolbar-text. 
     append ls_toolbar to e_object->mt_toolbar.
    perform   toolbar  in program (caller) if found
     using e_object.
endmethod.
case e_ucomm.
      when 'EXIT'.
        leave program.
      when 'EXCEL'.
       call method me->download_to_excel.
      when 'SAVE'.
      when 'PROC'.
        call method me->process.
      when 'REFR'.
        call method me->refresh.
        when 'SWITCH'.
        call method me->switch.
       when 'TEST'.
        call method me->get_cell.
       endcase.
endmethod.
method download_to_excel.
field-symbols:
       <fs0> type standard table,
       <fs1> type standard table.
    assign g_outtab1->* to <fs0>.
    assign g_fldcat1->* to <fs1>.
       call function  'LVC_TRANSFER_TO_KKBLO'
      exporting
        it_fieldcat_lvc   = <fs1>
*     is_layout_lvc     = m_cl_variant->ms_layout
         is_tech_complete  = ' '
      importing
        es_layout_kkblo   = ls_layout
        et_fieldcat_kkblo = lt_fieldcat.
    loop at lt_fieldcat into lt_fieldcat_wa.
      clear lt_fieldcat_wa-tech_complete.
      if lt_fieldcat_wa-tabname is initial.
        lt_fieldcat_wa-tabname = '1'.
        modify lt_fieldcat from lt_fieldcat_wa.
      endif.
      l_tabname = lt_fieldcat_wa-tabname.
    endloop.
    call function 'ALV_XXL_CALL'
         exporting
              i_tabname           = l_tabname
              is_layout           = ls_layout
              it_fieldcat         = lt_fieldcat
              i_title             = sy-title
         tables
              it_outtab           = <fs0>
         exceptions
              fatal_error         = 1
              no_display_possible = 2
              others              = 3.
    if  sy-subrc <> 0.
      message id sy-msgid type 'S' number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
endmethod.
You might be able to use FM 'ALV_XXL_CALL' directly but you need to be aware that the field catalog is slightly different  which is why you need FM  'LVC_TRANSFER_TO_KKBLO'  to convert your ALV GRID field catalog to the one required by the XXL call.
Cheers
Jimbo

Similar Messages

  • Exporting bar charts to excel

    Hi All,
    I would like to export my bar chart to excel.When i googled, i did not get any relevant information regarding this topic. If anyone could help me in this regard with the code will minimize my burden to a greater extent.
    Thnaks for all ur support in advance

    uh, are you sure you don't want to export the DATA used to generate the chart instead?

  • Export flex chart to excel

    How can I export an flex chart to excel? Does anyone have any sample code.

    Yes, now it's easy with AIR2 (and AS3XLS):
    http://coenraets.org/blog/2009/11/open-in-excel-another-air-2-mini-sample/
    Thanks,
    Oleg.

  • To export pivot table from excel and save as picture using powershell

    I am trying to automate my work by attaching an excel file to email and send it across using powershell . But also, I want to paste the screenshot of  pivot table to my email body .
    One way to do it is to save only the pivot table as picture format like jpeg or png , then attach this picture to the email body .
    I am looking for an powershell script which will save my pivot table as picture format . I am using powershell V1.0
    please help .

    I'm not familiar with PowerShell script, we usually use VBA script within excel.
    The following article describes how to export Excel Range to a Picture File and attach it as the email body by VBA code, it might not be the answer you are looking for, but hope it will give you some inspirations.
    http://www.jpsoftwaretech.com/export-excel-range-to-a-picture-file/
    Also you can post your question to PowerShell forum to get better support.
    Best Regards,
    Wind Zhang

  • How to reopen PowerPivot field list from Pivot chart in Excel 2010

    Hi
    I can't figure out how to open the PowerPivot fields list without having a PowerPivot table. In several sheets I use PowerPivot, but insert a PivotChart directly as a PivotTable isn't needed. It works well as long as the field list is open, but once I click
    away and come back the fields list is missing and right-clicking the PivotChart only offers up chart related options. I have a few times gotten lucky and seen "Pivot fields list" as the bottom option when righ-clicking the edge of the PivotChart
    allowing me to bring it back up, but I can't replicate this on a regular basis. Is there a keyboard shortcut or some ribbon option that will open the field list?
    Re
    D

    Yes, I know and that part works, but I need a 2010 version as v1 and v2 of PowerPivot are incompatible.
    Re
    D
    Hello,
    The PowerPivot field list becomes visible when you are working with a PivotTable or PivotChart that is based on PowerPivot data.
    Regards,
    Elvis Long
    TechNet Community Support

  • Exporting apex chart to excel

    hi
    Is it possible to export charts from apex ?

    Not export as such however, if you are using Apex V4 you can right click on the flash charts and save as image.
    Scott

  • WAD - Export Chart to Excel

    Hi @ all,
    when I try to export a chart to excel the chart is only partly seen. Means there are 50 categories but only 35 are displayed.
    Can anybody help? Which settings are wrong?
    Thanks in advance.
    Jule

    Good to see it worked for you Jule. Can you make it answered.
    Thank You!!
    H2H

  • Access denied error while exporting chart to excel

    I need to export data from a gridview to chart in excel. Through system account credentials it works fine. But through a user's credentials its giving an access denied error. The gridview data is exported properly but the current chart which is displayed
    on page is not getting displayed in excel.
    So is there any other way to achieve this?
    I was thinking og saving it to virtual folder in the Site but I cannot figure out the exact code for it. Since file upload control is not involved, how to save the chart to the virtual folder. Any inputs on this?

    Hello,
    Would you mind if you use "runwithelevatedprivileges" in your code to execute code with admin privilege?
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx
    >I was thinking og saving it to virtual folder in the Site
    Do you want to save excel in system folder or SP site folder?
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to export the created Pivot table by using Power Pivot into separate excel file in the same format?

    Hi PowerPivot experts,
    I have created more than 60 pivot tables in multiple sheets by using PowerPivot work book. now i want delivery all the pivot table in excel document to my end user by email.
    I want send only the Pivot tables which i created using PowerPivot data model instead of sending the whole model file since its very heavy.
    I have tried with export option in Excel 97-2003, its works fine but not getting exact pivot format which i created and its displays as value.
    My aim to send pivot table that i created format but not whole file with source data.
    I would be really grateful if advise me to fix it out.

    Hi Robert,
    I don't think it is a good idea to deliver all PivotTable report to end user via E-mail, and SQL Server PowerPivot for Excel doesn't support to deliver PivotTable report to end user without PowerPivot data inside in the data model. For example, I suppose
    we create a PivotTable to display the SalesAmount of US in pervious years(eg:2012, 2013, 2014), how can we dynamic show the value based on end user selection without PowerPivot data model data(The PivotTable report don't have data source)?
    So, one workaround that we can create a shared folder to store all of PowerPivot report for all of end user in the domain environment, and then inform end users to copy the PowerPivot reports what they want via E-mail.
    If the end users aren't in domain environment, we can implement the VPN soltion to achieve this.
    Regards,
    Elvis Long
    TechNet Community Support

  • Export SQL Server report chart to excel as editable chart

    Hi,
    When I export the report in excel format the chart is displayed as picture. I want it to be displayed as editable chart.
    Does Office Writer work in this situation and did anyone use Office Writer to accomplish same type of problem.
    Is there any other method or product we can use instead of the office writer.
    Thanks.

    Hi Brad_user,
    Just as you said, the chart displays as a static image after exporting to excel, and it cannot be edit. The feature that a chart can be editable after exporting to Excel is not supported in current release of Reporting Services. One workaround for you is
    create a chart base on the same data in the excel level. Notice that there are many features supported on one side but not the other.
    Alternatively, if you have any concern about this, please submit a feedback at
    https://connect.microsoft.com/SQLServer/Feedback. Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software
    and services the best that they can be, and you can learn about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Export Chart to Excel

    Hi guys,
    Is there a possibility (or workaround) to export a chart from BEx Web into BEx Analyzer?
    I only to succeed to export the data as such...
    Thanks for your quick help!
    Sabine

    Hi Sabine,
    there was a paper with the title how to web printing with Excel. I rememebr that most of the visible items has been imported into Excel - i cannot remember if charts works also. Just look in "Howto" section and try.
    Of course there was another paper as "howto" where javascript has been used to export to excel from web - try that also!
    Regards,
    Adem
    Message was edited by: Adem Baykal

  • Web Analysis - Exporting Chart to Excel

    Hello
    When I try to export a Chart from Web Analysis to MS Excel using Fully Formated option, it doesnot export the chart as it is. It converts it into spreadsheet and I can only see spreadsheet in the excel sheet. Is it how the export to excel suppose to work?
    I want the graph in the excel sheet.
    Regards
    Abhi

    Hi Mehmet,
    Firstly, thanks for taking the time out to reply.
    I followed the steps given in the link you posted.
    When I edit permission for the folder containing the reports, it does not reflect in Web Analysis in any way.
    For example: I assigned 'No Access' to a user to the entire folder, but yet the user is able to see the folder and the reports contained in it.
    Kindly help me with this.
    As for the 2nd issue, it has been sorted out and I can now export to Excel successfully :)
    Cheers,
    Sahil

  • Export the data of a chart to Excel format

    I developed Histogram and Bar diagram in java Graphics2D pkg. I want to export the data of the chart in Excel format so that the file can be opened in Excel tool.

    Is this something that might help....
    <!-- Loop through the range to create a poplist -->
    <%
    java.util.ArrayList alDepartments = new java.util.ArrayList();
    %>
    <select name="DepartmentId">
    <c:forEach var="listEntry" items="${bindings.DepartmentsListView1.rangeSet}">
    <c:set var="thisdept" value="${listEntry.DepartmentId}"/>
    <%
    //<c:out value='${listEntry.DepartmentId}'/>
    String strThisDept = ((Number) pageContext.getAttribute("thisdept")).toString();
    System.out.println( strThisDept );
    alDepartments.add( strThisDept );
    %>
    <c:choose>
    <c:when test="${listEntry.DepartmentId eq bindings['DepartmentId'].attributeValue}">
    <option value="<c:out value='${listEntry.DepartmentId}'/>" selected="true">
    <c:out value="${listEntry.DepartmentName}"/>
    </option>
    </c:when>
    <c:otherwise>
    <option value="<c:out value='${listEntry.DepartmentId}'/>">
    <c:out value="${listEntry.DepartmentName}"/>
    </option>
    </c:otherwise>
    </c:choose>
    </c:forEach>
    <%
    session.setAttribute("sessionalDepartments", alDepartments );
    %>
    </select>

  • Excel 2010 Pivot Chart

    On my pivot chart, the field filters at the top of the chart do not show the field value that it was filtered on.  We filter on Customer.  I am clicked into the chart and I select the analyze tab, on the field button drop down, the "show legend
    field buttons" option is not enabled.
    Why isn't that enabled?
    Thank you for your help.

    Hi
    I hope you can help me please?
    I have a similar issue in that I produce spreadsheets that I present to the Management team twice a month.
    I have pivots for the forecast, which support a graph.
    Using the filter, we look at a product family at a time
    How can I display a family name (that we have filtered on) on the chart itself, please?
    I've searched as many websites as I can to find help but haven't been successful.
    I can't add a print screen at present (need my account verified).

  • Axis Field filter only appearing in Legend of Pivot Chart

    I was referred here after posting the following on the Office Excel user forum (answers.microsoft.com) I hope I provide all you need, but of course I can provide further details if needed. I am on Windows 7 using Excel 2010. 
    Okay here goes! (thanks in advance for any direction you can provide)
    I was creating a PivotChart where I wanted to be able to filter the chart based on the fields I dropped into the "Axis Fields (Categories)" areas section of my PivotTable. This was working fine until I added the filters as slicers, decided
    I didn't like them, and deleted them. Now when I try to view the filter boxes, they will only appear as part of the legend. I do not want to show the legend as it has too many values. I would like to revert to the original behavior of showing the Axis Field
    Buttons at the bottom of the chart, where they appeared originally (Without being associated with the chart legend).
    Anyone know how to restore this behavior? 
    It works this way on other chart types, like line and bar. But it no longer works on the type of chart I wanted to use which is a Pie chart. I have opened new instances of Excel and tried to create a Pivot Chart Pie chart and get the same results:
    the axis fields are associated with the chart legend, instead of being available independently.
    Any help that can be provided would be appreciated
    Thanks!!

    I guess you may want to let the Pivot chart shows like the screenshot below:
    If so, you need to add a new column(Equal to the field which you want to put into the AXIS field) to source data, then in the Pivot Table, put this field to the FILTERS .
    This was working fine until I added the filters as slicers, decided I didn't like them, and deleted them
    I don't think this operation you did would change any behavior. Perhaps you can upload this file to a file sharing site and then share the link with us.
    Wind Zhang
    TechNet Community Support

Maybe you are looking for