<?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: modify in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923408#M939851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can be closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 10:22:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T10:22:43Z</dc:date>
    <item>
      <title>modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923399#M939842</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 want to insert one field of one itab into another itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab1 has two fields n itab2 has 10 fields.I do not know any key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want insert the field from itab1 to itab2 inside the loop of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest some idea on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923399#M939842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923400#M939843</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;What do you really means?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to insert a field or a value of a field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB2.
  READ TABLE ITAB1 WITH KEY FIELD1 = &amp;lt;......&amp;gt;
                                                  FIELD2 = &amp;lt;......&amp;gt;.
  IF SY-SUBRC = 0.
     ITAB2-FIELDN = ITAB-&amp;lt;FIELD&amp;gt;.
     MODIFY ITAB2.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923400#M939843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923401#M939844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to know the relation for reading the itab1 value based in itab2 fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have the the relation u can read the itab1 inside the itab2 and modify itab2 table based in sy-tabix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923401#M939844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923402#M939845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   There must be the key field which is common in both internal tables.You sort both int. tables by the key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 has 10 fields and ITAB2 has 2 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1.&lt;/P&gt;&lt;P&gt;myindex = sy-tabix.&lt;/P&gt;&lt;P&gt;read itab2 with key key = &amp;lt;itab1-key&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move itab2-key to itab1-key.&lt;/P&gt;&lt;P&gt;modify itab2 index myindex transporting key.&lt;/P&gt;&lt;P&gt;clear:itab1,itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923402#M939845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923403#M939846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;suppose itab1 is the internal table with two fields and itab2 is the internal table with 10 fields.&lt;/P&gt;&lt;P&gt;wtab1 and wtab2 are the corresponding work areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to put the values of itab1 to itab2 follow this chunk of sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wtab1.&lt;/P&gt;&lt;P&gt;move corresponding fields of wtab1 to wtab2.&lt;/P&gt;&lt;P&gt;append wtab2 to itab2.&lt;/P&gt;&lt;P&gt;clear :wtab1,wtab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will solve ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923403#M939846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923404#M939847</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;   The below code works provided the field should exist in both the internal tables  ..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab1.
  move corresponding itab1 to itab2.
  if not itab2-field is initial. 
    append itab2. 
    clear itab2.
 endif.
endloop. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923404#M939847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923405#M939848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi use as following to modify itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data index type sy-tabix.&lt;/P&gt;&lt;P&gt;  IF NOT itab2[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT itab2.&lt;/P&gt;&lt;P&gt;      LOOP AT itab1 WHERE field  = itab2-field.&lt;/P&gt;&lt;P&gt;        index = sy-tabix.&lt;/P&gt;&lt;P&gt;        itab2-fields =  itab1-fields.&lt;/P&gt;&lt;P&gt;        MODIFY itab2 INDEX index.&lt;/P&gt;&lt;P&gt;        CLEAR index.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923405#M939848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923406#M939849</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;Does itab2 contain field of itab1 which you want to move?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this,itab1 has name1,city and pin fields.itab2 has name1.name2,name3,street,city and district.In itab2 city is blank.If youwant to move city from itab1 to itab2 ,folow this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop at itab1.
itab2-city = itab1-city.
modify itab2 transporting city.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : here itab2 has to have the field of city.&lt;/P&gt;&lt;P&gt;If you have any doubt let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Mohandoss P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923406#M939849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923407#M939850</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; First of all i want to say one thing that combining 2 internal table without any common key fields is meaning less. any way if that is ur requirment do it as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. u can modify it with the help of index. In this process it 'll update the record based on the index that it retrives from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.u said u hav 2 fields in 1st itab...so do 1 thing first choose any one field that u feel u can keep it as common key for both and include the first itab with that common field and create a structure first modify that itab using the index and then it 'll be easy for u to update the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arunprasad.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 10:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923407#M939850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T10:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923408#M939851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can be closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/3923408#M939851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:22:43Z</dc:date>
    </item>
  </channel>
</rss>

