Business Graphics - Gantt: How to customize?

Hi!
I followed this tutorial (https://cw.sdn.sap.com/cw/docs/DOC-35515 - http://help.sap.com/saphelp_nw04/helpdata/EN/a8/1cd93f5e0f9015e10000000a155106/frameset.htm) and the final result is looking very different. This is because the customizing steps aren't explained in detail. Is there a complete tutorial for this or can anybody help with more information about the customizing?
I have set the chart type to gantt. On the left side i can see the user names, but they are not categorized according to their team, the team is also listed like the other users etc. etc.
Any hint for this topic?
Thanks!

Hi Lekha,
Yes, I have looked at both of those.  Both of those examples utilize the Gantt UI element and not the Business Graphics UI element and Gantt chart as I mentioned.  The Gantt UI element in those two examples seem to be a bit overkill for what I am trying to accomplish; however, I welome any feedback on utilizing the Gantt UI element.  This problem I saw with that (other than it being too much for what I am trying to do) is how/what must be done to get your data formated properly in order to bind it to the Gantt UI Element.
Scott

Similar Messages

  • Business Graphics, Gantt, and how to

    Hello Everyone,
    I am trying to use the UI Element Business Graphics in order to create a Gantt chart.  I am having trouble trying to determine how to set up the context and mapping for this.  I am basically trying to create a Gantt chart that is similar to a Team Calendar in that entries on the vertical axis could have more than one entry on the line.  I have looked at the example WDA programs that specify a Gantt chart, but none of them are doing a Gantt chart similar to a team calendar.
    I currently have my context as follows.
    Series (Node)
         Points (Node of Series)
              Values (Node of Points)
                   Start Time (Attribute of Values)
                    End Time (Attribute of Values)
         Description (Attribute of Series - This contains entries on the vertical axis.  In a Team Calendar...this would be name)
         Label (Attribute of Series)
    Is this the proper context set up for a Gantt chart similar to a team calendar?  If this is correct, then does someone also have recommendations on how to bind the attributes in the "Values" node since this is a nested node?
    One last question, does anyone know of any WDA program (standard) that is doing a Gantt chart similar to this?  It would be helpful to look at an example.
    Thank you for your help.
    Scott

    Hi Lekha,
    Yes, I have looked at both of those.  Both of those examples utilize the Gantt UI element and not the Business Graphics UI element and Gantt chart as I mentioned.  The Gantt UI element in those two examples seem to be a bit overkill for what I am trying to accomplish; however, I welome any feedback on utilizing the Gantt UI element.  This problem I saw with that (other than it being too much for what I am trying to do) is how/what must be done to get your data formated properly in order to bind it to the Gantt UI Element.
    Scott

  • How to customize a business graphic ?

    Hello,
    I have succefully created a business graphic which displays columns.
    My question is how can I set each column's value as a label on top of of the column so the value will be clear to the user? I am sure there is a way to it through the chart designer but I can't find it...

    Hi,
    The Series object is used to specify a more complex data series. You can use this object for displaying data series if you do not want to display a category-based chart or if the number of data series is not definite at design time.
    The SimpleSeries object is used to specify a simple data series. This object should be used when:
         1.      The number of data series is already determined and known at design time
         2.      The chart is category-based and each point has only one y value
    Regards, Anilkumar

  • How can i do different colors for the category in business graphics

    Hi everybody,
    i have a business graphics and i need different colors for the category. my business graphics is a gantt.
    for example
    category1
    category2
    category2
    and so on.
    Is there a solution for this? How can i do it?
    Best regards,
    Markus

    Sorry.
    In my opinion, this requirement can not be resolved.
    Generally, we use Business Graphic with Category, we just follow:
    DATA:lr_graph TYPE REF TO cl_wd_business_graphics.
    lr_graph = cl_wd_business_graphics=>new_business_graphics(
        bind_series_source = 'NODE_DYN'
        chart_type = cl_wd_business_graphics=>e_chart_type-BARS
        height = 340
        width = 750
    *     BIND_TOOLTIP = 'GRAPH.TT'
        id = 'GRAPH' ).
    DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
    lr_bgr_cs = cl_wd_category=>new_category(
    view = wd_this->mr_view
    bind_description = 'NODE_DYN.CATEGORY').
    lr_graph->set_category( lr_bgr_cs ).
    If we go to SE24, to check  the class "CL_WD_CATEGORY", we cannot find any method  or attribute about how to manipulate  the "Category Font Color"...
    Maybe,any other expert can give you fantastic solution, hope. Best wishes.

  • Unable to Customize a "Pie" Business Graphics

    I have created a WD Component and below the development details:
    View : BG_CATEGORY
    UI Element:
    Business Graphics: BG
    I selected chartType as "Pie" and now trying to customize the business graphics ui element. However, every time I start Chart Designer.
    By default, the chartType in Chart Designer is "Columns". I don't understand how to resolve the issue.
    XML file generated is: cd_bg_category_bg.xml ( I don't feel name is so long )
    I tried searching a lot on google and SCN. However, Couldn't find any material on the same.
    Any help/hint is appreciated.
    Thanks,
    Preetam

    Hi Rama,
    Thanks for your reply.
    I have already tried to remove the xml files from mime repository and importing manually from PC as well as I removed it and started the customization a fresh. Nothing seems to be working.
    I am attaching two screenshots:
    1. Chart Designer (http://oi60.tinypic.com/5js21t.jpg)
    2. Browser Display screenshot (http://oi62.tinypic.com/21kk03n.jpg)
    The changes are getting reflected in Chart Designer. However, Not reflected in Browser(Run-time).
    Looking forward to some input from you.

  • Business graphics: customize x axes

    Hi all,
      I have a special requirement from a customes and I don't know how to satisfy this.
    I have successfully implemented a Business graphic with series (not simpleseries) and now I need to customize the x axes which contains the hours of 1 month.
    The customer requirement is to have a label and the corresponding grid line only each sunday at 12:00:00.
    I'm trying with Chart Designer with no luck.
    How can I achieve this?
    Thanks
    Stefano

    >
    Kai Gutenkunst wrote:
    > Hi,
    > you use a TimeAxis in your chart; is that correct?
    > Then you can use a value range for displaying such a line (and a caption).
    > In the chart designer right-click on TimeAxis-GridLine and create a new value range. Set the Start and End properties to the desired date/time and fill the property Caption.
    > Regards, Kai
    Hi Kay,
      currently I don't use a time axis because reading the documentation I was convinced that it is only for graphics like gannt and similar.
      In my case I need 2 axes, the x axes is for time (quarter hour) and the y axes is for values. The table rapresenting the values is like this:
    Time   Value
    00:15   287
    00:30   290
    00:45   302
    01:00   299
    01:15   306
    Should I use time TimeAxis?
    Thank you
    Stefano

  • Business Graphics - Bar Chart - How to make the height extendable

    Hi Experts,
    I have created Business Graphics UI element for my WD application which fetches data from R/3. I am displaying
    1) Cost Element in Y-axis and Cost in X-axis.
    2) I have set ChartType = Bar, height = 300, width = 830
    When the no of cost elements is upto 7-8, the graph is getting displayed correctly.
    However when the no of cost elements increases to more than 12, the graph becomes un readable. The system displays lot of texts in Y-axis.
    I want to make sure that if no of cost elements increases, the Y-axis of graph should extend.
    How we can do so?
    Regards,
    Gary

    I could not got any solution of this issue. Finally I convinced the customer to display only top 10 records. Any way higher level managers won't have time to see the graphs of all data.
    One way of resolving the issue is like this - create say 3 Business Graphic UI element. The height of Business Graphic UI element can be set as 300, 600, 900 etc.
    For 10 records use Business Graphic UI element  of height 300.
    For 20 records use Business Graphic UI element  of height 600.
    For 30 records use Business Graphic UI element  of height 900.
    Use the 'Visibility' data type to hide / unhide the Business Graphic UI of different height.

  • How to use series in business graphic ui element

    Hi All,
    How to use the series in business graphic ui element? my requirement is i have to display the sales in selected months in graph(these values dont know at design time).
    Regards
    Srikanth

    Hi,
    Use the dynamic node  and bind this node to the BG source node and series nodes.
    Create a node and bind this node to the BG source and the value that you want to shown in series has to be bound to that attribute of the node and similarly with the category.
    Check out for the dynamic node creation and bind this node to the BG.
    Regards,
    Lekha.

  • How to set multiple categories in Business graphics

    Hi Experts,
                I want to display column chart in using Business graphics UI element. My requirement is that I need to display sets of 5 series in 4 categories. I could able to create only one category and i am not getting option to create other 3 categories.
    please help me how can i achieve this. Any kind of help would be much appreciated.
    Thanks
    Uday

    Thanks Maksim,
                  I am still confused with other terms i mentioned in the code
    http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproDynamicBusiness+Graphics
    what does this nodeNumber refers to
    what does this * IT_FinalElement * refers to
    what does this * seriseNumber* refers to
    there are so many questions? looks like in the above tutorial, the person has used SeriesList instead of SimpleSeries
    I am totally lost. please help with any tutorial links for each scenarios
    Thanks
    Uday

  • Creating Gantt charts using Business Graphics that can be downloaded

    The short version is I need the format for XML data to create a Gantt chart in a Business Graphics UI Element in order to be able to automatically email it.  The long version is...
    I currently have a Web Dynpro ABAP component that displays a Gantt chart using a Business Graphics UI Element based off data in various other UI elements in the view.
    This works fine and the graph displays nicely, but I cannot find a way to download that straight from the Business Graphics UI Element.  Having read around the forum there appears to be two options:
    - Code it up myself by calling methods on the IGS API directly
    - Bind the image data attribute on the element and get the data that way
    Unfortunatly, we are not currently running a recent enough version (702/720) to be able to do the latter and so, unless there is another way, I need to code up the API calls myself.
    So far I have got a business graphic in to an Adobe PDF form, loaded in my config data so it appears as a Gantt chart but I cannot figure out the format for the actual data that needs to be sent through in XML.  Does anyone have example XML data or code to generate it that can be sent in to the call:
    l_igs_ce->set_data( EXPORTING data_doc = p_ixml_doc ).
    I have used the example in GRAPHICS_IGS_CE_TEST and the page http://liualex.com/archives/185 to generate the image and load the config data in but this only explains the XML format of the chart data for bar graphs.
    Many thanks

    Found my answer,
    This download: http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/e0a9ba90-0201-0010-d3a2-9cb376b5e181
    This is the SAP Chart Designer, it contains a PDF which explains the XML format used, you can use it to manually create your own XML streams.

  • Problem with Gantt table (Business graphic)

    Hi everybody,
    I got a problem with an gantt table (Business graphic) in an old project. This gantt table is used to display the timeline of used ressources. The Problem here his that, if the last row of the gantt table is filled, this row will not be displayed correctly. The line will only be filled up half of the height the row has and the row will be divided by a horizontal black line.
    If somebody has an idea about fixing this problem, that will be great.
    Andre
    Edited by: Andre Wendel on Apr 3, 2008 9:00 PM

    Great!
    Of course, hard to diagnose when there's nothing to see.
    Here's an old message in a thread from 2010. (To give credit, it's from Hilary Farrell.)
    >
    You are correct, the syntax outlined in the error message is incorrect, and I've logged bug 9799373 to track this. As a workaround, you can view sample syntax for Gantt charts on the 'Query' page of the Create wizard, in the 'Chart Query Example for Gantt' Show/Hide region below the text area for entering your chart query, and also in the Oracle APEX 4.0 User's Guide that will be available with our new release. Just in case other users hit the same issue and are unsure of the expected format:
    Chart Query Examples for Project Gantt Charts:
    SELECT NULL LINK,
    TASK_NAME NAME,
    TASK_ID ID,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS
    FROM TASKS
    SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
    TASK_NAME NAME,
    TASK_ID ID,
    PARENT_TASK_ID PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS
    FROM TASKS
    SELECT NULL LINK,
    TASK_NAME NAME,
    TASK_ID ID,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS,
    START_DATE-3 PLANNED_START,
    END_DATE+1 PLANNED_END
    FROM TASKS
    Chart Query Examples for Resource Gantt Charts:
    SELECT NULL LINK,
    RESOURCE_ID ID,
    NULL NAME,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END
    FROM TASKS
    SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
    RESOURCE_ID ID,
    RESOURCE_NAME NAME,
    PARENT_ID PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END
    FROM TASKS
    Thanks for reporting this issue, and I'm happy you were able to successfully generate your chart.
    Regards,
    Hilary
    Can you show us the query you are using?
    Oh. And what are the data types and lengths of your data?
    Howard

  • How to add series to Business Graphics control dynamically?

    Hi Experts,
    How to add series to Business Graphics control dynamically?
    I tried the method add_series( ) but could not use it properly.
    If you have any clues of using it, let me know.
    I need it urgently.
    Best Regards,
    Arti.

    I'm not sure what ADD_SERIES method you are refering to. The only programable API for the Business Graphics that I found was this one:
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/e61cd068dc3ee4e10000000a1553f7/frameset.htm
    I've not ever tried it, but you not just add the series UI element like any other dynamic UI manipulation during the WDDOMODIFYVIEW?
    http://help.sap.com/saphelp_nw70/helpdata/EN/11/ba74412cba127de10000000a155106/frameset.htm

  • Click-enable Gantt chart with Business Graphic

    Hi all,
    I know that it's possible to create a gantt char with Business Graphic. But can you tell me if it's possible to add events to the elements of the graphic?
    Or maybe there are other types of object that allow this.
    In bsp there is the phtmlb:gantchart, is there a java package phtmlb?
    Thanks and Best Regards,
    Paulo Ruivo

    Hi Paulo,
    U have onAction event in view designer.Also refer this
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ed/258841a79f1609e10000000a155106/frameset.htm">Business Graphics Events</a>
    Hope it helps,
    Regards,
    Nagarajan.

  • How to Axis labels for Line charts in Business Graphics

    Hi
    I am planning to do the Business Graphic example using Line chart.As part of this
    i didn't clearly understand what is the perpose of Series,Points,categorys?
    if i want to set the Labels at X-axis and y axis ,then how to do that?Baiscally i want to put time related data as X-axis label(20min,30min,60 min etc).Please help.
    is there any good example to understand the concept?
    Thanks
    Prasad

    Hi Bachier
    Thanks for your repsonce.I had seen the example you suggested.but there is no answer for my question.How to set the x-Axis,Y-axis Labels.I had done example for "line chart".But i have same problem:
    Hi
    I am trying to do example on "line chart" using Business graphics in my webdynpro application.
    In the Context i created Node "A" under which i created "B".then it has  value attributes xValue,yValue.Then in View i created BG UI element >Series>point-->NumericValue(for xValue) ,NumericaValue(yValue).Now in view init() method i had initialized values to x and y. some output is coming.but i want to know how to set the X-Axis Label,y-Axis Labels.in X-Aix Label i want to mention time in hrs i.e 8.00,8.30AM,9.00AM,9.30AM etc.as part of y-axis labels i want to mention numeric values( .2,.4,.8,2.0 etc). Please tell me how to set this X-Axis,y-Axis labels.at every 30min(8.00Am,8.30AM etc) user enter quality data(i.e .2 etc) then i want to generate chart.Please help in this regard.i will give very good points
    Thanks
    Prasad

  • [Business Graphics] Translation of captions

    Hi,
    I have some Business Graphics elements in my Web Dynpro component.
    I used the Chart Designer to customize the appearance and add some titles (chart, X-axis, ...) but - to my opinion - this result in an XML file located in the MIME repository: SAP/BC/WebDynpro/SAP/Zxxx/4OQN7xxxxxx.xml
    Now, I have to make available in 5 languages.
    Does anyone know how should I proceed to translate the texts that are embedded within this XML file... ?
    Should I keep the XML file and implement another layer for the translation trough METHODHANDLER attribute (reference variable of type IF_WD_BUSIN_GRAPHICS_MTD_HNDL) of the Business Graphics control in the WDDOMODIFYVIEW( )?
    I guess this should be possible to load the initial XML file, use regular expressions to change the various captions, and inject the modified XML??
    --> this looks very much like what is done in report GRAPHICS_IGS_CE_TEST...
    Thanks in advance.
    Best regards,
    Guillaume
    Edited by: Guillaume Garcia on Feb 7, 2012 6:32 PM / Report GRAPHICS_IGS_CE_TEST

    Download your initial XML, translate, upload with name business_graphic_customization_<LANG(1)>.xml
    method WDDOMODIFYVIEW .
      data:
          lr_bg_control type ref to cl_wd_business_graphics,
          lr_bg_method_handler type ref to IF_WD_BUSIN_GRAPHICS_MTD_HNDL.
      check first_time = abap_true.
      lr_bg_control ?= view->get_element( 'CHART' ).
      lr_bg_method_handler ?= lr_bg_control->_method_handler.
      DATA pict_wa   TYPE xstring.
      DATA mime_api TYPE REF TO if_mr_api.
    DATA: mr      TYPE REF TO if_mr_api,
          lurl    TYPE        string.
    * get name of component
    data: l_component type ref to if_wd_component,
          l_component_info type ref to if_wd_rr_component,
          l_name type string.
    l_component = wd_comp_controller->wd_get_api( ).
    l_component_info = l_component->get_component_info( ).
    l_name = l_component_info->get_name( ).
    * get mime object
      mr = cl_mime_repository_api=>get_api( ).
      CL_WD_UTILITIES=>CONSTRUCT_WD_URL( exporting APPLICATION_NAME = l_name
                                                   importing OUT_LOCAL_URL    = lurl ).
      mime_api = cl_mime_repository_api=>get_api( ).
      concatenate lurl '/business_graphic_customization_' sy-langu '.xml' into lurl.
      mime_api->get( EXPORTING i_url = lurl
                     IMPORTING e_content = pict_wa
                     EXCEPTIONS OTHERS = 4 ).
      data : DOCUMENT TYPE REF TO CL_xml_document.
      CREATE OBJECT DOCUMENT.
      DOCUMENT->PARSE_XSTRING( pict_wa ).
      lr_bg_method_handler->SET_DIRECT_CUSTOMIZING_MODE( abap_true ).
      lr_bg_method_handler->ADD_DIRECT_CUSTOMIZING( exporting I_CUSTOMIZING = DOCUMENT->M_DOCUMENT ).
    endmethod.

Maybe you are looking for