<?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: About select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132465#M744211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, thanks a million. For some time our server was not working, so I delayed.&lt;/P&gt;&lt;P&gt;Its working as per my requirement. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2007 20:40:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-04T20:40:12Z</dc:date>
    <item>
      <title>About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132454#M744200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnz, in one  requirement, use will enter some values in select-options, the system has to see whether the entered value's pattern exists in the database. &lt;/P&gt;&lt;P&gt;For example if user enters "PRODMAT" then system should search in mara table whether any mara-matnr CP 'PRODMAT*', ie begins with entered value. if yes, should give next possible matnr value to create material. If user enters multiple values also system should do the same thing. Pls help me with some coding.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 18:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132454#M744200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132455#M744201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;Use Like Operator in the SELECT statement &lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;select * from  table where name like 'abc%'.&lt;/P&gt;&lt;P&gt;Message Edited&lt;/P&gt;&lt;P&gt;Shibu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 18:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132455#M744201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T18:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132456#M744202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shibu..&lt;/P&gt;&lt;P&gt;It is working with parameter, is not working with select-option. Pls give me some piece of code if possible.&lt;/P&gt;&lt;P&gt;What I used was&lt;/P&gt;&lt;P&gt;"&amp;lt;u&amp;gt;select * from mara into table it_mara where matnr like p_matnr."&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Pls help me in modifying this in to select options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 18:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132456#M744202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T18:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132457#M744203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: mara.
select-options s_matnr for mara-matnr.
select * from mara into table it_mara where matnr in s_matnr
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 18:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132457#M744203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T18:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132458#M744204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this will select the exact entries which are there in select-options. It is needed to select matnr starting with the prefix entered in select option. Pls try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 18:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132458#M744204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T18:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132459#M744205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not if the user enters PRODMAT* in the select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 19:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132459#M744205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132460#M744206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK - I see what you want to do. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest MESSAGE-ID 00.

TABLES: mara.
DATA: it_mara TYPE TABLE OF mara WITH HEADER LINE.
PARAMETER p_matnr LIKE mara-matnr OBLIGATORY.
RANGES: r_matnr FOR mara-matnr.

MOVE 'CP'     TO r_matnr-option.
MOVE 'I'      TO r_matnr-sign.
CONCATENATE p_matnr '*' INTO r_matnr-low.
APPEND r_matnr.

SELECT * FROM mara INTO TABLE it_mara WHERE matnr IN r_matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 19:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132460#M744206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T19:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132461#M744207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob,&lt;/P&gt;&lt;P&gt;but I am affraid RANGES will not prompt any select-option to user to enter his values. The requirement is, program should prompt select-options to user, user enters multiple single entries or range of values in select-options, program should see mara table for possible matnr with all prefixes entered by the user in select-option, should fetch last one with that prefix and display next available matnr which he can create.&lt;/P&gt;&lt;P&gt;for ex. user is entering AA, BB, CC, DD in select options, it should see matnr starting with AA, BB, CC, DD in table mara and go to last entry with AA BB CC DD and give last entry+1 to user. If AA10 is last entry in mara then AA11 should be displayed, if BB12 is last entry, BB13 should be displayed...&lt;/P&gt;&lt;P&gt;Pls give some suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 19:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132461#M744207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T19:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132462#M744208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if the user enters a range of materials?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 19:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132462#M744208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T19:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132463#M744209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User is restricted to enter only short range. Like range containing 5-6 entries. Or else the user enters multiple single entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 19:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132463#M744209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T19:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132464#M744210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this, but be aware of the fact that having select options, user can use NE, NP, exclude range, exclude single value etc. You may want the user to be restricted to only EQ and BT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: mara.

SELECT-OPTIONS: s_matnr FOR mara-matnr.

RANGES: r_matnr FOR mara-matnr.

START-OF-SELECTION.

  LOOP AT s_matnr.
    r_matnr = s_matnr.
    IF r_matnr-low IS NOT INITIAL.
      CONCATENATE r_matnr-low '*' INTO r_matnr-low.
    ENDIF.
    IF r_matnr-high IS NOT INITIAL.
      CONCATENATE r_matnr-high '*' INTO r_matnr-high.
    ENDIF.
    r_matnr-option = 'CP'.
    APPEND r_matnr.
  ENDLOOP.

  SELECT * FROM mara WHERE matnr IN r_matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 19:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132464#M744210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T19:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: About select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132465#M744211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, thanks a million. For some time our server was not working, so I delayed.&lt;/P&gt;&lt;P&gt;Its working as per my requirement. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 20:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-options/m-p/3132465#M744211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T20:40:12Z</dc:date>
    </item>
  </channel>
</rss>

