<?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: Issue with sorting in TMG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615981#M1941422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pallavi,&lt;/P&gt;&lt;P&gt;This is exactly what I did.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 07:23:49 GMT</pubDate>
    <dc:creator>sriram_ramesh</dc:creator>
    <dc:date>2016-03-30T07:23:49Z</dc:date>
    <item>
      <title>Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615974#M1941415</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 a TMG and tcode for it.&lt;/P&gt;&lt;P&gt;I'm sorting the table based on material by adding code in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_table[] = extract[].&lt;/P&gt;&lt;P&gt;sort gt_table by matnr.&lt;/P&gt;&lt;P&gt;extract[]&amp;nbsp; = gt_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorting works fine.&lt;/P&gt;&lt;P&gt;But, when I try to add new entry to the table, it all goes to display mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using check before the sorting code. (if sy-ucomm &amp;lt;&amp;gt; 'NEWL').&lt;/P&gt;&lt;P&gt;But during save sy-ucomm goes initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyother way to sort?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615974#M1941415</guid>
      <dc:creator>sriram_ramesh</dc:creator>
      <dc:date>2016-03-29T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615975#M1941416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 09:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615975#M1941416</guid>
      <dc:creator>sriram_ramesh</dc:creator>
      <dc:date>2016-03-29T09:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615976#M1941417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By sorting itab EXTRACT you may trigger some unconsistencies with itab TOTAL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you consider creation of a maintenance view on your table, defining MANDT and MATNR as the first keys (if required add MARA as first table then your table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 09:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615976#M1941417</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-03-29T09:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615977#M1941418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;if&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sy-ucomm NE 'NEWL' AND&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sy-ucomm NE 'SAVE' AND&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sy-ucomm NE 'DELE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;gt_table[] = extract[].&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;sort gt_table by matnr.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;extract[]&amp;nbsp; = gt_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;try using above code. It may be helpful. In case of these OK codes, MATNRS in Extract[]&amp;nbsp; are displayed as "L'.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;So if sorted, there is an inconsistency and everything goes blank. So I just made a workaround by excluding these OK codes. This is just a guidance and I sincerely suggest you to test all kind of scenarios in your requirement before really using this workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Regards&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Pallavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 09:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615977#M1941418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-29T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615978#M1941419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pallavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What If I enter a new entry and click on enter? ok code will be space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I run the tcode, ok code will be space.&lt;/P&gt;&lt;P&gt;so cant really use it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 10:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615978#M1941419</guid>
      <dc:creator>sriram_ramesh</dc:creator>
      <dc:date>2016-03-29T10:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615979#M1941420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Hi sriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;gt_ztest_pal1[] = extract[].&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp; DELETE gt_ztest_pal1[] WHERE matnr EQ space. "MATNR will be space for any action other than display&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp; SORT gt_ztest_pal1[] BY matnr.&amp;nbsp; "sort the remaining &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp; LOOP AT gt_ztest_pal1.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOOP AT extract.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_temp = extract.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF lv_temp+3(18) EQ gt_ztest_pal1-matnr. &lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DELETE extract. "Delete records which are being manipulated(add or del)&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp; INSERT LINES OF gt_ztest_pal1 INTO extract[] INDEX 1."insert sorted lines from index 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Hope this code will help you, this code doesn't require to check on any UCOMM .&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Code is not in pro with the performance(loop with in the loop), couldn't spend much time on this.&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Please take care of this in case if you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Regards&lt;/P&gt;&lt;P style="color: #000000; font-family: Calibri; font-size: 15px;"&gt;Pallavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 07:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615979#M1941420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T07:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615980#M1941421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;My case is little different so it didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 07:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615980#M1941421</guid>
      <dc:creator>sriram_ramesh</dc:creator>
      <dc:date>2016-03-30T07:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sorting in TMG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615981#M1941422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pallavi,&lt;/P&gt;&lt;P&gt;This is exactly what I did.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 07:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-sorting-in-tmg/m-p/11615981#M1941422</guid>
      <dc:creator>sriram_ramesh</dc:creator>
      <dc:date>2016-03-30T07:23:49Z</dc:date>
    </item>
  </channel>
</rss>

