<?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 Table FROM index / LOOP AT Table where using FOR Loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454248#M1999809</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;sandrarossi&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Yes, I’m trying to start the loop from a particular value of sy-tabix, which in current scenario is 2 however unable to incorporate in the for loop. Also looking for how to use GT/E, LT/E in FOR loop.&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 16:22:15 GMT</pubDate>
    <dc:creator>shubham_banerjee</dc:creator>
    <dc:date>2021-05-26T16:22:15Z</dc:date>
    <item>
      <title>LOOP AT Table FROM index / LOOP AT Table where using FOR Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454245#M1999806</link>
      <description>&lt;P&gt;I am trying to read a .csv file with more than 20K lines.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1940625-upload.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;then I am executing function module KCD_CSV_FILE_TO_INTERN_CONVERT&lt;EM&gt;. &lt;/EM&gt;However as &lt;EM&gt;KCDE_INTERN-ROW &lt;/EM&gt;is 4 characters long, my data was eeroneous.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1940626-kcde.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;Instead of &lt;EM&gt;DO, &lt;/EM&gt;I am using FOR loop to transform my data,&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1940627-for-loop.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;as we the first line of the imported file is a header/text line, I am deleting index 1 from my internal table gt_filedata. I want to know as we could as,&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1940628-loop-from.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;how can we write the same using FOR and avoid the DELETE statement ? I tried a few alternates but seems I am missing on something.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1940629-gt-1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1940630-gt-1-2.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1940631-gt-1-3.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;Can someone please help me here ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 13:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454245#M1999806</guid>
      <dc:creator>shubham_banerjee</dc:creator>
      <dc:date>2021-05-26T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT Table FROM index / LOOP AT Table where using FOR Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454246#M1999807</link>
      <description>&lt;P&gt;Please post the code as text instead of image, so that one can easily answer by testing your code.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 15:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454246#M1999807</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-05-26T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT Table FROM index / LOOP AT Table where using FOR Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454247#M1999808</link>
      <description>&lt;P&gt;Is it what you're looking for?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;... FROM 2 ...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 May 2021 15:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454247#M1999808</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-05-26T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT Table FROM index / LOOP AT Table where using FOR Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454248#M1999809</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;sandrarossi&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Yes, I’m trying to start the loop from a particular value of sy-tabix, which in current scenario is 2 however unable to incorporate in the for loop. Also looking for how to use GT/E, LT/E in FOR loop.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 16:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454248#M1999809</guid>
      <dc:creator>shubham_banerjee</dc:creator>
      <dc:date>2021-05-26T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT Table FROM index / LOOP AT Table where using FOR Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454249#M1999810</link>
      <description>&lt;P&gt;I'm sorry, this question is a bit messy and hard to read for me... But I believe you need the ABAP Documentation for &lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenfor_cond.htm" target="_blank"&gt;FOR - cond&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You can use FROM and/or TO there just as in LOOP, and you can use logical expressions in WHERE, just put them between ( parenthesis )...&lt;/P&gt;&lt;P&gt;Was that your question?&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 04:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-table-from-index-loop-at-table-where-using-for-loop/m-p/12454249#M1999810</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-05-27T04:16:53Z</dc:date>
    </item>
  </channel>
</rss>

