<?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: TWO Internal Tables Access in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261407#M490173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;Internal tables:&lt;/P&gt;&lt;P&gt;data : date(8).&lt;/P&gt;&lt;P&gt;itab1&lt;/P&gt;&lt;P&gt;ID   Month &lt;/P&gt;&lt;P&gt;01    12&lt;/P&gt;&lt;P&gt;02    03&lt;/P&gt;&lt;P&gt;03   08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab2&lt;/P&gt;&lt;P&gt;Id    Year&lt;/P&gt;&lt;P&gt;01    2006&lt;/P&gt;&lt;P&gt;02    2007&lt;/P&gt;&lt;P&gt;03    2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop At itab1.&lt;/P&gt;&lt;P&gt;Read table itab2  WITH  KEY id = itab1-id.&lt;/P&gt;&lt;P&gt;If sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Concatenate itab1-month itab2-year INTO date.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) for copying data use this&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING itab1 TO itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will solve your problem&lt;/P&gt;&lt;P&gt;Reward points to all useful questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 03:52:23 GMT</pubDate>
    <dc:creator>former_member196280</dc:creator>
    <dc:date>2007-05-18T03:52:23Z</dc:date>
    <item>
      <title>TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261404#M490170</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 internal tables with different struc:&lt;/P&gt;&lt;P&gt;1 itab1                                          2. itab2&lt;/P&gt;&lt;P&gt;CID,                                                 CID&lt;/P&gt;&lt;P&gt;CEID,                                               CEID&lt;/P&gt;&lt;P&gt;Month                                               From&lt;/P&gt;&lt;P&gt;Year                                                  TO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the second itab at run time i want to provide the values from(concatination of month and year) and TO.&lt;/P&gt;&lt;P&gt;1. i want to extract the data from the DB tables and add to the itab1&lt;/P&gt;&lt;P&gt;2. same data is copied to itab2 but at run time i wnat to concatenate the month and year in FROm and TO values will pass.&lt;/P&gt;&lt;P&gt;3. itab2 two is compare with another DB tables ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the code by taking any example..&lt;/P&gt;&lt;P&gt;can anyone will help me in this as iam unable to copy the data friol itab1 to itab2 because of diff strucure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur help is appreciable....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 03:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261404#M490170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T03:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261405#M490171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Is this what you are looking for??

loop at itab1.

  move-corresponding itab1 to itab2.

   itab2-month_from = sy-datum+4(2).
   itab2-year_to = sy-datum+0(4).

   append itab2.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 03:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261405#M490171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T03:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261406#M490172</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;Consider that itab1 and itab2 as the values . now to update the month and year dynamically to itab2 as follows&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; concatenate wa1-month wa1-year into lv_from &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read itab2 with key cid = wa1-cid ceid = wa1-cied into wa2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa2-from = lv-from .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear lv_from . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify itab2 from wa2 transporting fields from  . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 03:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261406#M490172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T03:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261407#M490173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;Internal tables:&lt;/P&gt;&lt;P&gt;data : date(8).&lt;/P&gt;&lt;P&gt;itab1&lt;/P&gt;&lt;P&gt;ID   Month &lt;/P&gt;&lt;P&gt;01    12&lt;/P&gt;&lt;P&gt;02    03&lt;/P&gt;&lt;P&gt;03   08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab2&lt;/P&gt;&lt;P&gt;Id    Year&lt;/P&gt;&lt;P&gt;01    2006&lt;/P&gt;&lt;P&gt;02    2007&lt;/P&gt;&lt;P&gt;03    2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop At itab1.&lt;/P&gt;&lt;P&gt;Read table itab2  WITH  KEY id = itab1-id.&lt;/P&gt;&lt;P&gt;If sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Concatenate itab1-month itab2-year INTO date.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) for copying data use this&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING itab1 TO itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will solve your problem&lt;/P&gt;&lt;P&gt;Reward points to all useful questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 03:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261407#M490173</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-05-18T03:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261408#M490174</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;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  move-corresponding wa1 to wa2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   wa2-month_from = sy-datum+4(2).&lt;/P&gt;&lt;P&gt;   wa2-year_to = sy-datum+0(4).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   append wa2 to itab2.&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 all helpfull  answers.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 03:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261408#M490174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T03:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261409#M490175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandersheker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My concept is diff....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st iam using select statement&lt;/P&gt;&lt;P&gt;select * from &amp;lt;db1&amp;gt; to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in itab 1 i have cid,month , year.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. i wnat to read one by one record from itab1 and copy into another but i ahve a condition&lt;/P&gt;&lt;P&gt;1 record cid (picup from itab1) FROM (concatenation of month and year) TO i will provide the value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This step should reapeat for earch and every record and add the changes to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...................................&lt;/P&gt;&lt;P&gt;after this itab2 is compred with DB2 tables ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reply its an urgent...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 04:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261409#M490175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T04:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261410#M490176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anjai, if you post EXACTLY the structure of the two tables people may be able to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 04:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261410#M490176</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2007-05-18T04:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261411#M490177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1 : CID , CEId, Month , Year.&lt;/P&gt;&lt;P&gt;Table2 : CID , CEID, FROM, TO.( in this data already present but we need to modify the data for TO)&lt;/P&gt;&lt;P&gt;these are the two database tables....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1 data is coming from thirdparty and these is passing to FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. so ... i have created created itab1 and copied the data from table 1 to itab1( here i created itab1 similar structure to table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. i created 2nd internal table with CID,CEID,FROM and TWO ( FRom aand TO i accepted the fields from Table2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. know i want to copy the data of first internal table to second internal table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but condition is CID (copy as it is) CEID (copy as it is) FROm should be concatenation of Month and year of itab1.TO need to be passed from program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. know compare the data which is their in itab2 with table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to gohead can atleast some one will help me... plz provide me the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 04:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261411#M490177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T04:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261412#M490178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;concatenate itab1-month itab1-year into itab2-from.&lt;/P&gt;&lt;P&gt;itab2-to = your_parameter_value.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 04:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261412#M490178</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2007-05-18T04:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261413#M490179</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;     For that after the looping of itab1 you can put an if condition...&lt;/P&gt;&lt;P&gt;See the code given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cocatenate itab1-Month itab1-year into var1.&lt;/P&gt;&lt;P&gt;if ( var1 = itaab1-CID and var1 = itab1-CEID )&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 05:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261413#M490179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T05:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: TWO Internal Tables Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261414#M490180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think this is your requirment.....If not explain once more....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 05:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-internal-tables-access/m-p/2261414#M490180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T05:01:34Z</dc:date>
    </item>
  </channel>
</rss>

