<?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: Problem with ALV using classes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853843#M1592237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is possible that you are passing fields property in fieldcatalog, setting "KEY" = true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 11:47:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-06T11:47:50Z</dc:date>
    <item>
      <title>Problem with ALV using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853842#M1592236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt; I am facing a strange problem with ALV grid.&lt;/P&gt;&lt;P&gt;I am using the method set_table_for_first_display of class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;For Layout I am using FM 'LVC_FIELDCATALOG_MERGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the output all the fields are displayed in blue colour. I am not modifying the field catalogue.&lt;/P&gt;&lt;P&gt;One more strange thing I observed is if I dont pass variant to the method set_table_for_first_display, the output is fine (all the columns are in white colour).&lt;/P&gt;&lt;P&gt;Now I want all the fields in white colour when i pass variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = 'ZC9_TWS_DEV_OUTPUT'
      i_bypassing_buffer     = 'X'
    CHANGING
      ct_fieldcat            = gs_fieldcat
    EXCEPTIONS
      inconsistent_interface = 0
      program_error          = 0
      OTHERS                 = 0.

CALL METHOD go_grid_1-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout       = gs_layout
      is_variant      = gv_variant
      i_save          = 'A'
      i_default       = 'X'
    CHANGING
      it_fieldcatalog = gs_fieldcat
      it_outtab       = gt_output.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aravind Kanaparthi on May 6, 2011 11:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853842#M1592236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-06T09:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853843#M1592237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is possible that you are passing fields property in fieldcatalog, setting "KEY" = true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 11:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853843#M1592237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-06T11:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853844#M1592238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Spantaleoni ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;As you said I was setting the key field and then removed it. But that field layout is saved and every time that layout was being called.So, All the columns are in blue colour even the key field is space&lt;/P&gt;&lt;P&gt;I have deleted the default layout. Now its fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 12:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853844#M1592238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-06T12:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853845#M1592239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved by myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 12:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-using-classes/m-p/7853845#M1592239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-06T12:25:27Z</dc:date>
    </item>
  </channel>
</rss>

