<?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 how to write read statement from the loop parallel cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-read-statement-from-the-loop-parallel-cursor/m-p/12684532#M2017212</link>
    <description>&lt;P&gt;* LOOP AT it_mard where matnr = ls_mara-matnr and werks in p_werks . """""""commented on 30 nov&lt;/P&gt; READ TABLE it_mard with key matnr = ls_mara-matnr werks = p_werks BINARY SEARCH.
  &lt;BR /&gt; if sy-subrc = 0.
  &lt;BR /&gt; lv_index1 = sy-tabix.
  &lt;P&gt;i am not getting how to write the read statement from the loop "werks " in the read statement . plzz help me getting this answer soon .&lt;/P&gt;
  &lt;P&gt;thanks reagards &lt;/P&gt;
  &lt;P&gt;Mohammed Mubashir.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 14:47:39 GMT</pubDate>
    <dc:creator>former_member831369</dc:creator>
    <dc:date>2022-11-30T14:47:39Z</dc:date>
    <item>
      <title>how to write read statement from the loop parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-read-statement-from-the-loop-parallel-cursor/m-p/12684532#M2017212</link>
      <description>&lt;P&gt;* LOOP AT it_mard where matnr = ls_mara-matnr and werks in p_werks . """""""commented on 30 nov&lt;/P&gt; READ TABLE it_mard with key matnr = ls_mara-matnr werks = p_werks BINARY SEARCH.
  &lt;BR /&gt; if sy-subrc = 0.
  &lt;BR /&gt; lv_index1 = sy-tabix.
  &lt;P&gt;i am not getting how to write the read statement from the loop "werks " in the read statement . plzz help me getting this answer soon .&lt;/P&gt;
  &lt;P&gt;thanks reagards &lt;/P&gt;
  &lt;P&gt;Mohammed Mubashir.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-read-statement-from-the-loop-parallel-cursor/m-p/12684532#M2017212</guid>
      <dc:creator>former_member831369</dc:creator>
      <dc:date>2022-11-30T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to write read statement from the loop parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-read-statement-from-the-loop-parallel-cursor/m-p/12684533#M2017213</link>
      <description>&lt;P&gt;There is no "parallel cursor" involved... It looks like you're trying to replace LOOP with reading a single record (?) and trying to use BINARY SEARCH to speed it up?&lt;/P&gt;&lt;P&gt;My guess is that you need to add INTO or TRANSPORTING NO FIELDS. This can be found in ABAP keyword documentation. I see that LOOP has no INTO either, so I guess it_mard has a header line. This must be a seriously old program if that's the case...&lt;/P&gt;&lt;P&gt;Not sure what is the actual goal here but I &lt;A href="https://blogs.sap.com/2020/02/12/the-war-on-binary-search/"&gt;don't recommend using BINARY SEARCH&lt;/A&gt; and if you absolutely must, table needs to be sorted first. If you need faster performance then change the definition of IT_MARD table and use the best table type for the occasion. Of course, not getting too much unnecessary data into the table in the first place is a good option too.&lt;/P&gt;&lt;P&gt;Good luck and please read Help (F1) first before posting questions and try to include more details next time.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-read-statement-from-the-loop-parallel-cursor/m-p/12684533#M2017213</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2023-01-06T05:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to write read statement from the loop parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-read-statement-from-the-loop-parallel-cursor/m-p/12684534#M2017214</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;mubashirbennishirur&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Please find below sample code for parallel cursor&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2124103-sample-code-pc.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 06:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-read-statement-from-the-loop-parallel-cursor/m-p/12684534#M2017214</guid>
      <dc:creator>TarunTakshak6</dc:creator>
      <dc:date>2023-01-06T06:17:12Z</dc:date>
    </item>
  </channel>
</rss>

