Graphs in ABAP

Hello friends,
                     There is a program in ABAP GRAPHICS_GUI_CE_DEMO in which we are getting graphs as output.We have set values in this program(hard coded).Can have an internal table passed in this program.We are using a class cl_gui_chart_engine in this program.Can we pass a table in this class and to which interface should we pass the table.
Please advice me on this issue.And help me with some sample code if somebody has it.
Regards
Ashish.

hi,
try this
*& Report  Z_GRAPH
REPORT  Z_GRAPH.
DATA: BEGIN OF ITAB_DATA OCCURS 0,
           DATANAME(15),
           QUANTITY1 TYPE I,
           QUANTITY2 TYPE I,
           QUANTITY3 TYPE I,
      END OF ITAB_DATA,
      BEGIN OF ITAB_OPTIONS OCCURS 0,
           OPTION(20),
      END OF ITAB_OPTIONS.
ITAB_DATA-DATANAME = 'Electricity'.
ITAB_DATA-QUANTITY1 = 55.
ITAB_DATA-QUANTITY2 = 62.
ITAB_DATA-QUANTITY3 = 59.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Gas'.
ITAB_DATA-QUANTITY1 = 35.
ITAB_DATA-QUANTITY2 = 52.
ITAB_DATA-QUANTITY3 = 44.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Water'.
ITAB_DATA-QUANTITY1 = 18.
ITAB_DATA-QUANTITY2 = 22.
ITAB_DATA-QUANTITY3 = 19.
APPEND ITAB_DATA.
CALL FUNCTION 'GRAPH_MATRIX_3D'
     EXPORTING
          COL1        = 'Jan'
          COL2        = 'Feb'
          COL3        = 'Mar'
          TITL        = 'Utility Expenses in Rs.'
     TABLES
          DATA        = ITAB_DATA
          OPTS        = ITAB_OPTIONS
     EXCEPTIONS
          OTHERS      = 1.

