<?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 ALV Multi Coloring in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533096#M1656857</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 have a simple requirement. My requirement is I would Like to Color a ALV grid Cell.&lt;/P&gt;&lt;P&gt;But, I want to color the cell in two ways.&lt;/P&gt;&lt;P&gt;1. Background Color of the particular Cell must be one color (Lets Say Yellow)&lt;/P&gt;&lt;P&gt;2. Text Color of the Particular Cell must be one color (Lets Say Red).&lt;/P&gt;&lt;P&gt;I have gone through many options like coloring a particular cell either background or Text. &lt;/P&gt;&lt;P&gt;But not both with different colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest that any one has done this in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jan 2012 06:00:27 GMT</pubDate>
    <dc:creator>Venkat_Sesha</dc:creator>
    <dc:date>2012-01-27T06:00:27Z</dc:date>
    <item>
      <title>ALV Multi Coloring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533096#M1656857</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 have a simple requirement. My requirement is I would Like to Color a ALV grid Cell.&lt;/P&gt;&lt;P&gt;But, I want to color the cell in two ways.&lt;/P&gt;&lt;P&gt;1. Background Color of the particular Cell must be one color (Lets Say Yellow)&lt;/P&gt;&lt;P&gt;2. Text Color of the Particular Cell must be one color (Lets Say Red).&lt;/P&gt;&lt;P&gt;I have gone through many options like coloring a particular cell either background or Text. &lt;/P&gt;&lt;P&gt;But not both with different colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest that any one has done this in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 06:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533096#M1656857</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2012-01-27T06:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Multi Coloring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533097#M1656858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Venkat ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below mentioned threads, Hope will help you .&lt;/P&gt;&lt;P&gt;[LINK1|http://help.sap.com/saphelp_nw04/helpdata/en/34/e7eb40c4f8712ae10000000a155106/content.htm]&lt;/P&gt;&lt;P&gt;[LINK2|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="417824"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;[LINK3|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="18753"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B&amp;amp;R,&lt;/P&gt;&lt;P&gt;Saravana.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 06:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533097#M1656858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-27T06:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Multi Coloring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533098#M1656859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Use this code to Background Color of the particular Cell .Try with the below Code definitely it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:gd_layout    type  slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gd_LAYOUT-coltab_fieldname = 'CELLCOLOR'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA_CELLCOLOR TYPE LVC_S_SCOL.&lt;/P&gt;&lt;P&gt;  DATA: ld_index TYPE SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_EKKO into wa_ekko.&lt;/P&gt;&lt;P&gt;    LD_INDEX = SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Set colour of EBELN field to various colors based on sy-tabix value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WA_CELLCOLOR-FNAME = 'EBELN'.&lt;/P&gt;&lt;P&gt;    WA_CELLCOLOR-COLOR-COL = sy-tabix.  "color code 1-7, if outside rage defaults to 7&lt;/P&gt;&lt;P&gt;    WA_CELLCOLOR-COLOR-INT = '1'.  "1 = Intensified on, 0 = Intensified off&lt;/P&gt;&lt;P&gt;    WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour&lt;/P&gt;&lt;P&gt;    APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.&lt;/P&gt;&lt;P&gt;    MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Set colour of NETPR field to color 4 if gt 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if wa_ekko-netpr gt 0.&lt;/P&gt;&lt;P&gt;      WA_CELLCOLOR-FNAME = 'NETPR'.&lt;/P&gt;&lt;P&gt;      WA_CELLCOLOR-COLOR-COL = 4.  "color code 1-7, if outside rage defaults to 7&lt;/P&gt;&lt;P&gt;      WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off&lt;/P&gt;&lt;P&gt;      WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour&lt;/P&gt;&lt;P&gt;      APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.&lt;/P&gt;&lt;P&gt;      MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.&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;  Set colour of AEDAT field text to red(6)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WA_CELLCOLOR-FNAME = 'AEDAT'.&lt;/P&gt;&lt;P&gt;    WA_CELLCOLOR-COLOR-COL = 6.  "color code 1-7, if outside rage defaults to 7&lt;/P&gt;&lt;P&gt;    WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off&lt;/P&gt;&lt;P&gt;    WA_CELLCOLOR-COLOR-INV = '1'.  "1 = text colour, 0 = background colour&lt;/P&gt;&lt;P&gt;    APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.&lt;/P&gt;&lt;P&gt;    MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 07:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533098#M1656859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-27T07:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Multi Coloring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533099#M1656860</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;Thanks for the comments. I clearly mentioned in the requirement that, I already googled and tested all the comments mentioned here.&lt;/P&gt;&lt;P&gt;Once again for a better Idea. My Requirement is : In the ALV GRID Cell, It should Have Back ground as Yellow and the Text in it should be Red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shravan, it was a good option to EMPHASIZE. But FYI... When we are already using LVC_S_SCOL to color the Text. we cant use EMPHASIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know any other suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: VENKAT SESHA on Jan 27, 2012 10:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 09:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533099#M1656860</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2012-01-27T09:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Multi Coloring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533100#M1656861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think this is possible. Last year I was searching for the same requirement which you are after. &lt;/P&gt;&lt;P&gt;Lets hope a solution is available Now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 10:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533100#M1656861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-27T10:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Multi Coloring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533101#M1656862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requireoment with reference to cell is not possible i guess. But with reference column is possible class : CL_SALV_COLUMNS_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 11:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-multi-coloring/m-p/8533101#M1656862</guid>
      <dc:creator>former_member15255</dc:creator>
      <dc:date>2012-01-27T11:36:58Z</dc:date>
    </item>
  </channel>
</rss>

