<?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: Query in loop....! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805042#M2025223</link>
    <description>&lt;P&gt;Dear Shahzaib,&lt;/P&gt;&lt;P&gt;Happy to help you. Keep posting in SAP community.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H.V.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 10:58:11 GMT</pubDate>
    <dc:creator>Harish_Vatsa</dc:creator>
    <dc:date>2023-06-13T10:58:11Z</dc:date>
    <item>
      <title>Query in loop....!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805039#M2025220</link>
      <description>HI all,
  &lt;P&gt;Can anybody tell me the alternative method to avoid query in loop.&lt;/P&gt; Code: (Alternative Method is required).
  &lt;P&gt;DATA: vstlnr LIKE mast-stlnr.&lt;/P&gt;
  &lt;BR /&gt; LOOP AT stb1 INTO wa_stb1.
  &lt;BR /&gt; SELECT SINGLE stlnr FROM mast INTO vstlnr WHERE matnr = wa_stb1-idnrk.
  &lt;BR /&gt; wa_mast-stlnr = vstlnr.
  &lt;BR /&gt; append wa_mast to it_mast.
  &lt;BR /&gt;
  &lt;P&gt; ENDLOOP.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805039#M2025220</guid>
      <dc:creator>sap_pak_lhr</dc:creator>
      <dc:date>2023-06-12T11:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query in loop....!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805040#M2025221</link>
      <description>&lt;P&gt;Dear Shahzaib,&lt;BR /&gt;Can you please try the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lt_mast TYPE TABLE OF mast,&lt;BR /&gt;ls_mast LIKE LINE OF lt_mast.&lt;BR /&gt;SELECT matnr stlnr FROM mast INTO TABLE lt_mast FOR ALL ENTRIES IN stb1 WHERE matnr = stb1-idnrk.&lt;BR /&gt;LOOP AT stb1 INTO wa_stb1.&lt;BR /&gt;READ TABLE lt_mast INTO ls_mast WITH KEY matnr = wa_stb1-idnrk.&lt;BR /&gt;IF sy-subrc = 0.&lt;BR /&gt;wa_mast-stlnr = ls_mast-stlnr.&lt;BR /&gt;APPEND wa_mast TO it_mast.&lt;BR /&gt;ENDIF.&lt;BR /&gt;ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2023 17:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805040#M2025221</guid>
      <dc:creator>Harish_Vatsa</dc:creator>
      <dc:date>2023-06-12T17:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query in loop....!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805041#M2025222</link>
      <description>&lt;P&gt;Thank u soo much for the guidence. &lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 09:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805041#M2025222</guid>
      <dc:creator>sap_pak_lhr</dc:creator>
      <dc:date>2023-06-13T09:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query in loop....!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805042#M2025223</link>
      <description>&lt;P&gt;Dear Shahzaib,&lt;/P&gt;&lt;P&gt;Happy to help you. Keep posting in SAP community.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H.V.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-loop/m-p/12805042#M2025223</guid>
      <dc:creator>Harish_Vatsa</dc:creator>
      <dc:date>2023-06-13T10:58:11Z</dc:date>
    </item>
  </channel>
</rss>

