<?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: parameter to select-option conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859385#M1475481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;This is a very basic question that you can solve yourself. Please try and search for answers before posting questions, as we are trying to cut down on the redundancy in these forums.&lt;/P&gt;&lt;P&gt;Thread locked.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 11:45:03 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-04-23T11:45:03Z</dc:date>
    <item>
      <title>parameter to select-option conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859381#M1475477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a parameter field on selection screen and it is optional. &lt;/P&gt;&lt;P&gt;If user enters any data on parameter, then I have to retrieve only corresponding value to the parameter from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user does not enter any data in parameter, then I have to fetch all the records. &lt;/P&gt;&lt;P&gt;I want to convert this to selection-option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 06:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859381#M1475477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T06:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: parameter to select-option conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859382#M1475478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a range for that......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS: p_test TYPE c.

IF p_test IS NOT INITIAL.
r_test-sign    = 'I'.
r_test-option = 'EQ'.
r_test-low     = p_test.
APPEND r_test.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no value is entered in parameter then don't populate the range and it will get all the possible values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 06:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859382#M1475478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T06:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: parameter to select-option conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859383#M1475479</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;Instead of converting why cant you do like this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if P_field is initial.
select * from &amp;lt;table&amp;gt;
into table itab.
else.
select * from &amp;lt;table &amp;gt;
into table itab 
where field  = p_field.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use select-option as parameter in this way,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Select-options : s_field for wa-field no intervals no-extension.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 06:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859383#M1475479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: parameter to select-option conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859384#M1475480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see the SCN Rules before Posting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 06:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859384#M1475480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T06:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: parameter to select-option conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859385#M1475481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;This is a very basic question that you can solve yourself. Please try and search for answers before posting questions, as we are trying to cut down on the redundancy in these forums.&lt;/P&gt;&lt;P&gt;Thread locked.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 11:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-to-select-option-conversion/m-p/6859385#M1475481</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-04-23T11:45:03Z</dc:date>
    </item>
  </channel>
</rss>

