<?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: Sorting two columns simultaneously in alv repot in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720111#M314361</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 sort command before passing final table to alv Fm&lt;/P&gt;&lt;P&gt;        sort itab by acct matnr.&lt;/P&gt;&lt;P&gt;default sort will be ascending you also also use&lt;/P&gt;&lt;P&gt;        sort itab by acct matnr descending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Nov 2006 10:31:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-18T10:31:17Z</dc:date>
    <item>
      <title>Sorting two columns simultaneously in alv repot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720108#M314358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;o/p should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gl account                   materialno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;40000                                    4&lt;/P&gt;&lt;P&gt;40000                                    4&lt;/P&gt;&lt;P&gt;40000                                    4&lt;/P&gt;&lt;P&gt;40000                                    a&lt;/P&gt;&lt;P&gt;40000                                    a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;40001                                    4&lt;/P&gt;&lt;P&gt;40001                                    4&lt;/P&gt;&lt;P&gt;40001                                    4&lt;/P&gt;&lt;P&gt;40001                                    b&lt;/P&gt;&lt;P&gt;40001                                    b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the answer as soon as possible with coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye for now ,&lt;/P&gt;&lt;P&gt;sivagopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 08:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720108#M314358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T08:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting two columns simultaneously in alv repot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720109#M314359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT itab by GLACCOUNT MATERIALNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should fix your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the issue is the columns the same data getting merged, the in the layout of the ALV, there should be MERGE attribute, make sure that is empty.&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;Note - Please mark the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ravikumar Allampallam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 08:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720109#M314359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T08:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting two columns simultaneously in alv repot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720110#M314360</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;Check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1 : Add data declaration for sort catalogue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_sortcat   type slis_sortinfo_alv occurs 1,&lt;/P&gt;&lt;P&gt;        wa_sort like line of it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2. Add code to build sort catalogue table  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_sort-spos      = 1.&lt;/P&gt;&lt;P&gt;  wa_sort-fieldname = 'EBELN'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_sortcat-tabname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_sort-spos      = 2.&lt;/P&gt;&lt;P&gt;  wa_sort-fieldname = 'EBELP'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gd_sortcat-tabname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep u r field names instead of EBELN and EBELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include parameter 'it_sort',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_callback_program      = gd_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           is_layout               = gd_layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            it_fieldcat             = fieldcatalog[]&lt;/P&gt;&lt;P&gt;            it_sort                 = it_sortcat&lt;/P&gt;&lt;P&gt;            i_save                  = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab                = it_ekko&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            program_error           = 1&lt;/P&gt;&lt;P&gt;            others                  = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep u r internal table instead of it_ekko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 08:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720110#M314360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T08:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting two columns simultaneously in alv repot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720111#M314361</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 sort command before passing final table to alv Fm&lt;/P&gt;&lt;P&gt;        sort itab by acct matnr.&lt;/P&gt;&lt;P&gt;default sort will be ascending you also also use&lt;/P&gt;&lt;P&gt;        sort itab by acct matnr descending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 10:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720111#M314361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T10:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting two columns simultaneously in alv repot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720112#M314362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before passing your intenal table to alv,&lt;/P&gt;&lt;P&gt;sort the internal table by glaccount materialno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab glacc matno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will solve your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 11:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720112#M314362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T11:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting two columns simultaneously in alv repot</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720113#M314363</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;In ALV display, hold down the conrol key, mark the columns to be sorted by clicking on the top of each columns, click the SORT icon.&lt;/P&gt;&lt;P&gt;Then save the actual order as an ALVstandard  layout (name starts with /). &lt;/P&gt;&lt;P&gt;Goto menu, layout administration, mark the layout as default, save.From this menu, you can also transport the layout to target system. Depending on your release, after transport it may be not marked as default layout. In this case you have to do it in target system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you stay flexible.&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>Sat, 18 Nov 2006 14:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-two-columns-simultaneously-in-alv-repot/m-p/1720113#M314363</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-11-18T14:40:40Z</dc:date>
    </item>
  </channel>
</rss>

