<?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: New Syntax for Loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333383#M1991676</link>
    <description>&lt;P&gt;Or something like this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   Return only the data where PROFIT_CENTER has been found
    [new_table] = VALUE #(  FOR data
                            IN [old_table]
                            WHERE ( profit_center IS NOT INITIAL )
                            ( document_date     = data-document_date
*                             ..
                            )
                         ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Feb 2021 12:43:56 GMT</pubDate>
    <dc:creator>Patrick_vN</dc:creator>
    <dc:date>2021-02-17T12:43:56Z</dc:date>
    <item>
      <title>New Syntax for Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333380#M1991673</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
  &lt;P&gt;please let me know the new syntax for below code.&lt;/P&gt;
  &lt;P&gt;LOOP AT IT_BSID ASSIGNING FIELD-SYMBOL(&amp;lt;FS_BSID&amp;gt;).&lt;BR /&gt; IF &amp;lt;FS_BSID&amp;gt;-VBELN IS INITIAL.&lt;BR /&gt; &amp;lt;FS_BSID&amp;gt;-VBELN = &amp;lt;FS_BSID&amp;gt;-XBLNR.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDLOOP.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 11:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333380#M1991673</guid>
      <dc:creator>former_member296235</dc:creator>
      <dc:date>2021-02-17T11:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: New Syntax for Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333381#M1991674</link>
      <description>&lt;P&gt;What did you expect as "New syntax" ? &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_BSID
     REFENCE INTO DATA(o_bsid_line).
  o_bsid_line-&amp;gt;vbeln = COND #( WHEN o_bsid_line-&amp;gt;vbeln IS INITIAL
                                 THEN o_bsid_line-&amp;gt;xblnr
                                 ELSE o_bsid_line-&amp;gt;vbleln ).
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333381#M1991674</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-02-17T12:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: New Syntax for Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333382#M1991675</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;am expecting with this new syntax &lt;/P&gt;&lt;P&gt;LT_BSID = VALUE #( FOR WA_BSID IN IT_BSID&lt;BR /&gt;* WHERE ( VBELN = WA_BSID-XBLNR ) ).&lt;/P&gt;&lt;P&gt;how to check vbeln is initial &lt;/P&gt;&lt;P&gt;don't want to use loop statement .&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333382#M1991675</guid>
      <dc:creator>former_member296235</dc:creator>
      <dc:date>2021-02-17T12:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: New Syntax for Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333383#M1991676</link>
      <description>&lt;P&gt;Or something like this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   Return only the data where PROFIT_CENTER has been found
    [new_table] = VALUE #(  FOR data
                            IN [old_table]
                            WHERE ( profit_center IS NOT INITIAL )
                            ( document_date     = data-document_date
*                             ..
                            )
                         ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333383#M1991676</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2021-02-17T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: New Syntax for Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333384#M1991677</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;pvnierop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;want results as mentioned below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1892699-diocb.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333384#M1991677</guid>
      <dc:creator>former_member296235</dc:creator>
      <dc:date>2021-02-17T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: New Syntax for Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333385#M1991678</link>
      <description>&lt;P&gt;Easiest would be to use COALESCE in the corresponding SQL statement in that case I think.&lt;/P&gt;&lt;P&gt;But I guess you could try something like this (see &lt;A href="https://blogs.sap.com/2013/05/28/abap-news-for-release-740-constructor-operators-cond-and-switch/" target="_blank"&gt;this blog&lt;/A&gt; for details on COND &amp;amp; SWITCH)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    [table] = VALUE #(  FOR data
                        IN [table]
                        (  vbeln = COND #( WHEN data-vbeln IS INITIAL THEN data-xblnr
                                           ELSE data-vbeln
                                         )
                          )
                     ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 13:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-syntax-for-loop/m-p/12333385#M1991678</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2021-02-17T13:04:05Z</dc:date>
    </item>
  </channel>
</rss>

