<?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: Select using text field is possible? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160344#M1515790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will agree with Keshav's post. just adding the sample code for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA w_belnr TYPE belnr_d.

ranges : r_belnr FOR w_belnr.

r_belnr-sign = 'I'.
r_belnr-option = 'CP'.
r_belnr-low = '++++++1294'.
append r_belnr.


select SINGLE belnr from rseg
  into w_belnr
  WHERE belnr in r_belnr.

  IF sy-subrc EQ 0.

    WRITE / w_belnr.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 12:57:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-25T12:57:14Z</dc:date>
    <item>
      <title>Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160341#M1515787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends! I need some help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table with field type char20. In this field is saved a serial number with a fixed layout like 00.00.00.00.00.00.00. User wants a report that he can use this field for search criteria in selection-screen, some like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table&lt;/P&gt;&lt;P&gt;78.00.03.00.44.11.00&lt;/P&gt;&lt;P&gt;78.00.03.00.44.12.00&lt;/P&gt;&lt;P&gt;80.00.03.00.44.13.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, he wants to select all entries who have '44' in 5ª position. Its possible do it using select or I have to select all and do one by one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 11:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160341#M1515787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160342#M1515788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be you can build a range like if its 5th position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa-option = 'CP'.&lt;/P&gt;&lt;P&gt;wa-low = '++++++++++++44*'&lt;/P&gt;&lt;P&gt;append wa to ra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aslo try using the escape symbol # instead of +&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then select using ra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can refer &lt;SPAN __jive_macro_name="message" id="9414957"&gt;&lt;/SPAN&gt; to build the range&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 11:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160342#M1515788</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-25T11:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160343#M1515789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Keschav. Works greats here!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160343#M1515789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T12:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160344#M1515790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will agree with Keshav's post. just adding the sample code for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA w_belnr TYPE belnr_d.

ranges : r_belnr FOR w_belnr.

r_belnr-sign = 'I'.
r_belnr-option = 'CP'.
r_belnr-low = '++++++1294'.
append r_belnr.


select SINGLE belnr from rseg
  into w_belnr
  WHERE belnr in r_belnr.

  IF sy-subrc EQ 0.

    WRITE / w_belnr.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160344#M1515790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T12:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160345#M1515791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this and works great but user wants a select-options for select this, some like '44' to '55'. Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Fulvio Valente on Aug 25, 2010 7:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 17:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160345#M1515791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T17:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160346#M1515792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why you don't use a select option that point to a integer or c type data and concatenate to the range that you all ready had&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 17:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160346#M1515792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160347#M1515793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using select options, but when I use 'CP' I can't use 'BT', so I lost the use of range-high...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user digits on screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sign        option      low    high
   I               BT         44      55&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can build a range like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sign        option      low                             high
   I              CP         '++++++++++++44*'    
sign        option      low                             high
   I              CP         '++++++++++++55*'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this case I lost values between 44 and 55.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 17:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160347#M1515793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T17:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160348#M1515794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try this\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its a integer always and not numeric then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:num type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at sel_opt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sel_opt-option = 'BT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;wa-low = sel_opt-low + 1.&lt;/P&gt;&lt;P&gt;append to range here.&lt;/P&gt;&lt;P&gt;if wa-low = sel_opt-high.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 17:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160348#M1515794</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-25T17:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160349#M1515795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. My problem is a character, so I can't add...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Fulvio Valente on Aug 25, 2010 8:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 18:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160349#M1515795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T18:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select using text field is possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160350#M1515796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fulvio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could teach your user some details about using SELECT-OPTIONS on the selection screen. He can enter everything he ever wants and save it as a Report Variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need for any code. Most users are happy if they learn about the multiple selections button and the various possibilities given there and the use of + and * wildcards.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 18:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-using-text-field-is-possible/m-p/7160350#M1515796</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-08-25T18:56:47Z</dc:date>
    </item>
  </channel>
</rss>

