<?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: creating an ALV report using factory method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036645#M964816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;color constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS: col.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type for row of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: BEGIN OF tt_book.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE sbook.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;color information&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: it_colors TYPE lvc_t_scol,&lt;/P&gt;&lt;P&gt;END OF tt_book.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: it_book TYPE TABLE OF tt_book,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;work area for internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_book LIKE LINE OF it_book,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;work area for internal table for colors&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_colors LIKE LINE OF wa_book-it_colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_book INTO wa_book.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field SMOKER shall be COL_GROUP if checked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF wa_book-smoker = u2019Xu2019.&lt;/P&gt;&lt;P&gt;CLEAR wa_colors.&lt;/P&gt;&lt;P&gt;wa_colors-fname = u2019SMOKERu2019.&lt;/P&gt;&lt;P&gt;wa_colors-color-col = col_group.&lt;/P&gt;&lt;P&gt;wa_colors-color-int = 1.&lt;/P&gt;&lt;P&gt;APPEND wa_colors TO wa_book-it_colors.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY it_book&lt;/P&gt;&lt;P&gt;FROM wa_book TRANSPORTING it_colors.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set color column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;preconditions:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;1. lr_columns is TYPE REF TO cl_salv_columns_table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;2. COLUMNS object has been retrieved&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: lr_columns TYPE REF TO cl_salv_columns_table.&lt;/P&gt;&lt;P&gt;lr_columns-&amp;gt;set_color_column( value = u2019IT_COLORSu2019 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure for changing the color of a whole row is, in principle, the same as for&lt;/P&gt;&lt;P&gt;changing the color of a cell. The color information is passed to the internal data table&lt;/P&gt;&lt;P&gt;using the additional table for the row. &lt;STRONG&gt;The only difference: no value is specified for&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the field fname, meaning that the setting applies for the whole row&lt;/STRONG&gt;. Regardless of this,&lt;/P&gt;&lt;P&gt;however, you can still assign different color values to individual cells in this row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 13:05:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T13:05:21Z</dc:date>
    <item>
      <title>creating an ALV report using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036643#M964814</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 creating an ALV report using factory method.&lt;/P&gt;&lt;P&gt;my report is based on itab which contain 3 coulms, 1 column is ERROR_TYPE . how can i color all the rows which contain E in error_type ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Ami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 12:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036643#M964814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T12:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: creating an ALV report using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036644#M964815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ALV Object Moldel using CL_SALV_COLUMNS_TABLE you cannot color a row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 13:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036644#M964815</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-06-24T13:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: creating an ALV report using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036645#M964816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;color constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS: col.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type for row of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: BEGIN OF tt_book.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE sbook.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;color information&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: it_colors TYPE lvc_t_scol,&lt;/P&gt;&lt;P&gt;END OF tt_book.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: it_book TYPE TABLE OF tt_book,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;work area for internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_book LIKE LINE OF it_book,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;work area for internal table for colors&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;wa_colors LIKE LINE OF wa_book-it_colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_book INTO wa_book.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field SMOKER shall be COL_GROUP if checked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF wa_book-smoker = u2019Xu2019.&lt;/P&gt;&lt;P&gt;CLEAR wa_colors.&lt;/P&gt;&lt;P&gt;wa_colors-fname = u2019SMOKERu2019.&lt;/P&gt;&lt;P&gt;wa_colors-color-col = col_group.&lt;/P&gt;&lt;P&gt;wa_colors-color-int = 1.&lt;/P&gt;&lt;P&gt;APPEND wa_colors TO wa_book-it_colors.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY it_book&lt;/P&gt;&lt;P&gt;FROM wa_book TRANSPORTING it_colors.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set color column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;preconditions:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;1. lr_columns is TYPE REF TO cl_salv_columns_table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;2. COLUMNS object has been retrieved&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: lr_columns TYPE REF TO cl_salv_columns_table.&lt;/P&gt;&lt;P&gt;lr_columns-&amp;gt;set_color_column( value = u2019IT_COLORSu2019 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure for changing the color of a whole row is, in principle, the same as for&lt;/P&gt;&lt;P&gt;changing the color of a cell. The color information is passed to the internal data table&lt;/P&gt;&lt;P&gt;using the additional table for the row. &lt;STRONG&gt;The only difference: no value is specified for&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the field fname, meaning that the setting applies for the whole row&lt;/STRONG&gt;. Regardless of this,&lt;/P&gt;&lt;P&gt;however, you can still assign different color values to individual cells in this row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 13:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036645#M964816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T13:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: creating an ALV report using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036646#M964817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i control the color- for eg if i want red or yellow ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 13:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-an-alv-report-using-factory-method/m-p/4036646#M964817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T13:44:10Z</dc:date>
    </item>
  </channel>
</rss>

