<?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: Sort Internal Table Partialy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061174#M91921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sarkar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     You can do this by using dynamic sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="428196"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have found another link... See if it is help full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2005 11:53:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-22T11:53:18Z</dc:date>
    <item>
      <title>Sort Internal Table Partialy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061171#M91918</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 having one ITAB which having 4000 records.&lt;/P&gt;&lt;P&gt;  I want sort my records partialy.&lt;/P&gt;&lt;P&gt;  E.g. Some records will be sorted against certain criteia and other will be some differnt criteria in a&lt;/P&gt;&lt;P&gt; Single Internal table.&lt;/P&gt;&lt;P&gt;  Is it Possible?&lt;/P&gt;&lt;P&gt;  If so kindly give me some input.&lt;/P&gt;&lt;P&gt;  Thanking you in Advance.&lt;/P&gt;&lt;P&gt;  Siladitya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 11:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061171#M91918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T11:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Internal Table Partialy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061172#M91919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi siladitya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I don't think it is possible in 1 straight shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. u will have to take 2 extra itnernal tables &lt;/P&gt;&lt;P&gt;   of same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. then using loop where &lt;/P&gt;&lt;P&gt;   u must popultae the 1 extra table,&lt;/P&gt;&lt;P&gt;   then using second loop where 2nd condition,&lt;/P&gt;&lt;P&gt;   u must popultae the 2 extra table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. then u must sort them individually&lt;/P&gt;&lt;P&gt;   using both criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. then u can merge them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something of the above logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 11:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061172#M91919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Internal Table Partialy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061173#M91920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;split the table and sort them in different orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and combine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 11:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061173#M91920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T11:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Internal Table Partialy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061174#M91921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sarkar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     You can do this by using dynamic sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="428196"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have found another link... See if it is help full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 11:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061174#M91921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Internal Table Partialy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061175#M91922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi its not possible to sort the internal tables PARTIALLY.&lt;/P&gt;&lt;P&gt;in order to acheive ur functionality what u can do is...&lt;/P&gt;&lt;P&gt;sort based on ur requirements multiple times as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by field1.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;sort itab by field2.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;sort itab by field3.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u got my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 12:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061175#M91922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T12:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Internal Table Partialy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061176#M91923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to achieve this you can include generic field(s) solely for sorting. eg if you have a table with data fields  Rec_type(1), matnr and date. You could create a table:&lt;/P&gt;&lt;P&gt;sort_field(20) " can be as long as the longest source field&lt;/P&gt;&lt;P&gt;rec_type,&lt;/P&gt;&lt;P&gt;matnr,&lt;/P&gt;&lt;P&gt;date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then have logic to populate the sort field, say&lt;/P&gt;&lt;P&gt;if rec_type = 'A'.&lt;/P&gt;&lt;P&gt;concatenate matnr date into sort_field.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;sort_field = date.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then sort the table. Obviously you could have multiple fields, sort_field1,2 etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 01:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-partialy/m-p/1061176#M91923</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2005-12-23T01:53:44Z</dc:date>
    </item>
  </channel>
</rss>

