<?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: Change Internal table location ... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933839#M1333410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort field1 ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think ths was ur Qn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 05:18:19 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-07-30T05:18:19Z</dc:date>
    <item>
      <title>Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933837#M1333408</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;  &lt;/P&gt;&lt;P&gt;   Do any one how to change the internal table location ??? Example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Itab A. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  from                     -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt;   become &lt;/P&gt;&lt;P&gt;  item                                     item&lt;/P&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;                                 -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; 10                                          10&lt;/P&gt;&lt;P&gt; 10                                          20&lt;/P&gt;&lt;P&gt; 10                                          10&lt;/P&gt;&lt;P&gt;  20                                         10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want move the item 20 to second place ...  any idea... except the using Looping ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933837#M1333408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933838#M1333409</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;Can you please elaborate your question? Its not clear from what you have mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933838#M1333409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933839#M1333410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort field1 ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think ths was ur Qn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933839#M1333410</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-07-30T05:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933840#M1333411</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;&lt;/P&gt;&lt;P&gt;  Now i want everytime when i run things program , the No 20 always at second place ....  cnt at  1st or others . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933840#M1333411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933841#M1333412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by field1 ascending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933841#M1333412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933842#M1333413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think cnt sort it .......  bc if sort , the 20 will go to top ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933842#M1333413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933843#M1333414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use modify stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-field1 = 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify itab INDEX 2 FROM wa transporting field1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ShreeMohan Pugalia on Jul 30, 2009 7:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933843#M1333414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933844#M1333415</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;If you use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab with field1 ascending
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20 will come to the second place if there only one value less than 20.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933844#M1333415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933845#M1333416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya .. u r right ......  but my 3rd n 4th value , also same with 1st value   are 10 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we use sort ........ will become    10 10 10  20 rite ?   &lt;/P&gt;&lt;P&gt;                               my case  is :     10 20 10 10 ......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933845#M1333416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933846#M1333417</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 can create another itab and populate it in such a way that the field in second place has 20 and use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE itab1-field TO itab2-field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933846#M1333417</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2009-07-30T05:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933847#M1333418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the field value for second index and store it in one variable.&lt;/P&gt;&lt;P&gt;Modify field value of second index by 20.&lt;/P&gt;&lt;P&gt;and replace the value stored in variable where actually 20 is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933847#M1333418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933848#M1333419</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 that case i dont think it is possible to make it work without looping. You can try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
v_index = '2'.

loop at itab.
if itab-field1 = '20'.
move-corresponding itab to wa_itab.
endif.
endloop.
delete itab where field1 = '20'.

insert wa_itab into itab index v_index.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933848#M1333419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933849#M1333420</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;Here's my take:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF ITAB OCCURS 0,
        item1(10) type c,
        item2(10) type c,
      end of itab.

data: BEGIN OF itab2 OCCURS 0,
       item1(10) type c,
        item2(10) type c,
      end of itab2.


itab-item1 = '10'.
itab-item2 = '10'.
append itab.

itab-item1 = '20'.
itab-item2 = '10'.
append itab.

itab-item1 = '10'.
itab-item2 = '10'.
append itab.

itab-item1 = '10'.
itab-item2 = '10'.
append itab.


itab2[] = itab[].
DELETE ADJACENT DUPLICATES FROM ITAB2 COMPARING item1.
modify table itab2.

INSERT LINES OF itab from 4 INTO table itab2.

loop at itab2.
  write:/ itab2-item1, itab2-item2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 07:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933849#M1333420</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-07-30T07:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change Internal table location ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933850#M1333421</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;Creat an another internal table for temporary  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab &lt;/P&gt;&lt;P&gt;itab1 is the same structure of itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; cnt = 2.&lt;/P&gt;&lt;P&gt; ind = 1.&lt;/P&gt;&lt;P&gt; if sy-tabix = '2'.&lt;/P&gt;&lt;P&gt;  read table itab with key &amp;lt;fieldname&amp;gt; = '20'.&lt;/P&gt;&lt;P&gt;  move corresponding itab to itab1.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;  move corresponding itab to itab1.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;  append itab1.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 09:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-internal-table-location/m-p/5933850#M1333421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T09:49:59Z</dc:date>
    </item>
  </channel>
</rss>

