<?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: Group/ Sort in ALV using OOPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192859#M1625397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, But I am confused, you seem to be writing 2 diff statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; such that the field will *not* appear ONCE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I want the Matnr to appear once&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, items (other fields) will remain as it is unless you change them specifically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you want to sort by MATNR now, fill gt_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_sort-SPOS = 01.&lt;/P&gt;&lt;P&gt;gt_sort-FIELDNAME = 'AENAM'.&lt;/P&gt;&lt;P&gt;gt_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;append gt_sort.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now, you want to merge MATNR or not, can be controlled by below parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_layout-NO_MERGING = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what is not working for you ? I believe order of field should not matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 05:16:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-19T05:16:21Z</dc:date>
    <item>
      <title>Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192854#M1625392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am using ALV control USING OOPS on my screen output.&lt;/P&gt;&lt;P&gt;I need to sort/group the output by a field such that the field will not appear ONCE and the items reated to that will appear as &lt;/P&gt;&lt;P&gt;they are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:  &lt;/P&gt;&lt;P&gt;MATNR ITEMS DESC AMOUNT   --&amp;gt;field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     abc        10     glass         10.0&lt;/P&gt;&lt;P&gt;                    20    black met   20.0&lt;/P&gt;&lt;P&gt;                    30    sulfa          30.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     abc        40     moldie        40.0&lt;/P&gt;&lt;P&gt;                   50    black met   11.0&lt;/P&gt;&lt;P&gt;                   60    sulfa          33.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed the ALV grid using OOPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 00:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192854#M1625392</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-19T00:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192855#M1625393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the links...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ALV&lt;/A&gt;&lt;EM&gt;Grid&lt;/EM&gt;Report&lt;EM&gt;-&lt;/EM&gt;with&lt;EM&gt;Object&lt;/EM&gt;Oriented&lt;EM&gt;SALV&lt;/EM&gt;Classes&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/OBJECT" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/OBJECT&lt;/A&gt;&lt;EM&gt;ORIENTED&lt;/EM&gt;ALV+Guide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 01:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192855#M1625393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T01:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192856#M1625394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NAresh,&lt;/P&gt;&lt;P&gt;This is NOT working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case the field (say MATNR) that i want to group by is at a 2nd position in the output.&lt;/P&gt;&lt;P&gt;In the first position i have a check box. Is that causing NOT to group by/sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 03:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192856#M1625394</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-19T03:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192857#M1625395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;such that the field will not appear ONCE and the items reated to that will appear as they are&lt;/U&gt; .... I suppose you mean that you want to sort but you don't want to merge the same values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
gt_sort-SPOS = 01.
gt_sort-FIELDNAME = 'AENAM'.
gt_sort-up = 'X'.
append gt_sort.

ls_layout-NO_MERGING = 'X'.

CALL METHOD lo_alv-&amp;gt;set_table_for_first_display
   EXPORTING
     i_structure_name              = 'MARA'
     IS_LAYOUT                     = ls_layout
  CHANGING
     it_outtab                     = gt_mara
     it_fieldcatalog               = gt_fcat
     it_sort                       = gt_sort[]
*    it_filter                     =
  EXCEPTIONS
