<?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: Report based SALV classes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204248#M131698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Irena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding coloring the columns, you need to include a color table as a part of the DATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of data_table.&lt;/P&gt;&lt;P&gt;include type MAIN_DATA.&lt;/P&gt;&lt;P&gt;types:   t_color     type lvc_t_scol,&lt;/P&gt;&lt;P&gt;       end   of DATA_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is done, you need to color each of the cells of each of the row differently, if that is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ls_color-fname     = 'COLUMN1'.&lt;/P&gt;&lt;P&gt;        ls_color-color-col = col_positive.&lt;/P&gt;&lt;P&gt;        ls_color-color-int = 0.&lt;/P&gt;&lt;P&gt;        ls_color-color-inv = 0.&lt;/P&gt;&lt;P&gt;        append ls_color to t_color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        data_table-t_color = lt_color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means there will be multiple rows in the t_color table for each row in the DATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will fix the issue for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are dealing with SALV classes, we will not have a FIELD CATALOG at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2006 11:16:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-29T11:16:35Z</dc:date>
    <item>
      <title>Report based SALV classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204246#M131696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have some questions about SALV report:&lt;/P&gt;&lt;P&gt;1. How I can to color key columns without to define&lt;/P&gt;&lt;P&gt;DB table with keys(like in demo examples),and &lt;/P&gt;&lt;P&gt;without that color rows  make color line on key colomns if I just add color to key column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I am using set_top_of_list method of cl_salv_table&lt;/P&gt;&lt;P&gt;to create header.&lt;/P&gt;&lt;P&gt;But I can't find how to create two types of header&lt;/P&gt;&lt;P&gt;like I did using REUSE_ALV_COMMENTARY_WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Irena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 10:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204246#M131696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T10:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Report based SALV classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204247#M131697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi irena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. if the fields are not key fields in the database table,&lt;/P&gt;&lt;P&gt;  then we have to make use&lt;/P&gt;&lt;P&gt;  of the field-catalogue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. in field-catalogue, &lt;/P&gt;&lt;P&gt;  there is one field&lt;/P&gt;&lt;P&gt;  KEY&lt;/P&gt;&lt;P&gt;   make that 'X'.&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>Wed, 29 Mar 2006 11:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204247#M131697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T11:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Report based SALV classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204248#M131698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Irena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding coloring the columns, you need to include a color table as a part of the DATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of data_table.&lt;/P&gt;&lt;P&gt;include type MAIN_DATA.&lt;/P&gt;&lt;P&gt;types:   t_color     type lvc_t_scol,&lt;/P&gt;&lt;P&gt;       end   of DATA_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is done, you need to color each of the cells of each of the row differently, if that is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ls_color-fname     = 'COLUMN1'.&lt;/P&gt;&lt;P&gt;        ls_color-color-col = col_positive.&lt;/P&gt;&lt;P&gt;        ls_color-color-int = 0.&lt;/P&gt;&lt;P&gt;        ls_color-color-inv = 0.&lt;/P&gt;&lt;P&gt;        append ls_color to t_color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        data_table-t_color = lt_color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means there will be multiple rows in the t_color table for each row in the DATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will fix the issue for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are dealing with SALV classes, we will not have a FIELD CATALOG at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 11:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204248#M131698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T11:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Report based SALV classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204249#M131699</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;try setting this KEY = 'X' for the field which you want to show the key color in your fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;fieldcatalog-key = 'X'.&amp;lt;/b&amp;gt;&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, 29 Mar 2006 11:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204249#M131699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T11:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Report based SALV classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204250#M131700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, your answer,Ravi, solves my problem.&lt;/P&gt;&lt;P&gt;Just I hoped that I'l use some property of key fields.&lt;/P&gt;&lt;P&gt;What about question 2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 13:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-based-salv-classes/m-p/1204250#M131700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T13:07:05Z</dc:date>
    </item>
  </channel>
</rss>

