<?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: Problem with CL_GUI_GP_PRES and Customizing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491589#M1063023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you just have started with your project then use the chart engine instead of the GFW!&lt;/P&gt;&lt;P&gt;All customizing settings (colors, chart types etc) are set via XML that can be easily created interactively using the SAP Chart Designer (see SDN - download). So you don' t have to bother about CL_CU_VALUES instances for settings the colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2008 13:07:09 GMT</pubDate>
    <dc:creator>kai_gutenkunst</dc:creator>
    <dc:date>2008-09-10T13:07:09Z</dc:date>
    <item>
      <title>Problem with CL_GUI_GP_PRES and Customizing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491586#M1063020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i made a ABAP for displaying a grahpic chart which works fine. But the chart is without any color. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Screenshot|http://www.home.vr-web.de/markus.Marb/sap_problem.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the following coding in the customizing form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SET_CUSTo_auftrags_monitor.&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;    cuobj          TYPE REF TO IF_CUSTOMIZING,&lt;/P&gt;&lt;P&gt;    BUNDLE_DISPLAY TYPE REF TO CL_CU_DISPLAY_CONTEXT,&lt;/P&gt;&lt;P&gt;    BUNDLE_SHEET     TYPE REF TO CL_CU_DATA_SHEET,&lt;/P&gt;&lt;P&gt;    BUNDLE_VALUES    TYPE REF TO CL_CU_VALUES,&lt;/P&gt;&lt;P&gt;    titel_auftrags_monitor(50) type c,&lt;/P&gt;&lt;P&gt;    hilfsfeld_uhrzeit(15) type c,&lt;/P&gt;&lt;P&gt;    hilfsfeld_datum(15) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;compiler needs them:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  class cl_cu definition load.&lt;/P&gt;&lt;P&gt;  class cl_cu_drawing_area definition load.&lt;/P&gt;&lt;P&gt;  class cl_cu_display_context definition load.&lt;/P&gt;&lt;P&gt;  class cl_cu_values definition load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get customizing object for drawing area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD GP_INST-&amp;gt;IF_GRAPHIC_PROXY~GET_CU_BUNDLE&lt;/P&gt;&lt;P&gt;    EXPORTING PORT        = IF_GRAPHIC_PROXY=&amp;gt;CO_PORT_CHART&lt;/P&gt;&lt;P&gt;              BUNDLE_TYPE = CL_CU=&amp;gt;CO_CLSID_DRAWING_AREA&lt;/P&gt;&lt;P&gt;    IMPORTING BUNDLE      = cuobj.&lt;/P&gt;&lt;P&gt;  if not cuobj is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  set the title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    write: sy-datum to hilfsfeld_datum.&lt;/P&gt;&lt;P&gt;    write: sy-uzeit to hilfsfeld_uhrzeit.&lt;/P&gt;&lt;P&gt;    concatenate 'Stand:' hilfsfeld_datum hilfsfeld_uhrzeit into&lt;/P&gt;&lt;P&gt;       titel_auftrags_monitor separated by space.&lt;/P&gt;&lt;P&gt;    CALL METHOD cuobj-&amp;gt;SET&lt;/P&gt;&lt;P&gt;      EXPORTING ATTR_ID = CL_CU_DRAWING_AREA=&amp;gt;CO_TITLE&lt;/P&gt;&lt;P&gt;                VALUE   = titel_auftrags_monitor.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  get title context of drawing area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method cuobj-&amp;gt;get&lt;/P&gt;&lt;P&gt;      exporting attr_id = cl_cu_drawing_area=&amp;gt;co_title_context&lt;/P&gt;&lt;P&gt;      importing value   = BUNDLE_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  set visibility of title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD BUNDLE_DISPLAY-&amp;gt;IF_CUSTOMIZING~SET&lt;/P&gt;&lt;P&gt;      EXPORTING ATTR_ID = CL_CU_DISPLAY_CONTEXT=&amp;gt;co_visibility&lt;/P&gt;&lt;P&gt;                VALUE   = gfw_true.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  copy display context into drawing area (title)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD cuobj-&amp;gt;SET&lt;/P&gt;&lt;P&gt;      EXPORTING ATTR_ID = CL_CU_drawing_area=&amp;gt;CO_title_CONTEXT&lt;/P&gt;&lt;P&gt;                VALUE   = BUNDLE_DISPLAY.&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;Settings for column 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD GP_INST-&amp;gt;IF_GRAPHIC_PROXY~GET_CU_BUNDLE&lt;/P&gt;&lt;P&gt;    EXPORTING PORT        = IF_GRAPHIC_PROXY=&amp;gt;CO_PORT_CHART&lt;/P&gt;&lt;P&gt;              BUNDLE_TYPE = CL_CU=&amp;gt;CO_CLSID_VALUES&lt;/P&gt;&lt;P&gt;              KEY         = text_zeile1&lt;/P&gt;&lt;P&gt;    IMPORTING BUNDLE      = cuobj.&lt;/P&gt;&lt;P&gt;  if not cuobj is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  prepare display context for values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method cuobj-&amp;gt;get&lt;/P&gt;&lt;P&gt;      exporting attr_id = cl_cu_values=&amp;gt;co_curve_context&lt;/P&gt;&lt;P&gt;      importing value   = BUNDLE_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  set color of data series&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD bundle_display-&amp;gt;IF_CUSTOMIZING~SET&lt;/P&gt;&lt;P&gt;      EXPORTING ATTR_ID = cl_cu_display_context=&amp;gt;co_bg_clr_plt_id&lt;/P&gt;&lt;P&gt;                VALUE   = 5. " green&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  copy display context into values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD cuobj-&amp;gt;SET&lt;/P&gt;&lt;P&gt;      exporting ATTR_ID = cl_cu_values=&amp;gt;co_curve_context&lt;/P&gt;&lt;P&gt;                VALUE   = BUNDLE_DISPLAY.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 04:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491586#M1063020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-10T04:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CL_GUI_GP_PRES and Customizing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491587#M1063021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Markus Marb &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   Can you tell me how did you attach the screen shot in the thread. I am not getting any where mention about the screen shot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 06:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491587#M1063021</guid>
      <dc:creator>vijy_mukunthan</dc:creator>
      <dc:date>2008-09-10T06:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CL_GUI_GP_PRES and Customizing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491588#M1063022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check this thread... for sample program....&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="430034"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the color part in the thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 07:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491588#M1063022</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-09-10T07:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CL_GUI_GP_PRES and Customizing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491589#M1063023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you just have started with your project then use the chart engine instead of the GFW!&lt;/P&gt;&lt;P&gt;All customizing settings (colors, chart types etc) are set via XML that can be easily created interactively using the SAP Chart Designer (see SDN - download). So you don' t have to bother about CL_CU_VALUES instances for settings the colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 13:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cl-gui-gp-pres-and-customizing/m-p/4491589#M1063023</guid>
      <dc:creator>kai_gutenkunst</dc:creator>
      <dc:date>2008-09-10T13:07:09Z</dc:date>
    </item>
  </channel>
</rss>