.............
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand what you wanted to show with the data example you posted, let me know if I misunderstand your question/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 03:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192857#M1625395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T03:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192858#M1625396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its simple. &lt;/P&gt;&lt;P&gt;I want the Matnr to appear once but the items have to appear as they are.(Similar to what shown in the 2nd link that Naresh Patel posted). definitely i dont want to merge the items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the field that i want to sort need to be in 1st position or that doesn' t matter, I have check box as the 1st field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 04:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192858#M1625396</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-19T04:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192859#M1625397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, But I am confused, you seem to be writing 2 diff statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; such that the field will *not* appear ONCE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I want the Matnr to appear once&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, items (other fields) will remain as it is unless you change them specifically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you want to sort by MATNR now, fill gt_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_sort-SPOS = 01.&lt;/P&gt;&lt;P&gt;gt_sort-FIELDNAME = 'AENAM'.&lt;/P&gt;&lt;P&gt;gt_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;append gt_sort.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now, you want to merge MATNR or not, can be controlled by below parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_layout-NO_MERGING = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what is not working for you ? I believe order of field should not matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 05:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192859#M1625397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T05:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192860#M1625398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diwakar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the MATNR to appear once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR ITEMS DESC AMOUNT --&amp;gt;field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current output: (columns may be mis aligned)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matnr1 10 glass      10.0&lt;/P&gt;&lt;P&gt;Matnr1 20 black met 20.0&lt;/P&gt;&lt;P&gt;Matnr1 30 Batteries  30.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matnr2  40 glass       40.0&lt;/P&gt;&lt;P&gt;Matnr2  50 black met 50.0&lt;/P&gt;&lt;P&gt;Matnr2  60 Batteries  60.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESIRED OUTPUT : I want the desired output as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matnr1 10 glass       10.0&lt;/P&gt;&lt;P&gt;            20 black met 20.0&lt;/P&gt;&lt;P&gt;            30 Batteries  30.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matnr2 40 glass       40.0&lt;/P&gt;&lt;P&gt;            50 black met 50.0&lt;/P&gt;&lt;P&gt;            60 Batteries  60.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this MATNR is at column# 2. NOT the first field in the output. 1st column has checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 12:08:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192860#M1625398</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-19T12:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192861#M1625399</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;Plz refer below link for OOALV.&lt;/P&gt;&lt;P&gt;/thread/492162 &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 12:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192861#M1625399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192862#M1625400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick, this looks pretty basic. You can display the grid, mark coluimns MATNR with the mouse, click SORT ascending icon, save (and transport) as default layout variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If MATNR appears in all rows, it is not SORTED.  Or you use NO_MERGING in layout, then sorted columns will not merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lt_sort-SPOS = 1.
lt_sort-FIELDNAME = 'MATNR'.
lt_sort-up = 'X'.
append lt_sort.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass it to IT_SORT parameter. That's it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 23:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192862#M1625400</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-19T23:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192863#M1625401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;Yes this is basic stuff. &lt;/P&gt;&lt;P&gt;But i lost the grouping &amp;amp; also Zebra display when i placed a check box on my ALV grid using.lvc_s_fcat-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its quite surprsing to see such an impact after placing a checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2011 18:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192863#M1625401</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-21T18:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192864#M1625402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested with first column as 'Checkbox' field. Sorting, grouping (2nd field), zebra all seem to be Working well for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please paste your relevant code ?&lt;/P&gt;&lt;P&gt;Do you have some CELL as Editable in the Grid, Grouping might get impacted due to that, but Zebra should still work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 02:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192864#M1625402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-22T02:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192865#M1625403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;Yes. I have the same Checkbox field as EDITABLE in the field catalog.&lt;/P&gt;&lt;P&gt;IF i have that Check Box column (CELL)  as Editable, both grouping &amp;amp; ZEBRA display are effected.&lt;/P&gt;&lt;P&gt;I have marked the layout-zebra = 'X' &amp;amp; passed the same in Set_table_first_display method.&lt;/P&gt;&lt;P&gt;Sample code of my field catalog declaration check box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 data :gs_layout             type lvc_s_layo,
 gs_fieldcat           type lvc_s_fcat.

  gs_fieldcat-fieldname = 'PROCESS'.
  gs_fieldcat-inttype = 'C'.
  gs_fieldcat-coltext = 'Process'.
  gs_fieldcat-checkbox = 'X'.
  gs_fieldcat-edit = 'X'.
  gs_fieldcat-outputlen = 3.
  append gs_fieldcat to gt_fieldcat.
  clear  gs_fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions please..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 03:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192865#M1625403</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-22T03:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192866#M1625404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Grouping, I had encountered this earlier (No grouping on sorted field if any cell in the grid is editable) and not sure we have a solution for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Zebra, it should work Fine. Please check your code carefully that there is no miss-out. The colour changes for zebra lining when any column is Editable, so might be you are not carefully analysing it. Open in 2 parallel sessions, with 1 having layout-zebra = 'X' and otherwithout it and you should be able to Notice some difference in the Grid for Sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 04:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192866#M1625404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-22T04:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Group/ Sort in ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192867#M1625405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;No. Its NOT working. Its NOT showing ZEBRA lines atleast .&lt;/P&gt;&lt;P&gt;This is what my code is:&lt;/P&gt;&lt;P&gt;data: gs_layout             type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; gs_layout-zebra = 'X'.

  call method r_grid-&amp;gt;set_table_for_first_display
    exporting
      is_variant           = w_variant
      i_save               = 'A'
      i_default            = 'X'
      is_layout            = gs_layout
*     it_toolbar_excluding = it_exclude
    changing
      it_outtab        = it_final 
      it_sort          = t_sort
      it_fieldcatalog      = gt_fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suugestions pls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 19:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/group-sort-in-alv-using-oops/m-p/8192867#M1625405</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-22T19:14:02Z</dc:date>
    </item>
  </channel>
</rss>

