<?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: Loop at internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/4193068#M1002271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;consider first intertabl ltab1, second itab2 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the records into itab1,&lt;/P&gt;&lt;P&gt;then use, for all entries select profit description into itab2 based on profit center.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then read the table itab1 with key profit center&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;pass the profit description. itab1-pdec = itab2-pdec.  (pdec = profit desc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after modify the itab1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2008 02:36:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-23T02:36:34Z</dc:date>
    <item>
      <title>Loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/4193066#M1002269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Freinds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table which has some fields,prctr(Profit Center) is one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other internal table I have fields of prctr(Profit Center) and ktext(profit Center descrition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i combine two tables so that the first internal tables will have profit center description againts each profit center.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some code besides Join as some other constraints are present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded definately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/4193066#M1002269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T02:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/4193067#M1002270</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;  As per your requirement you want to have the profit center description for each profit center in the first internal table also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all add a field for profit center description (say PRCTR_TXT) in the first internal table.Considering first itnernal table as ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort the second internal table with profit center.Considering second internal table as ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the ITAB1.&lt;/P&gt;&lt;P&gt;  read table ITAB2 with key PRCTR = ITAB1-PRCTR &lt;/P&gt;&lt;P&gt;                                        binary search.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;     move ITAB2-PRCTR_TXT to ITAB1-PRCTR_TXT.&lt;/P&gt;&lt;P&gt;     MODIFY ITAB1 transporting PRCTR_TXT.&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;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/4193067#M1002270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T02:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/4193068#M1002271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;consider first intertabl ltab1, second itab2 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the records into itab1,&lt;/P&gt;&lt;P&gt;then use, for all entries select profit description into itab2 based on profit center.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then read the table itab1 with key profit center&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;pass the profit description. itab1-pdec = itab2-pdec.  (pdec = profit desc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after modify the itab1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/4193068#M1002271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T02:36:34Z</dc:date>
    </item>
  </channel>
</rss>

