<?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: Filter data using where statement : need to filter a variable if it starts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230976#M1010458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gi_vbak WHERE  VBELN NA sy-abcde.&lt;/P&gt;&lt;P&gt;    WRITE gi_vbak-vbeln. --&amp;gt; your numeric variable logic&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2008 02:52:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-07T02:52:18Z</dc:date>
    <item>
      <title>Filter data using where statement : need to filter a variable if it starts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230975#M1010457</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;in my loop statment , i am using a where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a variable has numbers and characters , i want to filter the variable using where statement identifying if it is acharacter not to enter into the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions . Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 02:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230975#M1010457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T02:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data using where statement : need to filter a variable if it starts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230976#M1010458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gi_vbak WHERE  VBELN NA sy-abcde.&lt;/P&gt;&lt;P&gt;    WRITE gi_vbak-vbeln. --&amp;gt; your numeric variable logic&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 02:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230976#M1010458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T02:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data using where statement : need to filter a variable if it starts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230977#M1010459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; a variable has numbers and characters , i want to filter the variable using where statement identifying if it is acharacter not to enter into the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab where name co '0123456789'.
"catch numbers here..
endloop.
if sy-subrc ne 0.
 "all are characters not a single one withnumber
endif.
loop at itab where name co sy-abcde.
"catch characters here..
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 02:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230977#M1010459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T02:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data using where statement : need to filter a variable if it starts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230978#M1010460</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;try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:l_file_data(20) type c,&lt;/P&gt;&lt;P&gt;oref   TYPE REF TO cx_root.&lt;/P&gt;&lt;P&gt;data: l_amount type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_file_data = '12A3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;l_amount = l_file_data.&lt;/P&gt;&lt;P&gt;catch cx_root into oref.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;if oref is not initial.&lt;/P&gt;&lt;P&gt;write: 'Miss Match'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 03:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-data-using-where-statement-need-to-filter-a-variable-if-it-starts/m-p/4230978#M1010460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T03:01:07Z</dc:date>
    </item>
  </channel>
</rss>