Similar Messages

  • Graphs in Abap Webdynpro

    Hi
    All
    I have one requirement that i have to plott two curves in one GRAPH in ABAP WEBDYNPRO.
    One curve shows standard baby growth in months on X-axis and height on Y-axis.On the same graph
    i have to show particular baby growth on the same X-axis and height on Y-axis in another curve.
    Please help me regarding this.
    Thanks and regards
    Venkateswar

    You want to show Particular baby growth and standard baby growth on the same graph am i right?
    I have a simple question for you.do you know how many babies are there during the design time?
    if you dont know how many are there during the design time then you have to create the Serieses dynamically.
    This is the code to create dynamic graph.
    method wddomodifyview .
    data:lr_graph type ref to cl_wd_business_graphics,
         lr_cat type ref to cl_wd_category,
         lr_series type ref to cl_wd_simple_series,
         lr_container type ref to  cl_wd_uielement_container,
         lr_flow type ref to cl_wd_flow_data.
         lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
       lr_graph = cl_wd_business_graphics=>new_business_graphics(
    *             BACKGROUND_COLOR     = BACKGROUND_COLOR
    *             BIND_CATEGORY_SOURCE = BIND_CATEGORY_SOURCE
    *             BIND_ENABLED         = BIND_ENABLED
                  bind_series_source   = 'SERIES'
    *             BIND_TOOLTIP         = BIND_TOOLTIP
    *             BIND_VISIBLE         = BIND_VISIBLE
                  chart_type           =
    cl_wd_business_graphics=>e_chart_type-columns
                  customizing          = 'chart1.xml'
    *             DIMENSION            = E_DIMENSION-TWO
    *             ENABLED              = ABAP_TRUE
    *             FONT_FAMILY          = FONT_FAMILY
                  height               = 300
                  id                   = 'GRAPH2'
    *             IGS_URL              = IGS_URL
    *             IMAGE_SOURCE         = IMAGE_SOURCE
    *             MAP_SOURCE           = MAP_SOURCE
    *             ON_ACTION            = ON_ACTION
    *             TOOLTIP              = TOOLTIP
    *             TRANSPARENT_COLOR    = TRANSPARENT_COLOR
    *             VIEW                 = VIEW
    *             VISIBLE              = E_VISIBLE-VISIBLE
    *             WIDTH                = 300
    lr_cat  =      cl_wd_category=>new_category(
                       bind_description  = 'SERIES.COMP1.DESCRIPTION'
    *                   BIND_EVENT_ID    = BIND_EVENT_ID
    *                   BIND_TOOLTIP     = BIND_TOOLTIP
    *                   EVENT_ID         = EVENT_ID
                        id               = 'CAT1'
    *                   TOOLTIP          = TOOLTIP
    *                   VIEW             = VIEW
    lr_graph->set_category( the_category = lr_cat  ).
       lr_series =    cl_wd_simple_series=>new_simple_series(
                           bind_value     = 'SERIES.COMP1.COMPANY1'
    *                      CUSTOMIZING_ID = CUSTOMIZING_ID
    *                      EVENT_ID       = EVENT_ID
                           id             = 'SERIES1'
    *                      LABEL          = LABEL
    *                      TOOLTIP        = TOOLTIP
    *                      VIEW           = VIEW
           lr_graph->add_series(
    *           INDEX      = INDEX
               the_series = lr_series
    lr_flow = cl_wd_flow_data=>new_flow_data( element = lr_graph
    lr_container->add_child( lr_graph ) .
    endmethod.
    To customize the chart
    1. Create a chart through Chart desiner and save as XML file.
    2. Import this XML into your Web Dynpro component through MIME.
    also check this link to know how to create gragh
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81
    Thanks
    Suman

  • Interactive Graphs Using ABAP

    Dear All,
    Is it possible to have interactive graphs in ABAP.
    The requirement is that my the report gives the output as a BAR Graph and on clicking Bar of the graph you should be able to display the data falling into that category. 
    If yes do guide me through the process and to how many levels can we drill down into the graph.
    Regards,
    Geet Bijlani

    Dear Mujib,
    My requirement is exactly opposite , i have the graph and i want to display the data on clicking the graph.
    Regards,
    Geet

  • Graphs in ABAP - possibilities ?

    Hi Guys,
    Printing the graph in ABAP is a possibility.BUt how about printing graphs in
    1) Smartforms  - how to print graphs in smartforms
    2) Adobeforms ?
    Any idea....please let me know.
    Regards,
    Sandip.

    here is how it should be done :
    You create a window resembling the bar with some background colour.If you print the window, it will print like a bar with the colour that you have given.
    Now, create a table with one cell whose position and width should overlap the created window.
    Then according to the data you fill up the table (note that the contents of the cell will be space).
    That way the widow will be reduced from the top and hence will represent a bar displaying data.
    Silmilarly you can create other windows and their corresponding tables so at the end it looks like a bar-chart.It works well and I have done it.
    First you try with one window and table.
    Regards,
    Sandip.

  • Stacked Bar graph in ABAP

    Hi,
    Can I create a Stacked Bar graph using ABAP Function Modules?
    If yes, can anybody please explain how with any suitable example. I also need different colors in each bar of the graph.
    Any help would be appreciated.
    Thanks.

    [Displaying 3D Graphs in ABAP |http://wiki.sdn.sap.com/wiki/display/ABAP/Displaying3DGraphsinABAP]

  • Graphs in ABAP Report

    Hi All,
    My requirement is to get a graph (which includes both bar graph and a sine graph, in one single shot).
    Though I had gone through the various demo programs given by SAP in trxn 'GRAL', I could not find one, which can give me both kinds of graphs in single shot.
    Anyone had come across such requirement, or know any suggestion/solution for the same?
    Regards,
    Raj

    Hi Rajasekhar,
    Try with the given sample abap code.
    DATA: BEGIN OF ITAB_DATA OCCURS 0,
               DATANAME(15),
               QUANTITY1 TYPE I,
               QUANTITY2 TYPE I,
               QUANTITY3 TYPE I,
          END OF ITAB_DATA,
          BEGIN OF ITAB_OPTIONS OCCURS 0,
               OPTION(20),
          END OF ITAB_OPTIONS.
    ITAB_DATA-DATANAME = 'Electricity'.
    ITAB_DATA-QUANTITY1 = 55.
    ITAB_DATA-QUANTITY2 = 62.
    ITAB_DATA-QUANTITY3 = 59.
    APPEND ITAB_DATA.
    ITAB_DATA-DATANAME = 'Gas'.
    ITAB_DATA-QUANTITY1 = 35.
    ITAB_DATA-QUANTITY2 = 52.
    ITAB_DATA-QUANTITY3 = 44.
    APPEND ITAB_DATA.
    ITAB_DATA-DATANAME = 'Water'.
    ITAB_DATA-QUANTITY1 = 18.
    ITAB_DATA-QUANTITY2 = 22.
    ITAB_DATA-QUANTITY3 = 19.
    APPEND ITAB_DATA.
    CALL FUNCTION 'GRAPH_MATRIX_3D'
         EXPORTING
              COL1        = 'Jan'
              COL2        = 'Feb'
              COL3        = 'Mar'
              TITL        = 'Utility Expenses in US$.'
         TABLES
              DATA        = ITAB_DATA
              OPTS        = ITAB_OPTIONS
         EXCEPTIONS
              OTHERS      = 1.
    Thanks,
    Naga Maruthi

  • ABAP reports or BSPs for publishing R/3 data to Enterprise Portal

    Dear Friends,
      We have got scenario where we need develop a product.As part of that we have got some data in SAP R/3 that need to be published through Enterprise Portal.
    Before me there are the below options.
    1.To write ABAP reports and publish with the help of ITS.
    2.To go for BSPs.(understood WAS should be > 6.10 )
    3.To write some BAPIs and build the interface using portal as middleware.
    Pl. suggest me which one would be best option considering If the reports contain some graphs also.
    Your suggestions are greatly appreciated.
    Thanks in advance
    Mrutyunjay

    Thanks Gopi for your inputs,
    But I heard graphs in ABAP are very resource intensive.
    I would request to through some light on presenting the data graphically through EP if the data is collected through BAPIs from SAP R/3.
    Thanks in advance.
    regards
    Mrutyunjay

  • Printing graph and other text in the same page

    Hi,
    I am aware that for providing graphs in ABAP report we have a FM which is called via a pushbutton in the output screen generally.
    Is there any way I can do away with the pushbutton and print the graph and other text in the same page at one go ? I think Smartforms will not allow graph printing.......any other method to achive this ?
    The user wants to print the graph and other text in the same page.
    Regards,
    Sandip.

    Hi ! no it is not related to smartforms
    search for custom container on google you idea about custom container.
    following code is for displaying alv on selection screen which is created using custom container
    and docking container.
    I hope you will get some idea about how to use custom container for your problem
    DATA DECLARATIONS
    DATA: CONT_DOCKING TYPE REF TO CL_GUI_DOCKING_CONTAINER,
    GRID TYPE REF TO CL_GUI_ALV_GRID,
    CUST_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    IT_FIELDCAT TYPE LVC_T_FCAT,
    GS_LAYOUT TYPE LVC_S_LAYO.
    *ITAB TYPE TABLE OF SBOOK.
    *& SELECTION SCREEN PARAMETERS
    *PARAMETERS:P_TEST TYPE I .
    *& AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
    IF EBELN[] IS NOT INITIAL.
    CREATE OBJECT CONT_DOCKING
    EXPORTING
    REPID = SY-REPID
    DYNNR = SY-DYNNR
    SIDE = CONT_DOCKING->DOCK_AT_BOTTOM
    EXTENSION = 100.
    IF CUST_CONTAINER IS INITIAL.
    *----Create the alv with docking container
    PERFORM CREATE_AND_INIT_ALV .
    ENDIF.
    ENDIF.
    *& Form BUILD_FIELDCAT
    FORM BUILD_FIELDCAT .
    DATA WA_FIELDCAT TYPE LVC_S_FCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELN'.
    WA_FIELDCAT-REPTEXT = 'Airline Code'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELP'.
    WA_FIELDCAT-REPTEXT = 'Flight Connection Number'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    *WA_FIELDCAT-FIELDNAME = 'WUNIT'.
    *WA_FIELDCAT-REPTEXT = 'Weight Unit'.
    *APPEND WA_FIELDCAT TO IT_FIELDCAT.
    *LOOP AT IT_FIELDCAT INTO WA_FIELDCAT.
    *IF WA_FIELDCAT-FIELDNAME EQ 'WUNIT'.
    *WA_FIELDCAT-EDIT = 'X'.
    *WA_FIELDCAT-DRDN_HNDL = '1'.
    *WA_FIELDCAT-CHECKTABLE = '!'.
    *MODIFY IT_FIELDCAT FROM WA_FIELDCAT.
    *ENDIF.
    *ENDLOOP.
    ENDFORM. "build_fieldcat
    *& Form CREATE_AND_INIT_ALV
    FORM CREATE_AND_INIT_ALV .
    CREATE OBJECT GRID
    EXPORTING I_PARENT = CONT_DOCKING.
    *--perform build field catalog for alv display
    PERFORM BUILD_FIELDCAT .
    *--fill the drop down list values
    PERFORM fill_dropdown_table .
    *----fill final output table
    SELECT * FROM EKPO
    INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE EBELN IN EBELN.
    *UP TO 10 ROWS.
    *---display alv
    CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
    CHANGING
    IT_FIELDCATALOG = IT_FIELDCAT
    IT_OUTTAB = ITAB[].
    *---Set editable cells to ready for input initially
    CALL METHOD GRID->SET_READY_FOR_INPUT
    EXPORTING
    I_READY_FOR_INPUT = 1.
    ENDFORM. "create_and_init_alv
    *& Form set_drdn_table
    FORM fill_dropdown_table.
    DATA: LT_DROPDOWN TYPE LVC_T_DROP,
    LS_DROPDOWN TYPE LVC_S_DROP.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'KG'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'G'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'B'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'T'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    CALL METHOD GRID->SET_DROP_DOWN_TABLE
    EXPORTING
    IT_DROP_DOWN = LT_DROPDOWN.
    ENDFORM. "set_drdn_table

  • How to create clickable (drill down) Graphs

    Hi Experts,
    I have a requirement in which i want to create clickable(drill down) graph/pie chart.
    I saw SAP standard program "GRAPHICS_IGS_CE_TEST". It works fine for graph display
    but it doesn't provide any drill down option, Although it has some evenhandling for event SAPEVENT.
    But it doesn't seem to work for left click,right click or double click.
    Can you please sugest?
    Thanks
    YG

    Hi Yogesh,
    Try these links, hope it wil help you.
    [Link1|Clickable Graph by ABAP control;
    [Link2|Graph by ABAP control;
    Regards,
    Nidhi Kothiyal

  • Populating graph in excel using ole

    Hi All,
    I am able to populate the graph from abap into excel using OLE.
    But I am not able to take x-axis and y-axis according to my requirement, its taking by its own as default. please see the below code:
    <b>CALL METHOD OF GS_EXCEL 'Cells' = GS_CELL1
        EXPORTING
        #1 = GV_LINE_CNTR
        #2 = 1.
        CALL METHOD OF GS_EXCEL 'Cells' = GS_CELL2
        EXPORTING
        #1 = GV_LINNO1
        #2 = GV_COLNO.
        CALL METHOD OF GS_EXCEL 'Range' = GS_CELLS
        EXPORTING
        #1 = GS_CELL1
        #2 = GS_CELL2.
        CALL METHOD OF GS_CELLS 'Select' .
        GET PROPERTY OF GS_APPLICATION 'Charts' = GS_CHARTS .
        CALL METHOD OF GS_CHARTS 'Add' = GS_CHART .
        CALL METHOD OF GS_CHART 'Activate' .
        SET PROPERTY OF GS_CHART 'ChartType' = '93' .</b>Now I want to give my own range. But i am not able to.
    I am also not able to give labels of x-axis and y-axis.
    Please help, its very urgent............

    Hello,
    try this code. It creates macro as a file, and than uses that macro to show the chart
    Regards,
    Naimesh
    REPORT ZTEST_NP .
    INCLUDE OLE2INCL. " OLE objects include
    *export data variables
    DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
    WORKBOOKS TYPE OLE2_OBJECT, " list of workbooks
    THIS_WORKBOOK TYPE OLE2_OBJECT, " workbook
    CELL TYPE OLE2_OBJECT, " cell
    BOOK_FONT TYPE OLE2_OBJECT. " font
    *chart creation DATA: variables
    DATA: MODULE TYPE OLE2_OBJECT, "macro
         NEWMODULE TYPE OLE2_OBJECT. "macrotab with VB source code
    INternal tableTABLES: no_table.
    DATA H TYPE I.
    table that contains Visual Basic source code
    DATA: BEGIN OF MACROFILE OCCURS 0,
          LINE(80) ,
         END OF MACROFILE.
    *Internal table with Months and related Profits
    DATA: BEGIN OF NO_TABLE OCCURS 10,   "Internal table with no's
          MONTH(8) TYPE C,
          PROFIT(8) TYPE C,
         END OF NO_TABLE.
    *Months added to table as well as Profits
    NO_TABLE-MONTH = 'June'.
    NO_TABLE-PROFIT = '1000'. APPEND NO_TABLE. "Update table
    NO_TABLE-MONTH = 'July'.
    NO_TABLE-PROFIT = '4000'. APPEND NO_TABLE. "Update table
    NO_TABLE-MONTH = 'August'.
    NO_TABLE-PROFIT = '3000'. APPEND NO_TABLE. "Update table
    NO_TABLE-MONTH = 'September'.
    NO_TABLE-PROFIT = '7000'. APPEND NO_TABLE. "Update table
    NO_TABLE-MONTH = 'October'.
    NO_TABLE-PROFIT = '7000'. APPEND NO_TABLE. "Update table
    NO_TABLE-MONTH = 'November'.
    NO_TABLE-PROFIT = '6000'. APPEND NO_TABLE. "Update table
    CALL METHOD OF THIS_WORKBOOK 'InsertFile'
    EXPORTING #1 = 'C:\VBsource.tmp'.
    *********Fill makro table with VB source code************************
    the macro's name is draw_graph
    MACROFILE-LINE = 'sub draw_graph()'. APPEND MACROFILE.
    MACROFILE-LINE = 'Range("a1:a1").Font.Bold = True'.APPEND macrofile.
    MACROFILE-LINE =
    'Range("a1:a1").Value = "Net Profits for last few months.
    "'. APPEND macrofile. "Bold heading at top of sheet.
    MACROFILE-LINE = 'Range("A2:B7").Select'. APPEND macrofile.
    MACROFILE-LINE = 'charts.add'. APPEND MACROFILE.
    MACROFILE-LINE = 'activechart.charttype = xllinemarkersStacked
    '. APPEND macrofile.
    MACROFILE-LINE =
    'Activechart.setsourcedata source:=sheets("Sheet1").range("A2:B7") ,
    PLOTBY:= XLROWS'. APPEND macrofile.
    MACROFILE-LINE = 'activechart.location where:=xllocationasobject, name:=
    "sheet1"'.  APPEND macrofile.
    MACROFILE-LINE = 'With ActiveChart'. APPEND MACROFILE.
    MACROFILE-LINE = '.hasLegend = false '. APPEND MACROFILE.
    MACROFILE-LINE = ' .Axes(xlValue, xlPrimary).HasTitle = True'.
    APPEND MACROFILE.
    MACROFILE-LINE = '.axes(xlvalue, xlprimary).axistitle.characters.text =
    "Net Profit ($)"'.
    APPEND MACROFILE.
    MACROFILE-LINE = 'End With'. APPEND MACROFILE.
    MACROFILE-LINE = 'msgbox ("Chart completed!")'. APPEND macrofile.
    MACROFILE-LINE = 'end sub                         '. APPEND MACROFILE.
    *******************vb source code end********************************
    ***********create file with visual basic source code *******************
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    FILENAME = 'c:\VBsource.tmp'    "directory with temporary file
    FILETYPE = 'ASC'
    TABLES
    DATA_TAB = MACROFILE
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_WRITE_ERROR = 2
    INVALID_FILESIZE = 3
    INVALID_TABLE_WIDTH = 4
    INVALID_TYPE = 5
    NO_BATCH = 6
    UNKNOWN_ERROR = 7
    OTHERS = 8.
    **********create file with visual basic source code end**************
    **write info to screen (ABAP)
    LOOP AT NO_TABLE.
    WRITE: / SY-VLINE NO-GAP,
    NO_TABLE-MONTH COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
    NO_TABLE-PROFIT COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
    ENDLOOP.
    ULINE (61).
    **********************START THE EXCEL APPLICATION*********************
    CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'. "type of application
    PERFORM CHECK_ERRORS.
    SET PROPERTY OF H_EXCEL 'Visible' = 1.
    PERFORM CHECK_ERRORS.
    CALL METHOD OF H_EXCEL 'Workbooks' = WORKBOOKS.
    PERFORM CHECK_ERRORS.
    create a new workbook
    CALL METHOD OF WORKBOOKS 'Add' = THIS_WORKBOOK.
    PERFORM CHECK_ERRORS.
    ***********fill the Excel table with data*****************************
    PERFORM FILL_EXC_TAB USING 1 1 1 'Profits:'(001). "initial heading
    LOOP AT NO_TABLE.
    H = SY-TABIX + 1.
    PERFORM FILL_EXC_TAB USING H 1 0 NO_TABLE-MONTH.
    ENDLOOP.
    LOOP AT NO_TABLE.
    H = SY-TABIX + 1.
    PERFORM FILL_EXC_TAB USING H 2 0 NO_TABLE-PROFIT.
    ENDLOOP.
    ***********fill the Excel table with data end*************************
    ************DRAW the CHART using the values exported *******************
      CALL METHOD OF H_EXCEL 'Modules' = MODULE.
      PERFORM CHECK_ERRORS.
       CALL METHOD OF MODULE 'Add' = NEWMODULE. " the macro
       PERFORM CHECK_ERRORS.
        CALL METHOD OF NEWMODULE 'Activate'.
        PERFORM CHECK_ERRORS.
    get source code from temporary file
    CALL METHOD OF NEWMODULE 'InsertFile' EXPORTING #1 = 'C:\VBsource.tmp'.
    PERFORM CHECK_ERRORS.
    executing VBA program code -> macro name = "draw_graph"
    CALL METHOD OF H_EXCEL 'Run' EXPORTING #1 = 'draw_graph'.
    PERFORM CHECK_ERRORS.
    FREE OBJECT H_EXCEL. "free up memory
    PERFORM CHECK_ERRORS.
    FORM FILL_EXC_TAB USING I J BOLD VAL.
    CALL METHOD OF H_EXCEL 'Cells' = CELL EXPORTING #1 = I #2 = J.
    PERFORM CHECK_ERRORS.
    SET PROPERTY OF CELL 'Value' = VAL .
    PERFORM CHECK_ERRORS.
    GET PROPERTY OF CELL 'Font' = BOOK_FONT.
    PERFORM CHECK_ERRORS.
    SET PROPERTY OF BOOK_FONT 'Bold' = BOLD .
    PERFORM CHECK_ERRORS.
    ENDFORM.
    error handling subroutine
    FORM CHECK_ERRORS.
    IF SY-SUBRC NE 0.
    WRITE: / 'OLE error:'(010), SY-SUBRC.
    STOP.
    ENDIF.
    ENDFORM.

  • TO get graph between month and value

    Hi Gurus,
    Please help me , i had to make Graph between values and month and for every year lines should be different .
    its basically a stock vs time graph thorough ABAP coding.
    i had itab which have value for every month , but how to plot it i not able to get it.
    please do help me.

    Perhaps have a look at the programs starting GRBUS* (and other GR* entries) as they demo some of your graphical options.

  • GRAPH implementation

    Hi,
    I am looking for an implementation of a graph in ABAP OO. Could you give me some hints where I can find a standard implementation?
    Best regards,
    Fabian

    Hi Fabian,
    Ok I understand it somewhat now.
    I did not find any implementations in OO directly so far.
    In any case, see sample program NETZOCX1. It is the nearest one I can think of..
    Infact all sample programs that start with NETZ*
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Creating Graphs and Bar Charts

    Hi members
    I have been looking high and low to find my answer but to no avail.
    I currently run SAP AR Age debt reports once I extract this data I create graphs in excel.
    I am looking for Sap transaction where I can create a graphs and link them to T-Codes such as AGE DEBT report.
    Please help

    Hi,
    first of all you can create z tcodes only in that is in se93.so create a report either using FM or oops and link it too the tcode.
    other FMs
    GRAPH_MATRIX                   Calling up SAP Business Graphics (2D, 3D and 4D)
    GRAPH_MATRIX_2D                Calling up the 2D graphics (user-friendly version)
    GRAPH_MATRIX_3D                Structure of 3D graphics (user-friendly version)
    GRAPH_MATRIX_4D                Calling up a 3D graphic (4th dimension stacked representation).
    u can follow
    Graphs in ABAP
    hope it helps..

  • About ChartDesigner

    Hi, Experts
      How to use the ChartDesigner in ABAP?
      Can i generate the xml using ChartDesigner, and use the class "cl_gui_chart_engine" to display
      Chart in ABAP with this xml.
      Thank you very much!

    yes we can use it WebDynpro. i did one example in WebDynpro ABAP also. now i am unable to access my system. but there is a post on the same in WebDynpro ABAP
    check this Re: Graphs in Abap Webdynpro

  • Time axis for FM GRAPH_GANTT

    Hi friends,
    where can I affect the contents of the time axis for the FM GRAPH_GANTT ?
    Thank You for Your helps in advance !
    Regards  Peter

    Hi Peter,
    that's not possible.
    Instead of using this very old function module please use the chart engine. See also my reply Two Dimentional graph in ABAP.
    The chart engine provides a set of different chart types, e.g. a GANTT.
    The content of the time axis can be changed within the customizing XML. See also note 1065389 that describes different time formats.
    Regards, Kai

Maybe you are looking for