<?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: ABAP 7.40 FOR syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192056#M1980867</link>
    <description>&lt;P&gt;Which support package of NW 7.40 are you talking about?&lt;/P&gt;&lt;P&gt;Table comprehensions and FOR expression has been introduced in 7.40 SP05: &lt;A href="https://help.sap.com/doc/abapdocu_740_index_htm/7.40/en-US/abennews-740_sp05-itab.htm"&gt;https://help.sap.com/doc/abapdocu_740_index_htm/7.40/en-US/abennews-740_sp05-itab.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 21:11:20 GMT</pubDate>
    <dc:creator>gasparerdelyi</dc:creator>
    <dc:date>2020-05-08T21:11:20Z</dc:date>
    <item>
      <title>ABAP 7.40 FOR syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192054#M1980865</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
  &lt;P&gt;Can someone help me with the syntax error in the attached code ?&lt;/P&gt;
  &lt;P&gt;It gives error “&lt;STRONG&gt;No components exists with the name ‘FOR’ "&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; TYPES:
    BEGIN OF ty_for_final,
      vbeln TYPE vbeln_va,
      vbtyp TYPE vbak-vbtyp,
      posnr TYPE vbap-posnr,
    END OF ty_for_final.

    DATA(li_for_final) = VALUE ty_for_final( FOR wa_vbak IN for_vbak
                                             FOR wa_vbap IN for_vbap WHERE ( vbeln = wa_vbak-vbeln )
                                              ( vbeln = wa_vbak-vbeln  vbtyp = wa_vbak-vbtyp  posnr = wa_vbap-posnr ) ).
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 05:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192054#M1980865</guid>
      <dc:creator>KumarVishal</dc:creator>
      <dc:date>2020-05-03T05:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.40 FOR syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192055#M1980866</link>
      <description>&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;you see the below code is creating a structure type&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;VALUE ty_for_final(..)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and &lt;STRONG&gt;"FOR"&lt;/STRONG&gt; will do iteration and create multiple data(table), so that is the reason of your error.&lt;/P&gt;&lt;P&gt;try creating a table type, it  will work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: tt_for_final type table of ty_for_final with EMPTY KEY.
 DATA(li_for_final) = VALUE tt_for_final( .... ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-Mahesh&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 05:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192055#M1980866</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2020-05-03T05:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.40 FOR syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192056#M1980867</link>
      <description>&lt;P&gt;Which support package of NW 7.40 are you talking about?&lt;/P&gt;&lt;P&gt;Table comprehensions and FOR expression has been introduced in 7.40 SP05: &lt;A href="https://help.sap.com/doc/abapdocu_740_index_htm/7.40/en-US/abennews-740_sp05-itab.htm"&gt;https://help.sap.com/doc/abapdocu_740_index_htm/7.40/en-US/abennews-740_sp05-itab.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 21:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192056#M1980867</guid>
      <dc:creator>gasparerdelyi</dc:creator>
      <dc:date>2020-05-08T21:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.40 FOR syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192057#M1980868</link>
      <description>&lt;P&gt;If I'm not wrong, the table type TT_FOR_FINAL must be "complete" (i.e. not generic) so that it can be used after the constructor operator, by adding STANDARD (for instance):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: tt_for_final type STANDARD table of ty_for_final with EMPTY KEY.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 May 2020 04:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192057#M1980868</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-09T04:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.40 FOR syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192058#M1980869</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; it makes sense, but for somereason it was not giving any error..&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 05:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192058#M1980869</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2020-05-10T05:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.40 FOR syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192059#M1980870</link>
      <description>&lt;P&gt;Thanks for the info. As an empty key can only be used with a standard table, I guess specifying the word "standard" is then optional in that case, and is automatically deduced by the compiler.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 23:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-40-for-syntax/m-p/12192059#M1980870</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-10T23:55:39Z</dc:date>
    </item>
  </channel>
</rss>

