<?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 report : Sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-sorting/m-p/5364696#M1234558</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;I have developed one ALV report which is displayed as follows.&lt;/P&gt;&lt;P&gt;Field1	   Field2	                                     field3&lt;/P&gt;&lt;P&gt;______________________________________________&lt;/P&gt;&lt;P&gt;1392320	 test notification for UKI1	             20090212&lt;/P&gt;&lt;P&gt;1392323	 test for limits &amp;amp; price freeze	            20090223&lt;/P&gt;&lt;P&gt;1392324	 ETG101 ontbreekt een bak.	       20090224&lt;/P&gt;&lt;P&gt;	      Tijdens het   controleren vande	      &lt;/P&gt;&lt;P&gt;	      bandverbinder in de ETG101 is	    &lt;/P&gt;&lt;P&gt;	      ergeconstateerd  dat er een bak	    &lt;/P&gt;&lt;P&gt;	      mist.Tijdens een  stop deze bak	    &lt;/P&gt;&lt;P&gt;	      monteren.	                                      &lt;/P&gt;&lt;P&gt;1392325	 eddad	                                          20090224&lt;/P&gt;&lt;P&gt;1392326	 test for limits &amp;amp; price freeze	            20090227&lt;/P&gt;&lt;P&gt;1392327	 test for limits &amp;amp; price freeze	            20090303&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. for field1 1392324, i have multiple data to display in Field2 which needs to be displayed one below the other.&lt;/P&gt;&lt;P&gt;All other fields in the next lines are blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I try to sort, it all get messed up like following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1	   Field2	                                     field3&lt;/P&gt;&lt;P&gt;______________________________________________&lt;/P&gt;&lt;P&gt;1392320	 test notification for UKI1	             20090212&lt;/P&gt;&lt;P&gt;1392323	 test for limits &amp;amp; price freeze	            20090223&lt;/P&gt;&lt;P&gt;1392324	 ETG101 ontbreekt een bak.	       20090224&lt;/P&gt;&lt;P&gt;1392325	 eddad	                                          20090224&lt;/P&gt;&lt;P&gt;1392326	 test for limits &amp;amp; price freeze	            20090227&lt;/P&gt;&lt;P&gt;1392327	 test for limits &amp;amp; price freeze	            20090303&lt;/P&gt;&lt;P&gt;	      Tijdens het   controleren vande	      &lt;/P&gt;&lt;P&gt;	      bandverbinder in de ETG101 is	    &lt;/P&gt;&lt;P&gt;	      ergeconstateerd  dat er een bak	    &lt;/P&gt;&lt;P&gt;	      mist.Tijdens een  stop deze bak	    &lt;/P&gt;&lt;P&gt;	      monteren.	                                      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For trial basis, I tried to modify data in internal table in one of the event which sets the PF status.&lt;/P&gt;&lt;P&gt;And I could adjust the data. But after that the control goes to standard code which then again sorts it somehow and it again displays it incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to control or modify the sorting of the ALV display?&lt;/P&gt;&lt;P&gt;Can I use any events to solve this problem? If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is it possible to have proper sorting functionality for this requirement of displaying multiple lines for one field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 15:07:27 GMT</pubDate>
    <dc:creator>jpsapabap21</dc:creator>
    <dc:date>2009-04-03T15:07:27Z</dc:date>
    <item>
      <title>ALV report : Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-sorting/m-p/5364696#M1234558</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;I have developed one ALV report which is displayed as follows.&lt;/P&gt;&lt;P&gt;Field1	   Field2	                                     field3&lt;/P&gt;&lt;P&gt;______________________________________________&lt;/P&gt;&lt;P&gt;1392320	 test notification for UKI1	             20090212&lt;/P&gt;&lt;P&gt;1392323	 test for limits &amp;amp; price freeze	            20090223&lt;/P&gt;&lt;P&gt;1392324	 ETG101 ontbreekt een bak.	       20090224&lt;/P&gt;&lt;P&gt;	      Tijdens het   controleren vande	      &lt;/P&gt;&lt;P&gt;	      bandverbinder in de ETG101 is	    &lt;/P&gt;&lt;P&gt;	      ergeconstateerd  dat er een bak	    &lt;/P&gt;&lt;P&gt;	      mist.Tijdens een  stop deze bak	    &lt;/P&gt;&lt;P&gt;	      monteren.	                                      &lt;/P&gt;&lt;P&gt;1392325	 eddad	                                          20090224&lt;/P&gt;&lt;P&gt;1392326	 test for limits &amp;amp; price freeze	            20090227&lt;/P&gt;&lt;P&gt;1392327	 test for limits &amp;amp; price freeze	            20090303&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. for field1 1392324, i have multiple data to display in Field2 which needs to be displayed one below the other.&lt;/P&gt;&lt;P&gt;All other fields in the next lines are blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I try to sort, it all get messed up like following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1	   Field2	                                     field3&lt;/P&gt;&lt;P&gt;______________________________________________&lt;/P&gt;&lt;P&gt;1392320	 test notification for UKI1	             20090212&lt;/P&gt;&lt;P&gt;1392323	 test for limits &amp;amp; price freeze	            20090223&lt;/P&gt;&lt;P&gt;1392324	 ETG101 ontbreekt een bak.	       20090224&lt;/P&gt;&lt;P&gt;1392325	 eddad	                                          20090224&lt;/P&gt;&lt;P&gt;1392326	 test for limits &amp;amp; price freeze	            20090227&lt;/P&gt;&lt;P&gt;1392327	 test for limits &amp;amp; price freeze	            20090303&lt;/P&gt;&lt;P&gt;	      Tijdens het   controleren vande	      &lt;/P&gt;&lt;P&gt;	      bandverbinder in de ETG101 is	    &lt;/P&gt;&lt;P&gt;	      ergeconstateerd  dat er een bak	    &lt;/P&gt;&lt;P&gt;	      mist.Tijdens een  stop deze bak	    &lt;/P&gt;&lt;P&gt;	      monteren.	                                      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For trial basis, I tried to modify data in internal table in one of the event which sets the PF status.&lt;/P&gt;&lt;P&gt;And I could adjust the data. But after that the control goes to standard code which then again sorts it somehow and it again displays it incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to control or modify the sorting of the ALV display?&lt;/P&gt;&lt;P&gt;Can I use any events to solve this problem? If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is it possible to have proper sorting functionality for this requirement of displaying multiple lines for one field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 15:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-sorting/m-p/5364696#M1234558</guid>
      <dc:creator>jpsapabap21</dc:creator>
      <dc:date>2009-04-03T15:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report : Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-sorting/m-p/5364697#M1234559</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;You need to fill the table like this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1392320 test notification for UKI1 20090212&lt;/P&gt;&lt;P&gt;1392323 test for limits &amp;amp; price freeze 20090223&lt;/P&gt;&lt;P&gt;1392324 ETG101 ontbreekt een bak. 20090224&lt;/P&gt;&lt;P&gt;1392324 Tijdens het controleren vande&lt;/P&gt;&lt;P&gt;1392324 bandverbinder in de ETG101 is&lt;/P&gt;&lt;P&gt;1392324 ergeconstateerd dat er een bak&lt;/P&gt;&lt;P&gt;1392324 mist.Tijdens een stop deze bak&lt;/P&gt;&lt;P&gt;1392324 monteren.&lt;/P&gt;&lt;P&gt;1392325 eddad 20090224&lt;/P&gt;&lt;P&gt;1392326 test for limits &amp;amp; price freeze 20090227&lt;/P&gt;&lt;P&gt;1392327 test for limits &amp;amp; price freeze 20090303&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the sort on the first field..&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;g_sort-fieldname = 'FIELD1'.
    g_sort-SPOS = '1'.
    g_sort-up = 'X'. -- Ascending Order
    APPEND g_sort TO i_sort.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the output 1392324 will be displayed once&lt;/P&gt;&lt;P&gt;Refer to this link..[SORT in ALV|https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/sort&lt;EM&gt;in&lt;/EM&gt;ALV]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 15:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-sorting/m-p/5364697#M1234559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T15:13:20Z</dc:date>
    </item>
  </channel>
</rss>

