<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create dynamically updating graph ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamically-updating-graph/m-p/3720422#M895608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maheswari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help. Apparently issue with my code lies on the following : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  obj-objid = co_gfw_prog_objid_1.
  obj-grpid = co_gfw_prog_series1.
  obj-x_val = co_gfw_prog_long_category1.
  obj-y_val = 50. "new value

  call method dc_inst-&amp;gt;set_obj_values
    exporting id     = my_id_at_dc
              obj    = obj
    importing retval = retval.

  if retval &amp;lt;&amp;gt; cl_gfw=&amp;gt;ok. exit. endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method call dc_inst-&amp;gt;set_obj_values has retval other than 000 (meaning not OK). So it goes to exit statement in the next if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug, apparently this method doesn't allow repost of the same key (it seems like, the code portion behaves like INSERT so after the insertion we can't call the insert again). Meaning, I need to use some other way to update the old value to new value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly advise if my analysis is correct, and please help on solution to update values in data container for the graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ainun Najib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2008 08:11:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-06T08:11:35Z</dc:date>
    <item>
      <title>How to create dynamically updating graph ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamically-updating-graph/m-p/3720420#M895606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a pie chart display, that is able to be refreshed/reloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i'm new to ABAP, what i'm currently doing is trying to modify a given program example : GFW_PROG_PIE so that everytime i press enter (sy-ucomm is other than BACK and EXIT) it would refreshed with the new value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to put the following code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;obj-objid = co_gfw_prog_objid_1.
  obj-grpid = co_gfw_prog_series1.
  obj-x_val = co_gfw_prog_long_category1.
  obj-y_val = 50. "new value
  call method dc_inst-&amp;gt;set_obj_values
    exporting id     = my_id_at_dc
              obj    = obj
    importing retval = retval.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into the line which always executed when the page is "reloaded" :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  if firstcall is initial.

.............
  else.

* i inserted the code here

  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem working. Please help ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ainun Najib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ainun Najib on May 6, 2008 8:40 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ainun Najib on May 6, 2008 8:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 06:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamically-updating-graph/m-p/3720420#M895606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T06:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamically updating graph ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamically-updating-graph/m-p/3720421#M895607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DYNP_VALUES_READ&lt;/STRONG&gt; This function module will pass the value automatically with out pressing enter or any other. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following example code this the pice of code in my program look at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
* FORM F4HELP_OBJECTID                                                 *
*----------------------------------------------------------------------*
* This subroutine is used for F4help in object ID i.e. to get          *
* corresponding object ID based on the project ID entered.             *
*----------------------------------------------------------------------*
* There are no interface parameters to be passed to this subroutine.   *
*----------------------------------------------------------------------*
FORM f4help_objectid.

  GET CURSOR LINE w_lineno.
  fs_sc_val-fieldname = 'FS_TIMESHEET-PID'.
  fs_sc_val-stepl     =  w_lineno.
  APPEND fs_sc_val TO it_sc_val.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-repid
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = it_sc_val
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      OTHERS               = 11.

  IF sy-subrc EQ 0.
    READ TABLE it_sc_val INTO fs_field
          WITH KEY fieldname = c_fieldname.
  ENDIF.                               " IF sy-subrc EQ 0

  SELECT  projectid                    " Project ID
          objectid                     " Object ID
          objectname                   " Object Name
    FROM  zcl_objects
    INTO  TABLE it_values
   WHERE  projectid EQ fs_field-fieldvalue.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = c_objectid
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = c_fieldoid
      value_org   = c_char_s
    TABLES
      value_tab   = it_values.

  CLEAR fs_timesheet-pid.
  REFRESH it_values.
  REFRESH it_sc_val.

ENDFORM.                               " F4HELP_OBJECTID
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code the function module &lt;STRONG&gt;DYNP_VALUES_READ&lt;/STRONG&gt; helpful to u. in my requirment i want the F4 helf with the corresponding of privious value ( With out pressing the enter ). In your requirment you want to use the values thats it. but i think the function module is enough to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 07:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamically-updating-graph/m-p/3720421#M895607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T07:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamically updating graph ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamically-updating-graph/m-p/3720422#M895608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maheswari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help. Apparently issue with my code lies on the following : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  obj-objid = co_gfw_prog_objid_1.
  obj-grpid = co_gfw_prog_series1.
  obj-x_val = co_gfw_prog_long_category1.
  obj-y_val = 50. "new value

  call method dc_inst-&amp;gt;set_obj_values
    exporting id     = my_id_at_dc
              obj    = obj
    importing retval = retval.

  if retval &amp;lt;&amp;gt; cl_gfw=&amp;gt;ok. exit. endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method call dc_inst-&amp;gt;set_obj_values has retval other than 000 (meaning not OK). So it goes to exit statement in the next if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug, apparently this method doesn't allow repost of the same key (it seems like, the code portion behaves like INSERT so after the insertion we can't call the insert again). Meaning, I need to use some other way to update the old value to new value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly advise if my analysis is correct, and please help on solution to update values in data container for the graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ainun Najib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 08:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamically-updating-graph/m-p/3720422#M895608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T08:11:35Z</dc:date>
    </item>
  </channel>
</rss>

