<?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: Relational operators, help needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113573#M1186243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data lv_ext_dem_posid like itab -EXT_DEM_POSID.

lv_ext_dem_posid  = wa_item+0(5)   " first 5 characters of wa_item
LOOP AT itab INTO wa_wanted
WHERE .... AND EXT_DEM_POSID EQ lv_ext_dem_posid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2009 14:43:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-26T14:43:59Z</dc:date>
    <item>
      <title>Relational operators, help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113570#M1186240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've got a simple task to ask for... I have to search in an itab for a particular (unique) work area that I can identify comparing some fields to my wanted values. &lt;/P&gt;&lt;P&gt;There's just one check I'm not able to code down, here it is:&lt;/P&gt;&lt;P&gt;the table has a field called EXT_DEM_POSID and I have a workarea in which this field has value '00020000000010'. &lt;/P&gt;&lt;P&gt;I need to find in my itab the entry that has the EXT_DEM_POSID field value equal to the first 5 digits of my workarea (in this case, '00020'). How can I simply formulate such a check in a WHERE statement?&lt;/P&gt;&lt;P&gt;Something like &lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_wanted&lt;/P&gt;&lt;P&gt;  WHERE .... AND EXT_DEM_POSID EQ first 5 digits of wa_item.&lt;/P&gt;&lt;P&gt;Another question: is there a way I can use directly a READ TABLE statement to do such a thing? Or must I loop the entire table since the condition is not just an equality one?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 14:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113570#M1186240</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-01-26T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Relational operators, help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113571#M1186241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I the field is of type character string then u can specify the conditions as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE field LIKE '00020%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 14:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113571#M1186241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Relational operators, help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113572#M1186242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use both statament:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- LOOP/ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB INTO WA_WANTED WHERE EXT_DEM_POSID EQ = WA_ITEM(5). 
  EXIT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- READ TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE INTO WA_WANTED WITH KEY EXT_DEM_POSID EQ = WA_ITEM(5).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 14:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113572#M1186242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Relational operators, help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113573#M1186243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data lv_ext_dem_posid like itab -EXT_DEM_POSID.

lv_ext_dem_posid  = wa_item+0(5)   " first 5 characters of wa_item
LOOP AT itab INTO wa_wanted
WHERE .... AND EXT_DEM_POSID EQ lv_ext_dem_posid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 14:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relational-operators-help-needed/m-p/5113573#M1186243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T14:43:59Z</dc:date>
    </item>
  </channel>
</rss>

