cancel
Showing results for 
Search instead for 
Did you mean: 

Business Graphics with Series & Points

Former Member
0 Kudos

Hi,

I am trying to add a Column Graph to my application.

As I understand that a column graph has;

> Category

> Series

Series in itself could be of type;

> Series

> Simple Series

I have tried Simple Series and its pretty simple to put up a chart using that.

I want to be able to create a Column Graph using the Series type where it has Points and Values.

Can anyone help me in this?

Thanks,

Sanjiv Tyagi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Any thoughts on this?

Please let me know if you have any experience with Business Graphics (Series and Points) in ABAP WebDynpro.

Thanks,

Sanjiv

Former Member
0 Kudos

HI,

right click on the Business Graphics and insert category for the x-axis of the graph.

After defining the x-axis for defining y-axis right click on the Business Graphics and insert series i.e

So define y-axis for say company 1 , company 2, company 3 .....and so on.

Bind where ever required.

Click on the BUSINESS_GRAPHICS and right click on it and go to the Edit Customizing as shown below and define the required properties

i will provide you sample code also............

METHOD wddoinit .

DATA: itab_series TYPE if_main=>elements_series,

struc_series LIKE LINE OF itab_series,

v_rand TYPE i.

DATA lo_nd_series TYPE REF TO if_wd_context_node.

  • NAVIGATE FROM <CONTEXT> TO <SERIES> VIA LEAD SELECTION

lo_nd_series = wd_context->get_child_node( name = wd_this->wdctx_series ).

DEFINE random_generate.

call function 'GENERAL_GET_RANDOM_INT'

exporting

range = 120

importing

random = v_rand.

END-OF-DEFINITION.

struc_series-description = 'X1'.

random_generate.

struc_series-company1 = v_rand.

random_generate.

struc_series-company2 = v_rand.

random_generate.

struc_series-company3 = v_rand.

random_generate.

APPEND struc_series TO itab_series.

struc_series-description = 'X2'.

random_generate.

struc_series-company1 = v_rand.

random_generate.

struc_series-company2 = v_rand.

random_generate.

struc_series-company3 = v_rand.

random_generate.

APPEND struc_series TO itab_series.

struc_series-description = 'X3'.

random_generate.

struc_series-company1 = v_rand.

random_generate.

struc_series-company2 = v_rand.

random_generate.

struc_series-company3 = v_rand.

random_generate.

APPEND struc_series TO itab_series.

struc_series-description = 'X4'.

random_generate.

struc_series-company1 = v_rand.

random_generate.

struc_series-company2 = v_rand.

random_generate.

struc_series-company3 = v_rand.

random_generate.

APPEND struc_series TO itab_series.

  • BIND ALL THE ELEMENTS

lo_nd_series->bind_elements(

new_items = itab_series

set_initial_elements = abap_true

).

ENDMETHOD.

Former Member
0 Kudos

Neha,

I too have access to the PDF 'How to Create Business Graphics in Web Dynpro for ABAP' from where you gave me the response.

Well, thanks for your time and effort, but if you really read my question well, I was asking about Series and not 'Simple Series'. I have created many applications using Simple Series that is pretty straight-forward.

I want to know about Series that has Points and Values.

Hope you could help me with that.

Thanks,

Sanjiv

Former Member
0 Kudos

Hi Sanjiv,

As your requirement i can suggest you a method for creating the bar graph for instance i want two loumns say planned vs actual as column graphs then 1. create two UI elements one as category and other as series point if for eg we want 2 things to be represented as planned vs actual so u create two series points and in context create two nodes say (Category and BarData).

Here Bar Data should consits of two attributes(Planned , Actual ) since we need planned and actual two things now bind the two series points to bar data .

Now by means of either bapi or through Function module you can get the data into the graphs and display simple.

Try this !.

Have a Good Day.

Regards,

Sana.

Former Member
0 Kudos

Sana,

The help on the Series and Point in business graphics states the following;

-


Series 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."

-


According to your answer we already know the two series at the design time i.e Planned and Actual.

If that is so then I could do this easily using the 'Simple Series' and I do not need the Series and Points.

My question was how to use the Series and Points in business graphics.

Thanks for your time and efforts anyways.

Thanks,

Sanjiv