cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : Customizing Business Graphics.

Former Member
0 Kudos

Hi All,

I am trying to customize Business Graphics, (i.e) changing the font, background and etc.., I modified the design by using "Edit Customizing" option of the Business Graphics UI. But whatever the modification i did in the design time was not replicated in the run time. Is anything more to do...?

Thanks,

Mugu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

here the issue is , when i am doing the customising it is generating an XML file and the XML file in not storing locally , so i have gone to MIME repository through SE80 and imported the file into MIME repository locally my issue has been resolved .

Regards,

K.Vinay Kumar

Edited by: vinay kumar on Aug 5, 2009 7:58 AM

arjun_thakur
Active Contributor
0 Kudos

Hi,

Make sure that you are activate the component after making all the changes.

Regards

Arjun

Former Member
0 Kudos

Hi,

Apart from making cutomizing settings in Chart Designer, you can also write the following code

in domodifyview method to bind the settings at run time.

*******************************************************************************
** Build the XML string to set the GRAPH title*
*******************************************************************************
  *DATA: l_ixml            TYPE REF TO if_ixml,*
         *l_document        TYPE REF TO if_ixml_document.*

  *DATA: l_element_SAPChartCustomizing TYPE REF TO if_ixml_element,*
        *l_element_Elements TYPE REF TO if_ixml_element,*
        *l_element_ChartElements  TYPE REF TO if_ixml_element,*
        *l_element_Title    TYPE REF TO if_ixml_element,*
        *l_element_Caption      TYPE REF TO if_ixml_element,*
        *l_element_ChartAxes   TYPE REF TO if_ixml_element,*
        *l_element_CategoryAxis   TYPE REF TO if_ixml_element,*
        *l_element_ValueAxis   TYPE REF TO if_ixml_element,*
        *l_value           TYPE string.*


**       Creating a ixml factory*
  *l_ixml = cl_ixml=>create( ).*
**       Creating the dom object model*
  *l_document = l_ixml->create_document( ).*
**       Fill root node with value SAPChartCustomizing*
  *l_element_SAPChartCustomizing  = l_document->create_simple_element(*
              *name = 'SAPChartCustomizing'*
              *parent = l_document ).*
**       Create element 'Elements' as child of 'flights'*
  *l_element_Elements  = l_document->create_simple_element(*
              *name = 'Elements'*
              *parent = l_element_SAPChartCustomizing  ).*
**       Create element 'ChartElements' as child of 'flights'*
  *l_element_ChartElements  = l_document->create_simple_element(*
              *name = 'ChartElements'*
              *parent = l_element_Elements  ).*
**       Create element 'Title' as child of 'flights'*
  *l_element_Title  = l_document->create_simple_element(*
              *name = 'Title'*
              *parent = l_element_ChartElements  ).*
**       Create element 'Caption' as child of 'flights'*
  *l_value = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '052' ).*
*.*
  *l_element_Caption  = l_document->create_simple_element(*
              *name = 'Caption'*
              *value = l_value*
              *parent = l_element_Title  ).*

**       Create element 'ChartAxes' as child of 'flights'*
  *l_element_ChartAxes  = l_document->create_simple_element(*
              *name = 'ChartAxes'*
              *parent = l_element_Elements  ).*
**       Create element 'CategoryAxis' as child of 'flights'*
  *l_element_CategoryAxis  = l_document->create_simple_element(*
              *name = 'CategoryAxis'*
              *parent = l_element_ChartAxes  ).*
**       Create element 'Title' as child of 'flights'*
  *l_element_Title  = l_document->create_simple_element(*
              *name = 'Title'*
              *parent = l_element_CategoryAxis  ).*
**       Create element 'Caption' as child of 'flights'*
  *l_value = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '015' ).*
*.*
  *l_element_Caption  = l_document->create_simple_element(*
              *name = 'Caption'*
              *value = l_value*
              *parent = l_element_Title  ).*

**       Create element 'ValueAxis' as child of 'flights'*
  *l_element_ValueAxis  = l_document->create_simple_element(*
              *name = 'ValueAxis'*
              *parent = l_element_ChartAxes  ).*
**       Create attribute 'id' for elsement 'ValueAxis'*
  *l_element_ValueAxis->set_attribute( name = 'id' value = 'ValueAxis1' ).*

**       Create element 'Title' as child of 'flights'*
  *l_element_Title  = l_document->create_simple_element(*
              *name = 'Title'*
              *parent = l_element_ValueAxis  ).*
**       Create element 'Caption' as child of 'flights'*
  *l_value = lv_con_curr.*
  *l_element_Caption  = l_document->create_simple_element(*
              *name = 'Caption'*
              *value = l_value*
              *parent = l_element_Title  ).*

  *DATA : lr_container TYPE REF to cl_wd_uielement_container,*
         *lr_bg TYPE REF to cl_wd_Business_Graphics,*
         *lr_bg_method_handler type ref to IF_WD_BUSIN_GRAPHICS_MTD_HNDL .*

**Get the Valuation type container*
  *lr_bg ?= view->get_element( id = 'BGR_REMINQ' ).*

  *lr_bg_method_handler ?= lr_bg->_method_handler.*

*CALL METHOD LR_BG_METHOD_HANDLER->CLEAR_DIRECT_CUSTOMIZING.*


*CALL METHOD LR_BG_METHOD_HANDLER->ADD_DIRECT_CUSTOMIZING*
    *EXPORTING*
      *I_CUSTOMIZING = l_document.*

Former Member
0 Kudos

Hi Arjun,

Ya all the things are activated, But i don't know why the changes had replicated.

Former Member
0 Kudos

Hi Manas,

ok let coding be another way, Do you have any idea that, why the changes was reflected.

Thanks,

Mugu

arjun_thakur
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Arjun,

Already I gone through this doc. But couldn't get it.

Thanks,

Mugu

Former Member
0 Kudos

Hi Arjun,

I had analyzed a problem but i don't know whether this would be the reason. On editing business graphics, I am getting a file called cd_cust_portalview_bg1.xml which is not present in my Component's MIME objects. But the same file is present in mime repository in the location sap->bc->webdynpro->sap->mypackage. Then i had imported the into my component's mime, even after that no change.

Thanks,

Mugu