<?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: Help using FOR iteration statement 7.4 feature in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621053#M25889</link>
    <description>&lt;P&gt;Looks like an importing parameter rather than a function call.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 05:39:26 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2018-06-20T05:39:26Z</dc:date>
    <item>
      <title>Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621049#M25885</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I came across the "for" statement, upon checking our system version shows we're using 740 sp-level 0017.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;i_test = value #( for wa_bukrs in i_bukrs( wa_bukrs-bukrs ) ).
*Error the syntax for a method specification is "objref-&amp;gt;method or...
*if i try the other form...
data(i_test2) = value ty_bukrs( for wa_bukrs in i_bukrs( wa_bukrs-bukrs ) ).
*Error No component exists with the name "FOR". "FOR".
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I know its basic, but i've tried several ways and different forums, these all point to same syntax which doesn't work at all.. any inputs will be appreciated.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 12:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621049#M25885</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2018-06-19T12:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621050#M25886</link>
      <description>&lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenfor.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenfor.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 14:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621050#M25886</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-19T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621051#M25887</link>
      <description>&lt;P&gt;Thanks Horst, is it possible to have the syntax checked and recommend possible solution? I can't make it work. thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 03:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621051#M25887</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2018-06-20T03:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621052#M25888</link>
      <description>&lt;P&gt;Aren't you able to compare it yourself with the syntax and the examples from the documentation?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;You have to specify an internal table behind IN. But you use the syntax for a function call.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenfor_in_itab.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenfor_in_itab.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 05:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621052#M25888</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-20T05:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621053#M25889</link>
      <description>&lt;P&gt;Looks like an importing parameter rather than a function call.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 05:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621053#M25889</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-06-20T05:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621054#M25890</link>
      <description>&lt;P&gt;Yeah, the name, but the parentheses behind i_bukrs are the syntax for a function(al method) call and that's also what the syntax check complains. It doesn't care for names. And i_ could also mean itab, who knows.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 05:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621054#M25890</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-20T05:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621055#M25891</link>
      <description>&lt;P&gt;I didn't look to closely, but thought perhaps it's an attempt at some kind of Value expression!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 06:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621055#M25891</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-06-20T06:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621056#M25892</link>
      <description>&lt;P&gt;Hi jeff.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I guest what you want to do is fetch company code from i_burks to i_test.&lt;/P&gt;
  &lt;P&gt;if so, i think FOR GROUPS could be used: &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;i_test = VALUE #( FOR GROUPS burks OF &amp;lt;fs_burks&amp;gt; IN i_burks GROUP BY &amp;lt;fs_burks&amp;gt;-burks WITHOUT MEMBERS ( burks ) ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2018 07:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621056#M25892</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-06-20T07:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621057#M25893</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA flights type table of sflight.
DATA carrids type table of sflight-carrid.
carrids = value #( for &amp;lt;flight&amp;gt; in flights ( &amp;lt;flight&amp;gt;-carrid ) ). " space before parenthesis&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Beware the spaces in ABAP, they are very important ! (space before parenthesis)&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 08:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621057#M25893</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2018-06-20T08:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621058#M25894</link>
      <description>&lt;P&gt;Thanks All, I removed the space before the parenthesis however, I still get an error:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_bukrs,
  bukrs TYPE bukrs,
  butxt TYPE butxt,
  ort01 TYPE ort01,
  land1 TYPE land1,
  waers TYPE waers,
  spras TYPE spras,
  ktopl TYPE ktopl.
TYPES: END OF ty_bukrs.

data(i_test2) = value ty_bukrs( for wa_bukrs in i_bukrs ( wa_bukrs-bukrs ) ). 
"Error no component exists with the name "FOR"."FOR".
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;any ideas? thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 10:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621058#M25894</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2018-06-20T10:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621059#M25895</link>
      <description>&lt;P&gt;i_ is an internal table in the OP's standards. How I hate typing prefixes!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621059#M25895</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-06-20T12:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621060#M25896</link>
      <description>&lt;P&gt;Ouch, Sandra you're simply the best. I didn't see it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621060#M25896</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-06-20T12:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621061#M25897</link>
      <description>&lt;P&gt;Maybe this will make it clear:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_bukrs,
         bukrs TYPE bukrs,
         butxt TYPE butxt,
         ort01 TYPE ort01,
         land1 TYPE land1,
         waers TYPE waers,
         spras TYPE spras,
         ktopl TYPE ktopl.
TYPES: END OF ty_bukrs.
DATA i_bukrs TYPE STANDARD TABLE OF ty_bukrs.
TYPES ty_company_codes TYPE STANDARD TABLE OF bukrs WITH DEFAULT KEY.

DATA(i_test2) = VALUE ty_company_codes( FOR wa_bukrs IN i_bukrs ( wa_bukrs-bukrs ) ).
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Your FOR expression was not returning data of type &lt;STRONG&gt;ty_bukrs&lt;/STRONG&gt;. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621061#M25897</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-06-20T12:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621062#M25898</link>
      <description>&lt;P&gt;Thanks Matthew, working now. but can you also make the code below work (please include declarations similar to your previous answer). having trouble using "#" in this example:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;i_test = value #( for wa_bukrs in i_bukrs ( wa_bukrs-bukrs ) ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621062#M25898</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2018-06-20T12:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621063#M25899</link>
      <description>&lt;P&gt;Thanks quynh, will also try GROUPS as well.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 04:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621063#M25899</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2018-06-21T04:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621064#M25900</link>
      <description>&lt;P&gt;I respectfully decline.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 06:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621064#M25900</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-06-21T06:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621065#M25901</link>
      <description>&lt;P&gt;anyway, thanks for your inputs appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621065#M25901</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2018-06-21T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621066#M25902</link>
      <description>&lt;P&gt;Hello Jeff,&lt;/P&gt;&lt;P&gt;I am getting the same error No component exists with name "FOR" . "FOR"&lt;/P&gt;&lt;P&gt;Could you please let me know how did you solve your issue.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621066#M25902</guid>
      <dc:creator>former_member670752</dc:creator>
      <dc:date>2019-06-11T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help using FOR iteration statement 7.4 feature</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621067#M25903</link>
      <description>&lt;P&gt;Hi Kavya, Please see answer of Sandra Rossi. Normally space issue. thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 20:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-using-for-iteration-statement-7-4-feature/m-p/621067#M25903</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2019-06-27T20:30:11Z</dc:date>
    </item>
  </channel>
</rss>

