<?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 table like other table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386394#M1043206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if both the tables consists of the same number of records then Scrap the ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the need of Another internal table...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2008 13:19:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-28T13:19:14Z</dc:date>
    <item>
      <title>Sort table like other table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386393#M1043205</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 2 tables  itab1 and itab2 &lt;/P&gt;&lt;P&gt;and i wont to sort itab1 &lt;STRONG&gt;like itab2&lt;/STRONG&gt; but i dont have the field that i sort by him (NODE_ID ).&lt;/P&gt;&lt;P&gt;there is a way to do it without add field nodid to iatb1 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ITAB 1 
          
                NODE_NAME 
1              10OLDS-1000
2              10HEADQTR
3              10PST
4                10AS
5               10ZY03
6               10VENT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ITAB2
       NODE_ID       NODE_NAME 
1	00000096	  10ZY03
2	00000097	   10AS
3	00000154	  10HEADQTR
4	00000328	  10PST
5	00000684	  10VENT
6	00000712	  10OLDS-1000&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386393#M1043205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table like other table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386394#M1043206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if both the tables consists of the same number of records then Scrap the ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the need of Another internal table...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386394#M1043206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table like other table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386395#M1043207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Take a new table say itab3 with the two fields node_id and node_name...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to fetch the corresponding node_id's to this tab and use this table furter in your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1.&lt;/P&gt;&lt;P&gt;Read itab2 where node_name =itab1-node_name.&lt;/P&gt;&lt;P&gt;wa_itab3-node_name = itab1-node_name.&lt;/P&gt;&lt;P&gt;wa_itab3-node_id = itab2-node_id&lt;/P&gt;&lt;P&gt;append wa_itab3 to itab3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can &lt;/P&gt;&lt;P&gt;sort itab3 by node_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386395#M1043207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table like other table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386396#M1043208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code ur own logic to sort the table it cud be like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;then search for node_name in itab1 when found swap it then it ll come at same position as in itab2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a rough logic if u've understood it u can refine it to get a better performing code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386396#M1043208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table like other table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386397#M1043209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI Vijay Babu Dudla   ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks but in itab1 i have a lot data (more columns  ) i just put the relevant ,&lt;/P&gt;&lt;P&gt;the 2 table have different data i put just the data that is relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386397#M1043209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table like other table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386398#M1043210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;you can introduce the column node_id in to the itab1 if it is feasible &lt;/P&gt;&lt;P&gt;Else you need to go for the third table to avoid the complex logic...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-like-other-table/m-p/4386398#M1043210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:43:19Z</dc:date>
    </item>
  </channel>
</rss>

