<?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: help in populating ITAB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505175#M233516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried this toooo..&lt;/P&gt;&lt;P&gt;but is going to infinite loop..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( read -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  modify...&lt;/P&gt;&lt;P&gt;  else&lt;/P&gt;&lt;P&gt;  append...&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did this, even not working fine (infinte loop )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2006 04:50:33 GMT</pubDate>
    <dc:creator>former_member206396</dc:creator>
    <dc:date>2006-08-01T04:50:33Z</dc:date>
    <item>
      <title>help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505169#M233510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai SDNs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an internal table having, say 6 fields... In which some of the fields &lt;/P&gt;&lt;P&gt;are already populated. (say 4 fields).. now the question is i have to populate &lt;/P&gt;&lt;P&gt;the other fields too based on some condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condition ::&lt;/P&gt;&lt;P&gt;the other two fields are in some other table..&lt;/P&gt;&lt;P&gt;here i have to check two fields( conditions ) .. if both fields matches i have to&lt;/P&gt;&lt;P&gt;modify the first table populating these two fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise.,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to append the record with those two fields...all other fields should be &lt;/P&gt;&lt;P&gt;blank..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any pls help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505169#M233510</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-08-01T04:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505170#M233511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)spose  itab1 have  6  field and  u  select 4 field from dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)make  an internal table itab2 with fields  which  u  want  to fill in internal table itab1 and  a common field in internal table itab1 and internal table itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort itab1 .
loop at itab.
read table itab2 binary search with key field1 = itab1-field1.
 itab1-field5 = itab2-field2.
 itab2-field6 = itab2-field3.
modify itab1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505170#M233511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T04:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505171#M233512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai kishan,&lt;/P&gt;&lt;P&gt;thank u for reply..&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;i am able to modify but i am unable to append the records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help with coding if possible, because i have tried all the ways..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505171#M233512</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-08-01T04:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505172#M233513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;the previous code can be modified a little.&lt;/P&gt;&lt;P&gt;sort itab1 .&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;"  check the condition &lt;/P&gt;&lt;P&gt;read table itab2 with key field1 = itab1-field1&lt;/P&gt;&lt;P&gt;                                 binary search.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   itab1-field5 = itab2-field2.&lt;/P&gt;&lt;P&gt;   itab1-field6 = itab2-field3.&lt;/P&gt;&lt;P&gt;   modify itab1.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;   itab1-field5 = itab2-field2.&lt;/P&gt;&lt;P&gt;   itab1-field6 = itab2-field3.&lt;/P&gt;&lt;P&gt;   append itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505172#M233513</guid>
      <dc:creator>former_member202020</dc:creator>
      <dc:date>2006-08-01T04:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505173#M233514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RamaKrishna,&lt;/P&gt;&lt;P&gt;        You can do this using Modify and Update Statement. Check the Code below for better understanding.&lt;/P&gt;&lt;P&gt;    MODIFY for All Internal Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the contents of lines in any type of internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;...].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the line of the internal table with the same table key as &amp;lt;wa&amp;gt;. You can use the TRANSPORTING addition to specify the exact components that you want to change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;... WHERE &amp;lt;logexp&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the lines of the internal table for which the logical expression is true. The first operand in each comparison of the logical expression must be a component of the line structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    and for Update;&lt;/P&gt;&lt;P&gt;        UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifies lines in database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; SET  &amp;lt;si&amp;gt; = &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; + &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; - &amp;lt;f&amp;gt; [WHERE &amp;lt;cond&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets the value in &amp;lt;si&amp;gt; to &amp;lt;f&amp;gt;, increases it by &amp;lt;f&amp;gt;, or decreases it by &amp;lt;f&amp;gt; for all selected lines. The WHERE addition determines the lines that are updated. If you omit the WHERE addition, all lines are updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overwrites the line with the same primary key as &amp;lt;wa&amp;gt; with the contents of &amp;lt;wa&amp;gt;, or all lines with the same primary key as a line in the internal table &amp;lt;itab&amp;gt; with the corresponding line of itab. The work area &amp;lt;wa&amp;gt; or the lines of the table &amp;lt;itab&amp;gt; must have at least the same length and the same alignment as the line structure of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;          Hope this might help you.&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;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505173#M233514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T04:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505174#M233515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this  way...&lt;/P&gt;&lt;P&gt;suppose  u  have  interanl table itab2 with new  2 filed which u  want  to modify in itab1 for  some  condn . if  cond not match  u want to append these two fields into itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just reverse  it  and  try this  way.&lt;/P&gt;&lt;P&gt;u have  internal table  with two  fields .&lt;/P&gt;&lt;P&gt;now  modify it by key by internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab1 .&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;read table itab1 binary search with key field1 = itab2-field1.&lt;/P&gt;&lt;P&gt; itab2-field1 = itab1-field1.&lt;/P&gt;&lt;P&gt; itab2-field2 = itab1-field2.&lt;/P&gt;&lt;P&gt; itab2-field3 = itab1-field3.&lt;/P&gt;&lt;P&gt; itab2-field4 = itab1-field4.&lt;/P&gt;&lt;P&gt;modify itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505174#M233515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T04:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505175#M233516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried this toooo..&lt;/P&gt;&lt;P&gt;but is going to infinite loop..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( read -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  modify...&lt;/P&gt;&lt;P&gt;  else&lt;/P&gt;&lt;P&gt;  append...&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did this, even not working fine (infinte loop )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505175#M233516</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-08-01T04:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505176#M233517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya  u  r  rite... definatly  it  goes  to  infinite   loop..&lt;/P&gt;&lt;P&gt;try  the  way  i  suggest in 2nd post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;make  interanl table itab3.
