<?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: Graphical display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/graphical-display/m-p/5249583#M1212858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before digging into details of GFW programming let me recommend to use the chart engine instead. See report GRAPHICS_GUI_CE_DEMO. You can set the chart settings (e.g. the colors) very easy by interactively using the SAP Chart Designer (available in SDN-Downloads).&lt;/P&gt;&lt;P&gt;Regards, Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2009 11:46:04 GMT</pubDate>
    <dc:creator>kai_gutenkunst</dc:creator>
    <dc:date>2009-02-13T11:46:04Z</dc:date>
    <item>
      <title>Graphical display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graphical-display/m-p/5249582#M1212857</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 am unsing one of the standard program for one of graphical display requirement. The code is below.I  am getting graph without colors. could any one of them help me in this to set colors?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report Z_GRAPHICDISP_TEST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;include gfw_dc_pres.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ok_code type sy-ucomm, firstcall type i,&lt;/P&gt;&lt;P&gt;      custom_container type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;      dc_inst type ref to lcl_dc_pres,&lt;/P&gt;&lt;P&gt;      dc_manage type ref to if_dc_management,&lt;/P&gt;&lt;P&gt;      my_id_at_dc type i, retval type symsgno,&lt;/P&gt;&lt;P&gt;      gp_inst type ref to cl_gui_gp_pres.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USAGE allowed in SAP internal test reports, only&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  include applg_auto_test_init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USAGE allowed in SAP internal test reports, only&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  include applg_auto_test_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  PBO_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module pbo_0100 output.&lt;/P&gt;&lt;P&gt;  set pf-status '100'.&lt;/P&gt;&lt;P&gt;  retval = cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;  if firstcall is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create, initialize and fill data container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object dc_inst.&lt;/P&gt;&lt;P&gt;    dc_manage = dc_inst.&lt;/P&gt;&lt;P&gt;    call method dc_manage-&amp;gt;init importing id = my_id_at_dc&lt;/P&gt;&lt;P&gt;                                          retval = retval.&lt;/P&gt;&lt;P&gt;    if retval &amp;lt;&amp;gt; cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;      call method cl_gfw=&amp;gt;show_msg exporting msgno = retval.&lt;/P&gt;&lt;P&gt;      clear dc_inst.&lt;/P&gt;&lt;P&gt;      clear dc_manage.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_dc changing retval.&lt;/P&gt;&lt;P&gt;      if retval &amp;lt;&amp;gt; cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;        call method cl_gfw=&amp;gt;show_msg exporting msgno = retval.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      create a container on the dynpro&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        create object custom_container exporting&lt;/P&gt;&lt;P&gt;                           container_name = 'CONTAINER'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      create, initialize and activate graphics proxy&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        create object gp_inst.&lt;/P&gt;&lt;P&gt;        call method gp_inst-&amp;gt;if_graphic_proxy~init&lt;/P&gt;&lt;P&gt;                 exporting parent       = custom_container&lt;/P&gt;&lt;P&gt;                           dc           = dc_inst&lt;/P&gt;&lt;P&gt;                           prod_id      = cl_gui_gp_pres=&amp;gt;co_prod_chart&lt;/P&gt;&lt;P&gt;                           force_prod   = gfw_true&lt;/P&gt;&lt;P&gt;                 importing retval       = retval.&lt;/P&gt;&lt;P&gt;        if retval = cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        set dc attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          call method gp_inst-&amp;gt;set_dc_names&lt;/P&gt;&lt;P&gt;                    exporting&lt;/P&gt;&lt;P&gt;                       obj_id    = 'OBJID'&lt;/P&gt;&lt;P&gt;                       dim1      = 'X_VAL'&lt;/P&gt;&lt;P&gt;                       dim2      = 'Y_VAL'&lt;/P&gt;&lt;P&gt;                       grp_id    = 'GRPID'&lt;/P&gt;&lt;P&gt;                    importing retval = retval.&lt;/P&gt;&lt;P&gt;        endif. "// set dc attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      set customizing objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        if retval = cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;          perform set_customizing.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if retval = cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;          call method gp_inst-&amp;gt;if_graphic_proxy~activate&lt;/P&gt;&lt;P&gt;                               importing retval = retval.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        if retval &amp;lt;&amp;gt; cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;          call method cl_gfw=&amp;gt;show_msg exporting msgno = retval.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      firstcall = 1.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;**** distribute changes (to all subscribed graphics proxies)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not dc_manage is initial.&lt;/P&gt;&lt;P&gt;    call method dc_manage-&amp;gt;distribute_changes&lt;/P&gt;&lt;P&gt;                         importing retval = retval.&lt;/P&gt;&lt;P&gt;    if retval &amp;lt;&amp;gt; cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;      call method cl_gfw=&amp;gt;show_msg exporting msgno = retval.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USAGE allowed in SAP internal test reports, only&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform auto_test_pbo using 'EXIT'.&lt;/P&gt;&lt;P&gt;endmodule.                 " PBO_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  PAI_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module pai_0100 input.&lt;/P&gt;&lt;P&gt;  ok_code = sy-ucomm.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;activate event analysis of object-oriented Control Framework&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_gui_cfw=&amp;gt;dispatch.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;handle other events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  case ok_code.&lt;/P&gt;&lt;P&gt;    when 'BACK'.&lt;/P&gt;&lt;P&gt;      call method gp_inst-&amp;gt;if_graphic_proxy~free&lt;/P&gt;&lt;P&gt;                           importing retval = retval.&lt;/P&gt;&lt;P&gt;      leave program.&lt;/P&gt;&lt;P&gt;    when 'EXIT'.&lt;/P&gt;&lt;P&gt;      call method gp_inst-&amp;gt;if_graphic_proxy~free&lt;/P&gt;&lt;P&gt;                           importing retval = retval.&lt;/P&gt;&lt;P&gt;      leave program.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " PAI_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  FILL_DC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fill_dc changing value(retval) type symsgno.&lt;/P&gt;&lt;P&gt;  data: obj type gfwdcpres,&lt;/P&gt;&lt;P&gt;        objtable type standard table of gfwdcpres.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill dc with initial data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if dc_inst is initial.&lt;/P&gt;&lt;P&gt;    retval = cl_gfw=&amp;gt;e_gp_dchandle.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  retval = cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data series(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       object_type type char40,&lt;/P&gt;&lt;P&gt;       obj_count type char30,&lt;/P&gt;&lt;P&gt;       cur_count type char30,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;select OBJ_TYP OBJ_CNT CUR_OBJ into table itab from ZCTS_CUP_SUMMARY..&lt;/P&gt;&lt;P&gt;  series = 'TOTAL OBJECTS'.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  obj-grpid = series.&lt;/P&gt;&lt;P&gt;  obj-x_val = itab-object_type.&lt;/P&gt;&lt;P&gt;  obj-y_val = itab-obj_count.&lt;/P&gt;&lt;P&gt;  append obj to objtable.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;series = 'CYURRENT STATUS'.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  obj-grpid = series.&lt;/P&gt;&lt;P&gt;  obj-x_val = itab-object_type.&lt;/P&gt;&lt;P&gt;  obj-y_val = itab-cur_count.&lt;/P&gt;&lt;P&gt;  append obj to objtable.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; call method dc_inst-&amp;gt;set_obj_tab&lt;/P&gt;&lt;P&gt;    exporting objtab = objtable&lt;/P&gt;&lt;P&gt;    importing retval = retval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " FILL_DC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SET_CUSTOMIZING&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form set_customizing.&lt;/P&gt;&lt;P&gt;  data: groups type gfw_grpid_list,&lt;/P&gt;&lt;P&gt;        text type gfwcuvac&lt;/P&gt;&lt;P&gt;          value 'STATUS REPORT'. "#EC NOTEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;let the proxy create customizing-bundles for groups and other stuff&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; append co_gfw_prog_series1 to groups.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; append co_gfw_prog_series2 to groups.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method gp_inst-&amp;gt;create_customizing&lt;/P&gt;&lt;P&gt;    exporting instance_id = 'GFW_PROG_DC_PERFORMANCE'&lt;/P&gt;&lt;P&gt;              grpids      = groups&lt;/P&gt;&lt;P&gt;              title       = text&lt;/P&gt;&lt;P&gt;    importing retval      = retval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if retval &amp;lt;&amp;gt; cl_gfw=&amp;gt;ok.&lt;/P&gt;&lt;P&gt;    call method cl_gfw=&amp;gt;show_msg exporting msgno = retval.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: M M on Feb 13, 2009 7:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 06:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graphical-display/m-p/5249582#M1212857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T06:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Graphical display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graphical-display/m-p/5249583#M1212858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before digging into details of GFW programming let me recommend to use the chart engine instead. See report GRAPHICS_GUI_CE_DEMO. You can set the chart settings (e.g. the colors) very easy by interactively using the SAP Chart Designer (available in SDN-Downloads).&lt;/P&gt;&lt;P&gt;Regards, Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 11:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graphical-display/m-p/5249583#M1212858</guid>
      <dc:creator>kai_gutenkunst</dc:creator>
      <dc:date>2009-02-13T11:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Graphical display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graphical-display/m-p/5249584#M1212859</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;  Yes. I too got the solution and by using the same program which you have mentioned in reply. Thank you for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards&lt;/P&gt;&lt;P&gt;  MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 12:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graphical-display/m-p/5249584#M1212859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T12:03:16Z</dc:date>
    </item>
  </channel>
</rss>

