<?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: where condition error when loop through a C itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-error-when-loop-through-a-c-itab/m-p/12583344#M2009442</link>
    <description>&lt;P&gt;You need to create a proper table type:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:&lt;BR /&gt;  BEGIN OF ty_kstar,&lt;BR /&gt;    kstar TYPE kstar,&lt;BR /&gt;  END OF ty_kstar.&lt;BR /&gt;  &lt;BR /&gt; TYPES:&lt;BR /&gt;   tt_kstar TYPE STANDARD TABLE OF ty_kstar.&lt;BR /&gt;  &lt;BR /&gt; DATA:&lt;BR /&gt;   t_kstar TYPE tt_kstar.&lt;BR /&gt;  &lt;BR /&gt; *...&lt;BR /&gt;  &lt;BR /&gt; LOOP AT t_kstar INTO DATA(s_kstar) WHERE kstar BETWEEN '8000000' AND '89999999'.&lt;BR /&gt;*  Do something.&lt;BR /&gt; ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Sep 2022 08:29:58 GMT</pubDate>
    <dc:creator>thkolz</dc:creator>
    <dc:date>2022-09-29T08:29:58Z</dc:date>
    <item>
      <title>where condition error when loop through a C itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-error-when-loop-through-a-c-itab/m-p/12583342#M2009440</link>
      <description>&lt;P&gt;I wrote below code.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA:kstar_t TYPE STANDARD TABLE OF kstar .

LOOP AT kstar_t TRANSPORTING NO FIELDS WHERE kstar &amp;lt;= '89999999' AND kstar &amp;gt;= '8000000' .

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I want to check in table kstar_t whether exist data in some range. But it has error "kstar has no structure so do not have a component kstar". So what's the correct way to loop where in a single field table? Thx.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-error-when-loop-through-a-c-itab/m-p/12583342#M2009440</guid>
      <dc:creator>former_member625844</dc:creator>
      <dc:date>2022-09-29T07:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: where condition error when loop through a C itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-error-when-loop-through-a-c-itab/m-p/12583343#M2009441</link>
      <description>&lt;P&gt;You have 2 types of internal tables, those with lines which are structures containing components (field names), and those without component -&amp;gt; usually the "pseudo-component" &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenpseudo_component_glosry.htm"&gt;TABLE_LINE&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;can address the whole line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:kstar_t TYPE STANDARD TABLE OF kstar .

LOOP AT kstar_t TRANSPORTING NO FIELDS WHERE table_line &amp;lt;= '89999999' AND table_line &amp;gt;= '8000000'.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-error-when-loop-through-a-c-itab/m-p/12583343#M2009441</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-29T07:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: where condition error when loop through a C itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-error-when-loop-through-a-c-itab/m-p/12583344#M2009442</link>
      <description>&lt;P&gt;You need to create a proper table type:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:&lt;BR /&gt;  BEGIN OF ty_kstar,&lt;BR /&gt;    kstar TYPE kstar,&lt;BR /&gt;  END OF ty_kstar.&lt;BR /&gt;  &lt;BR /&gt; TYPES:&lt;BR /&gt;   tt_kstar TYPE STANDARD TABLE OF ty_kstar.&lt;BR /&gt;  &lt;BR /&gt; DATA:&lt;BR /&gt;   t_kstar TYPE tt_kstar.&lt;BR /&gt;  &lt;BR /&gt; *...&lt;BR /&gt;  &lt;BR /&gt; LOOP AT t_kstar INTO DATA(s_kstar) WHERE kstar BETWEEN '8000000' AND '89999999'.&lt;BR /&gt;*  Do something.&lt;BR /&gt; ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-error-when-loop-through-a-c-itab/m-p/12583344#M2009442</guid>
      <dc:creator>thkolz</dc:creator>
      <dc:date>2022-09-29T08:29:58Z</dc:date>
    </item>
  </channel>
</rss>

