<?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: internal table fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301233#M502916</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;code like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;  if itab1-name1 is initial.&lt;/P&gt;&lt;P&gt;        itab1-name1 = itab2-name1. or [move itab2-name1 itab1-name1]&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;sureshbabu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 04:11:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T04:11:07Z</dc:date>
    <item>
      <title>internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301230#M502913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two internal tables.itab1 and itab2.&lt;/P&gt;&lt;P&gt;The sturcture of both the tables are as:&lt;/P&gt;&lt;P&gt;begin of itab1&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of itab2&lt;/P&gt;&lt;P&gt;ort01&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;land1&lt;/P&gt;&lt;P&gt;end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, i have data in both the tables using select statement.&lt;/P&gt;&lt;P&gt;Requiement is like this :&lt;/P&gt;&lt;P&gt;i want to check if value of field name1 is availabe in itab1. if itab1-name1 is not having any values then i want to update this field of itab1 with name1 of tale itab2.&lt;/P&gt;&lt;P&gt;i.e. in place of blank values of field itab1-name1 , i want to replcae this null value with values from itab2-name1.&lt;/P&gt;&lt;P&gt;Any help will be appricitated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301230#M502913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301231#M502914</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 first thing is there should be some common key in your two internal tables.&lt;/P&gt;&lt;P&gt;As you want to update NAME1 in ITAB1 from ITAB2, you need to compare it on something.&lt;/P&gt;&lt;P&gt;As you are having KUNNR in ITAB1, then you should have KUNNR in ITAB2 also so that you can compare and modify the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if you have further query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301231#M502914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301232#M502915</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;U can try the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa1-name1 eq space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; read table itab2 into wa2 with key ort01 = kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa1-name1 = wa2-name1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; modify table itab1 from wa1 transporting name1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: wa1,wa2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301232#M502915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301233#M502916</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;code like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;  if itab1-name1 is initial.&lt;/P&gt;&lt;P&gt;        itab1-name1 = itab2-name1. or [move itab2-name1 itab1-name1]&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;sureshbabu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301233#M502916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301234#M502917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI HUssain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There shud be 1 common field between iatb1 and itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible add kunnr also in itab2 ... or any other common key. otherwise it is difficult which record name1 from itab2 to be inserted in itab1 record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both itabs shud have kunnr or any other field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logic shud be like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at itab1.&lt;/P&gt;&lt;P&gt;if itab1-name1 is initial.&lt;/P&gt;&lt;P&gt;read table itab2 with key kunnr = itab1-kunnr. (or any other common field in DB table)&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;itab1-name1 = itab2-name1. &lt;/P&gt;&lt;P&gt;modify itab1 transporting name1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 04:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2301234#M502917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T04:24:41Z</dc:date>
    </item>
  </channel>
</rss>