sort itab1 .
loop at itab1.
" check the condition 
read table itab2 binary search with key field1 = itab1-field1.
if sy-subrc = 0.
itab3-field1 = itab1-field1.
itab3-field2 = itab1-field2.
itab3-field3 = itab1-field3.
itab3-field4 = itab1-field4.
itab3-field5 = itab2-field5.
itab3-field6 = itab2-field6.
append itab3.
else.
itab3-field5 = itab2-field2.
itab3-field6 = itab2-field3.
append itab3.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 04:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505176#M233517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T04:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505177#M233518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai uma devi and kishan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both of urs code is not working.&lt;/P&gt;&lt;P&gt;kishan ur 2nd post is going to short dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 05:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505177#M233518</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-08-01T05:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505178#M233519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rama, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at the code below to give you an idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab1,&lt;/P&gt;&lt;P&gt;        f1(20) type c,&lt;/P&gt;&lt;P&gt;        f2(20) type c,&lt;/P&gt;&lt;P&gt;        f3(20) type c,&lt;/P&gt;&lt;P&gt;        f4(20) type c,&lt;/P&gt;&lt;P&gt;        f5     type i,&lt;/P&gt;&lt;P&gt;        f6     type i,&lt;/P&gt;&lt;P&gt;       end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab2,&lt;/P&gt;&lt;P&gt;        f1(20) type c,&lt;/P&gt;&lt;P&gt;        f2(20) type c,&lt;/P&gt;&lt;P&gt;        f3(20) type c,&lt;/P&gt;&lt;P&gt;        f4(20) type c,&lt;/P&gt;&lt;P&gt;        f5     type i,&lt;/P&gt;&lt;P&gt;        f6     type i,&lt;/P&gt;&lt;P&gt;       end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_itab1 type table of itab1 with header line,&lt;/P&gt;&lt;P&gt;      it_itab2 type table of itab2 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Assume that you have existing records in it_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_itab1.&lt;/P&gt;&lt;P&gt; read table it_itab2 with key f1 = it_itab1-f1&lt;/P&gt;&lt;P&gt;                              f2 = it_itab1-f2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  it_itab1-f5 = it_itab2-f5.&lt;/P&gt;&lt;P&gt;  it_itab1-f6 = it_itab2-f6.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;  move space to it_itab1-f1.&lt;/P&gt;&lt;P&gt;  move space to it_itab1-f2.&lt;/P&gt;&lt;P&gt;  move space to it_itab1-f3.&lt;/P&gt;&lt;P&gt;  move space to it_itab1-f4.&lt;/P&gt;&lt;P&gt;  it_itab1-f5 = it_itab2-f5.&lt;/P&gt;&lt;P&gt;  it_itab1-f6 = it_itab2-f6.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;  modify it_itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I got your question right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*you can use field-symbols, hashed table or sorted table to make your code faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points for useful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 05:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505178#M233519</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-08-01T05:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: help in populating ITAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505179#M233520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RamaKrishna,&lt;/P&gt;&lt;P&gt;    You declare one more internal table with the same structure of looping one.&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;  ltab,looping tab ( condition table)&lt;/P&gt;&lt;P&gt;  jtab, "  table that u wnat to modify&lt;/P&gt;&lt;P&gt;  ktab like jtab ,new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ltab.&lt;/P&gt;&lt;P&gt;read table jtab with key .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move corresponding of jtab to ktab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the field sthat u want to modify conditionally.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ktab-field1 = jtab-field1.&lt;/P&gt;&lt;P&gt;ktab-field2 = jtab-field2.&lt;/P&gt;&lt;P&gt;append ktab.&lt;/P&gt;&lt;P&gt;clear ktab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;ktab-field1 = jtab-field1.&lt;/P&gt;&lt;P&gt;ktab-field2 = jtab-field2.&lt;/P&gt;&lt;P&gt;append ktab.&lt;/P&gt;&lt;P&gt;clear ktab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if u have any queries.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 06:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-populating-itab/m-p/1505179#M233520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T06:09:17Z</dc:date>
    </item>
  </channel>
</rss>

