<?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: traffic light in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588544#M592514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INCLUDE &amp;lt;ICON&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: result(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign ICON_GREEN_LIGHT to &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if result = 'OK'.&lt;/P&gt;&lt;P&gt;  assign ICON_GREEN_LIGHT to &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  assign ICON_RED_LIGHT to &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: &amp;lt;I&amp;gt; as icon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2007 13:26:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-03T13:26:38Z</dc:date>
    <item>
      <title>traffic light</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588542#M592512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with field text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whick wil contain values ok and not ok &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to dispaly output using traffic signal &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it s ok i have to dispaly light as green and for not ok &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have to display as red..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u help me guys?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 13:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588542#M592512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T13:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: traffic light</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588543#M592513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to add a column in your internal table defined for traffic light&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This field is of type Char 1, and can contain the following values:&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;1 Red&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;2 Yellow&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;3 Green&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OO-ALV&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The name of the traffic light field is supplied in the &amp;lt;b&amp;gt;layout-excp_fname&amp;lt;/b&amp;gt; used by &amp;lt;b&amp;gt;method set_table_for_first_display.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reuse ALV&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The name of the trafic lights should be filled in field&amp;lt;b&amp;gt; lights_fieldname&amp;lt;/b&amp;gt; of &amp;lt;b&amp;gt;is_layou&amp;lt;/b&amp;gt;t parameter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 13:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588543#M592513</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-08-03T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: traffic light</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588544#M592514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INCLUDE &amp;lt;ICON&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: result(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign ICON_GREEN_LIGHT to &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if result = 'OK'.&lt;/P&gt;&lt;P&gt;  assign ICON_GREEN_LIGHT to &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  assign ICON_RED_LIGHT to &amp;lt;I&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: &amp;lt;I&amp;gt; as icon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 13:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588544#M592514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: traffic light</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588545#M592515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Its simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We have to use the layout of alv also.&lt;/P&gt;&lt;P&gt;and one extra field in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Just copy paste in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : alvly TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;DATA : alvfc TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;lt TYPE i,&lt;/P&gt;&lt;P&gt;matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-lt = 1.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-lt = 2.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-lt = 3.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-lt = 1.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-lt = 3.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-lt = 3.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-lt = 3.&lt;/P&gt;&lt;P&gt;APPEND itab.&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;*----&lt;/P&gt;&lt;HR originaltext="----------------------------" /&gt;&lt;P&gt;alvly-lights_fieldname = 'LT'.&lt;/P&gt;&lt;P&gt;alvly-lights_tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = sy-repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'ITAB'&lt;/P&gt;&lt;P&gt;i_inclname = sy-repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = alvfc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;it_fieldcat = alvfc&lt;/P&gt;&lt;P&gt;is_layout = alvly&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab.&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;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 13:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light/m-p/2588545#M592515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T13:28:07Z</dc:date>
    </item>
  </channel>
</rss>

