<?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 help me in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281134#M496636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;                 If we write select query in loop the performance should be decrased. &lt;/P&gt;&lt;P&gt;For this to improve performance i need some examples. Please give some suitable examples to improve performance.&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 10:18:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T10:18:00Z</dc:date>
    <item>
      <title>help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281134#M496636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;                 If we write select query in loop the performance should be decrased. &lt;/P&gt;&lt;P&gt;For this to improve performance i need some examples. Please give some suitable examples to improve performance.&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281134#M496636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281135#M496637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Use for all entry instead.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* select material from mara
  SELECT matnr FROM mara INTO TABLE p_mara_table
               WHERE mtart IN s_mat.

* select plant and material combination from marc
  CHECK p_mara_table IS NOT INITIAL.

  SORT p_mara_table BY matnr.

  SELECT matnr werks
    FROM marc INTO TABLE p_marc_table
    FOR ALL ENTRIES IN p_mara_table
    WHERE matnr = p_mara_table-matnr
      AND werks IN s_plant.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281135#M496637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281136#M496638</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;   you can try like this , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Keep all the record in an itab , ( what you are looping ).&lt;/P&gt;&lt;P&gt;   In your  select statement , use FOR ALL ENTRIES . &lt;/P&gt;&lt;P&gt;   This will increase the performance .&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281136#M496638</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-05-18T10:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281137#M496639</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;You can have a look at the menu option in se38&lt;/P&gt;&lt;P&gt;Environment-&amp;gt;examples-&amp;gt;performance examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There very good samples of codes to enhance the performance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for your question, use FOR ALL ENTRIES, along with your Select statement&lt;/P&gt;&lt;P&gt;for making it performant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Poornima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281137#M496639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281138#M496640</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;  Try using the key word 'For all entries' for extracting data for the data in inernal table. This will improve your performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281138#M496640</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-05-18T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281139#M496641</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;   Go to SE30 (Runtime Analysis) and choose utilities -&amp;gt; Tips &amp;amp; Tricks.  It will be helpful to u.&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U. Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281139#M496641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281140#M496642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select all the entries from the table in one go before the loop.&lt;/P&gt;&lt;P&gt;Now do the looping and and read the corresponding entries that u get in the header of the loop. Check for the sy-subrc value and do the further processing based on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely improve the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sharadendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281140#M496642</guid>
      <dc:creator>sharadendu_agrawal</dc:creator>
      <dc:date>2007-05-18T10:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281141#M496643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont use select query in Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;1) if u want to use the contents of itab1 to select the data and fill in Itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is wrong way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at iatb1.&lt;/P&gt;&lt;P&gt;select single * into itab2&lt;/P&gt;&lt;P&gt;where ....... = itab1-........&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;This is right way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;table name&amp;gt; into table itab2&lt;/P&gt;&lt;P&gt;for all entries in itab1&lt;/P&gt;&lt;P&gt;where .......... and&lt;/P&gt;&lt;P&gt;         ........=  itab1-...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward some Points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padmakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281141#M496643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281142#M496644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;                  Like this i got this issue to solve but i am new to this area i am getting confusion when seeing it.&lt;/P&gt;&lt;P&gt;Can you please solve this issue which i am sending you now.&lt;/P&gt;&lt;P&gt;I need performance improvement in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************************&lt;/P&gt;&lt;P&gt;FORM getdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT v&lt;SUB&gt;vbeln v&lt;/SUB&gt;vdatu v&lt;SUB&gt;kunnr v&lt;/SUB&gt;erdat&lt;/P&gt;&lt;P&gt;         p&lt;SUB&gt;posnr p&lt;/SUB&gt;matnr p~kwmeng&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE it_tab1&lt;/P&gt;&lt;P&gt;         FROM vbak AS v&lt;/P&gt;&lt;P&gt;         INNER JOIN vbap AS p&lt;/P&gt;&lt;P&gt;         ON p&lt;SUB&gt;vbeln = v&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;         WHERE v~vbeln IN s_vbeln&lt;/P&gt;&lt;P&gt;         AND v~kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;         AND v~erdat IN s_erdat&lt;/P&gt;&lt;P&gt;         AND v~vbtyp eq 'C'&lt;/P&gt;&lt;P&gt;         AND v~vkorg IN s_vkorg&lt;/P&gt;&lt;P&gt;         AND p~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;         AND p~vstel EQ s_vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i999 WITH text-003.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_tab1.&lt;/P&gt;&lt;P&gt;    SELECT single bstkd INTO it_tab1-bstkd&lt;/P&gt;&lt;P&gt;                       FROM vbkd&lt;/P&gt;&lt;P&gt;                       WHERE vbeln EQ it_tab1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select single name1 into it_tab1-name1 from kna1 where kunnr EQ&lt;/P&gt;&lt;P&gt;it_tab1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bismt into it_tab1-bismt from mara where matnr EQ&lt;/P&gt;&lt;P&gt;it_tab1-matnr.&lt;/P&gt;&lt;P&gt;      if it_tab1-bismt EQ ' '.&lt;/P&gt;&lt;P&gt;           it_tab1-bismt = it_tab1-matnr.&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      and posnr eq it_tab1-posnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------" /&gt;Getting Customer purchase order number -&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT single gbsta INTO wa1-gbsta&lt;/P&gt;&lt;P&gt;                          FROM vbup&lt;/P&gt;&lt;P&gt;                          WHERE vbeln = it_tab1-vbeln&lt;/P&gt;&lt;P&gt;                          AND posnr = it_tab1-posnr.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="----------" /&gt;Getting Referenced quantity--&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CASE wa1-gbsta.&lt;/P&gt;&lt;P&gt;          WHEN 'A'.&lt;/P&gt;&lt;P&gt;            MOVE it_tab1-kwmeng TO it_tab1-rfmng.&lt;/P&gt;&lt;P&gt;            MODIFY it_tab1.&lt;/P&gt;&lt;P&gt;            CLEAR it_tab1.&lt;/P&gt;&lt;P&gt;            CLEAR wa1.&lt;/P&gt;&lt;P&gt;          WHEN 'B'.&lt;/P&gt;&lt;P&gt;            PERFORM ship_qty CHANGING l_csqty.&lt;/P&gt;&lt;P&gt;            l_csrfmng = it_tab1-kwmeng - l_csqty.&lt;/P&gt;&lt;P&gt;            IF l_csrfmng &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;              MOVE l_csrfmng TO it_tab1-rfmng.&lt;/P&gt;&lt;P&gt;              MODIFY it_tab1.&lt;/P&gt;&lt;P&gt;              CLEAR it_tab1.&lt;/P&gt;&lt;P&gt;              CLEAR wa1.&lt;/P&gt;&lt;P&gt;            ELSE.&lt;/P&gt;&lt;P&gt;              DELETE it_tab1.&lt;/P&gt;&lt;P&gt;              CLEAR it_tab1.&lt;/P&gt;&lt;P&gt;              CLEAR wa1.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;          WHEN OTHERS.&lt;/P&gt;&lt;P&gt;            DELETE it_tab1.&lt;/P&gt;&lt;P&gt;            CLEAR it_tab1.&lt;/P&gt;&lt;P&gt;            CLEAR wa1.&lt;/P&gt;&lt;P&gt;        ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "getdata&lt;/P&gt;&lt;P&gt;*************************************************&lt;/P&gt;&lt;P&gt;For this i need to improve performance . Please help me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281142#M496644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281143#M496645</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;       If you want to select a bulk amount of data inside the loop, you can do one thing.First select all the data from the particular table ,store it in an internal table and inside the loop always read this loop and copy the actual data into other internal table...See the example below....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr werks lgort from mara into it_mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_mara &amp;lt;specify all the conditions&amp;gt;&lt;/P&gt;&lt;P&gt;move-corresponding it_mara to it_mara1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is more than one entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara where &amp;lt;put cond&amp;gt;.&lt;/P&gt;&lt;P&gt;move-corresponding it_mara to it_mara1.&lt;/P&gt;&lt;P&gt;append it_mara1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use tcodes se30 st05 and st04 to check your perfomance,.........&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 10:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281143#M496645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281144#M496646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take all the selct queries outside the loop. After getting all the entries start with&lt;/P&gt;&lt;P&gt;the looping. Read the entries from the corresponding internal table using the header of the &lt;/P&gt;&lt;P&gt;loop and then u can move ahead as required or process as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sharadendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281144#M496646</guid>
      <dc:creator>sharadendu_agrawal</dc:creator>
      <dc:date>2007-05-18T10:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281145#M496647</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 replace your Inner join witha for all entries..Hope you know this...The you r using so many select single inside your loop..This will decrease your perfomance a lot....Replace all this select single inside this loop...See the logic for this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bstkd from vbkd into table it_tab2 for all entries in it_tab1 where &amp;lt;put the key&amp;gt;.&lt;/P&gt;&lt;P&gt; LOOP AT it_tab1.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;here replace youe select single by a read stme like this&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;read table it_tab2 with key bstkd = it_tab1-bstkd &amp;lt;like this put all the keys&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****8like this replace all of your select here.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single name1 into it_tab1-name1 from kna1 where kunnr EQ&lt;/P&gt;&lt;P&gt;it_tab1-kunnr.&lt;/P&gt;&lt;P&gt;&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;Hope this will solve this pblm..In case of any error revert back..&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 10:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2281145#M496647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:43:08Z</dc:date>
    </item>
  </channel>
</rss>

