<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>modern syntax &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/modern-syntax/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sapewmhelp.com</link>
	<description>SAP EWM questions answered by experts — ABAP, S/4HANA, warehouse management</description>
	<lastBuildDate>Fri, 01 Aug 2025 18:53:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>How does the FILTER operator work in modern ABAP to get specific entries from a table?</title>
		<link>https://www.sapewmhelp.com/question/how-does-the-filter-operator-work-in-modern-abap-to-get-specific-entries-from-a-table/</link>
					<comments>https://www.sapewmhelp.com/question/how-does-the-filter-operator-work-in-modern-abap-to-get-specific-entries-from-a-table/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Fri, 01 Aug 2025 18:53:22 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=how-does-the-filter-operator-work-in-modern-abap-to-get-specific-entries-from-a-table</guid>

					<description><![CDATA[It returns a filtered internal table based on a condition—no need for loops or APPEND. *&#38;---------------------------------------------------------------------* *&#38; Report  ZREP_LCLCLASS *&#38; *&#38;---------------------------------------------------------------------* *&#38; *&#38; *&#38;---------------------------------------------------------------------* REPORT zrep_lclclass. TYPES: BEGIN OF ty_user,          name   TYPE string,          status TYPE string,        END OF ty_user. DATA: lt_users TYPE STANDARD TABLE OF ty_user WITH EMPTY KEY,       lt_active_users TYPE STANDARD TABLE OF ty_user WITH EMPTY KEY. lt_users = VALUE #(   ( name = 'Alice'   status = 'ACTIVE' )   ( name = 'Bob'     status = 'INACTIVE' )   ( name = 'Charlie' status = 'ACTIVE' ) ). lt_active_users = FILTER #( lt_users WHERE status = 'ACTIVE' ). LOOP AT lt_active_users INTO DATA(user).   WRITE: / user-name, user-status. ENDLOOP.   Output :  Alice ACTIVE Charlie ACTIVE]]></description>
										<content:encoded><![CDATA[<p>It returns a filtered internal table based on a condition—no need for loops or <code>APPEND</code>.</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code><!--StartFragment --><span><span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp; Report  ZREP_LCLCLASS</span>
<span>*&amp;</span>
<span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;</span>
<span>*&amp;</span>
<span>*&amp;---------------------------------------------------------------------*</span>

<span>REPORT </span>zrep_lclclass<span>.</span>
<span>TYPES</span><span>: </span><span>BEGIN </span><span>OF </span>ty_user<span>,</span>
         name   <span>TYPE </span>string<span>,</span>
         status <span>TYPE </span>string<span>,</span>
       <span>END </span><span>OF </span>ty_user<span>.</span>

<span>DATA</span><span>: </span>lt_users <span>TYPE </span><span>STANDARD </span><span>TABLE </span><span>OF </span>ty_user <span>WITH </span>EMPTY <span>KEY</span><span>,</span>
      lt_active_users <span>TYPE </span><span>STANDARD </span><span>TABLE </span><span>OF </span>ty_user <span>WITH </span>EMPTY <span>KEY</span><span>.</span>

lt_users <span>= </span><span>VALUE </span>#<span>(</span>
  <span>( </span>name <span>= </span>'Alice'   status <span>= </span>'ACTIVE' <span>)</span>
  <span>( </span>name <span>= </span>'Bob'     status <span>= </span>'INACTIVE' <span>)</span>
  <span>( </span>name <span>= </span>'Charlie' status <span>= </span>'ACTIVE' <span>)</span>
<span>)</span><span>.</span>

lt_active_users <span>= </span>FILTER #<span>( </span>lt_users <span>WHERE </span>status <span>= </span>'ACTIVE' <span>)</span><span>.</span>

<span>LOOP </span><span>AT </span>lt_active_users <span>INTO </span><span>DATA</span><span>(</span>user<span>)</span><span>.</span>
  <span>WRITE</span><span>: </span>/ user<span>-</span>name<span>, </span>user<span>-</span>status<span>.</span>
<span>ENDLOOP</span><span>.</span>
</span> 
</code></pre>
<pre>Output : 


<strong>Alice ACTIVE</strong>
<strong>Charlie ACTIVE</strong>


</pre>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/how-does-the-filter-operator-work-in-modern-abap-to-get-specific-entries-from-a-table/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
