cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically changing Title in Business Graphs

Former Member
0 Kudos

Hi Experts,

I have 1 Business Graph with few Series and a Category.

Values of Business Graph changes dynamically by binding it to a node.

Title for business graph remains always same, I need to change it depending upon the data for which graph is plotted.

Can we dynamically change the Title in Customizing XML file(Edit Customizing)?

Also, what does Extension property means in Customizing?

Thanks for the help.

Regards,

Runal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a context attribute as string and bind it to the Title of the BG. Conditionally fill this attribute.

Regards,

Lekha.

Former Member
0 Kudos

Thanks Lekha,

But this title property is in Chart Designer, not the BG property.

There no binding in Chart Designer

Thanks,

Runal

Edited by: Runal on Apr 7, 2009 4:07 PM

Former Member
0 Kudos

Hi,

In the ModifyView, Check the BG reference by getting the Customsizing value using the class

CL_WD_BUSINESS_GRAPHICS.

In Debugging check out where the title is set.

Get the reference of this Object and check it out for the title.

You will get an idea.

Regards,

Lekha.

Former Member
0 Kudos

Thanks Lekha,

I created that business graphics object and got its reference, but it doesnt have such title property.

This title property is in XML file, which is created using chart designer.

Can we change that XML file?

Thanks,

Runal

kai_gutenkunst
Active Contributor
0 Kudos

Hi,

The title is set within the customizing XML: look at the Caption tag within the Title element.

To set this at runtime look for method setDirectCustomizing (or similar, can't remember currently) that allows to provide some dynmically created XML.

In ABAP the easiest way to adapt the XML to your needs, e.g. set the caption, is to use a Simple Transformation. Look [at this blog|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13313] [original link is broken] [original link is broken] [original link is broken]; that describes this in detail (don't be confused that it's about using the chart engine in SAPGUI, the principle of changing the XML is valid for your scenario also).

Regards, Kai

Former Member
0 Kudos

Thanks for your helpful reply.

Have checked your blog. But you are using Module Pools.

I need this requirement in Webdynpro ABAP.

Can you help with this?

Thanks,

Runal

Former Member
0 Kudos

Thanks Kai for the blog.

It really helped, and i am able to now dynamically change any property of XML file using Transformations for XML modification.

Thanks,

Runal