2013 Jun 25 1:26 PM
HI All ,
I am passing the value of internal table for the first time it is updating the correct graph , but after pressing the back button i am passing new value to the internal table and but graph is not refreshing .
LOOP AT gt_chart INTO gwa_chart.
lobj_element = xu_ixml_doc->create_simple_element(
name = 'C' parent = lobj_categories ).
lobj_element->if_ixml_node~set_value( gwa_chart-text ).
lobj_element = xu_ixml_doc->create_simple_element(
name = 'S' parent = lobj_series ).
lobj_element->if_ixml_node~set_value( gwa_chart-value ).
endloop.
Reagards
Kishore
2013 Jun 25 4:29 PM
You must be calling methods set_data and render of class instance cl_gui_chart_engine in PBO module.
Put a breakpoint and check whether on repeat attempt, fresh data is being set or not.
2013 Jun 25 4:29 PM
You must be calling methods set_data and render of class instance cl_gui_chart_engine in PBO module.
Put a breakpoint and check whether on repeat attempt, fresh data is being set or not.
2013 Jun 25 7:57 PM
Hi Manish,
I have also similar requirement and i use set method and render the class instance . The data is Passing Perfectly but second time data is passing correctly but it is not updating with new value.
gobj_ce_viewer->set_data( xdata = lv_xstr ).
lobj_ostream = gobj_ixml_sf->create_ostream_xstring( lv_xstr ).
CALL METHOD lobj_ixml_custom_doc->render
EXPORTING
ostream = lobj_ostream.
gobj_ce_viewer->set_customizing( xdata = lv_xstr ).
Thanks
Rajeev
2013 Jun 26 8:59 AM
It is possible that in PBO module, you have put code that runs only when custom container in INITIAL.
Because of such validation, internal table gets assigned to chart only on first PBO run.
On subsequent PBO runs, even if internal table changes, the changes won't get registered in chart because custom container is no longer initial.
2013 Jun 26 11:06 AM
Hi Manish ,
Thanks for the reply .
For that reason i free the custom custom container each time and value is passing correctly.but chart value is not populated on the screen.
Thanks
Rajeev
2013 Jun 26 4:46 PM
2013 Jun 27 6:56 AM
Hi Manish,
Thanks for your reply.
I have already free the container in PAI module .
When 'BACK'
IF gobj_ce_container IS NOT INITIAL.
gobj_ce_container->free( ).
ENDIF.
LEAVE TO SCREEN 0.
One more question here if we are using module pool to generate selection screen and one more screen to display the chart then it will work or not because if we are checking standard program
they didn't use module pool program to generate selection screen .
Thanks
Rajeev
2013 Jun 27 7:54 AM
It should work.
This theory can be confirmed by copying the standard program and modifying it.
2013 Jun 27 8:47 AM
But Not able to refreshing the chart value but container is refreshing each time.
2013 Jun 27 4:51 PM
2013 Jun 28 12:56 PM
Thans manish , all your answers were helpful and i got the desired result .
Regards
kishore
2013 Jul 04 6:18 AM
Hi Manish,
Could you please provide us the valuable suggestion on this thread.
http://scn.sap.com/thread/3384653
Thanks
Rajeev
2013 Jun 27 7:40 AM