<?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 Using an IGS Graph in Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-an-igs-graph-in-smartforms/m-p/772112#M38378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use an IGS produced graph inside a smart form (for invoice billing purposes), and have run into a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the code below, I get the graph in a raw table, but the graph produced from IGS is in GIF format.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I know to use it in smartforms, is to have it in TIF or BMP format (as I can't seem to convert a GIF file into a form graphic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know either:&lt;/P&gt;&lt;P&gt;a) How to get IGS to produce a TIF or BMP image?  or&lt;/P&gt;&lt;P&gt;b) How to convert and upload a GIF into the form graphic library without using an external tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example calling of IGS to produce bar graph &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    WTBL_GRAPH_DATA type IGS_DATA_TAB,
    wstr_igs_data TYPE igs_data,
    wo_igs_chart      type ref to cl_igs_chart.
    wc_content_type   type w3param-cont_type,
    wi_content_length type w3param-cont_len,
    wtbl_content      type w3mimetabtype,
    wc_msg(80)        type c.                         

  wstr_igs_data-groupid = 'Water'.
* create dummy data
  wstr_igs_data-y = 10.
  wstr_igs_data-x = 'January'.
  append wstr_igs_data to wtbl_graph_data.
  wstr_igs_data-y = 20.
  wstr_igs_data-x = 'February'.
  append wstr_igs_data to wtbl_graph_data.
  wstr_igs_data-y = 30.
  wstr_igs_data-x = 'March'.
  append wstr_igs_data to wtbl_graph_data.
  wstr_igs_data-y = 40.
  wstr_igs_data-x = 'April'.
  append wstr_igs_data to wtbl_graph_data.

  create object wo_igs_chart.

  wo_igs_chart-&amp;gt;type = 'COLS_3D'.
  wo_igs_chart-&amp;gt;width = '400'.
  wo_igs_chart-&amp;gt;height = '300'.
  wo_igs_chart-&amp;gt;title = 'Test Graph'.
  wo_igs_chart-&amp;gt;title_categories = 'Billing date'.
  wo_igs_chart-&amp;gt;title_values = 'Consumption (KWH)'.
  wo_igs_chart-&amp;gt;color_scheme = cl_igs_chart=&amp;gt;co_scheme_default.
  wo_igs_chart-&amp;gt;legend = cl_igs_chart=&amp;gt;co_legend_default.
  wo_igs_chart-&amp;gt;data = ITBL_GRAPH_DATA.

  wo_igs_chart-&amp;gt;send(
    importing
      content_type = wc_content_type
      content_length = wi_content_length
      content = wtbl_content
      msg_text = wc_msg
    exceptions
      others = 1
  ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Oct 2004 16:36:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-10-20T16:36:07Z</dc:date>
    <item>
      <title>Using an IGS Graph in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-an-igs-graph-in-smartforms/m-p/772112#M38378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use an IGS produced graph inside a smart form (for invoice billing purposes), and have run into a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the code below, I get the graph in a raw table, but the graph produced from IGS is in GIF format.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I know to use it in smartforms, is to have it in TIF or BMP format (as I can't seem to convert a GIF file into a form graphic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know either:&lt;/P&gt;&lt;P&gt;a) How to get IGS to produce a TIF or BMP image?  or&lt;/P&gt;&lt;P&gt;b) How to convert and upload a GIF into the form graphic library without using an external tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example calling of IGS to produce bar graph &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    WTBL_GRAPH_DATA type IGS_DATA_TAB,
    wstr_igs_data TYPE igs_data,
    wo_igs_chart      type ref to cl_igs_chart.
    wc_content_type   type w3param-cont_type,
    wi_content_length type w3param-cont_len,
    wtbl_content      type w3mimetabtype,
    wc_msg(80)        type c.                         

  wstr_igs_data-groupid = 'Water'.
* create dummy data
  wstr_igs_data-y = 10.
  wstr_igs_data-x = 'January'.
  append wstr_igs_data to wtbl_graph_data.
  wstr_igs_data-y = 20.
  wstr_igs_data-x = 'February'.
  append wstr_igs_data to wtbl_graph_data.
  wstr_igs_data-y = 30.
  wstr_igs_data-x = 'March'.
  append wstr_igs_data to wtbl_graph_data.
  wstr_igs_data-y = 40.
  wstr_igs_data-x = 'April'.
  append wstr_igs_data to wtbl_graph_data.

  create object wo_igs_chart.

  wo_igs_chart-&amp;gt;type = 'COLS_3D'.
  wo_igs_chart-&amp;gt;width = '400'.
  wo_igs_chart-&amp;gt;height = '300'.
  wo_igs_chart-&amp;gt;title = 'Test Graph'.
  wo_igs_chart-&amp;gt;title_categories = 'Billing date'.
  wo_igs_chart-&amp;gt;title_values = 'Consumption (KWH)'.
  wo_igs_chart-&amp;gt;color_scheme = cl_igs_chart=&amp;gt;co_scheme_default.
  wo_igs_chart-&amp;gt;legend = cl_igs_chart=&amp;gt;co_legend_default.
  wo_igs_chart-&amp;gt;data = ITBL_GRAPH_DATA.

  wo_igs_chart-&amp;gt;send(
    importing
      content_type = wc_content_type
      content_length = wi_content_length
      content = wtbl_content
      msg_text = wc_msg
    exceptions
      others = 1
  ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2004 16:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-an-igs-graph-in-smartforms/m-p/772112#M38378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-20T16:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using an IGS Graph in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-an-igs-graph-in-smartforms/m-p/772113#M38379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what about using the new chart engine (XMLCHART) of the IGS? With 6.20 you can use the class CL_IGS_CHART_ENGINE that provides several picture formats (GIF, JPG, PNG, WBMP, BMP, SVG).&lt;/P&gt;&lt;P&gt;As an alternative you could also send your GIF back to the IGS and request the image converter to return a BMP. But due to the additional round trip this doesn't seem to be the best solution. The image converter is available as CL_IGS_IMAGE_CONVERTER (6.40).&lt;/P&gt;&lt;P&gt;Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2004 08:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-an-igs-graph-in-smartforms/m-p/772113#M38379</guid>
      <dc:creator>kai_gutenkunst</dc:creator>
      <dc:date>2004-10-21T08:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using an IGS Graph in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-an-igs-graph-in-smartforms/m-p/772114#M38380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like my version of 6.20 doesn't have CL_IGS_CHART_ENGINE (and of course doesn't have CL_IG_IMAGE_CONVERTER).  So sounds like a very good solution in the future, but not in the current release we're using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information Kai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2004 17:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-an-igs-graph-in-smartforms/m-p/772114#M38380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-25T17:18:27Z</dc:date>
    </item>
  </channel>
</rss>

