<?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: input parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344703#M801948</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;  If no data entered in the input parameter, it will be treated as blank and Select query will fetch only the records with blank field of the respective field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there is no point of avoiding the field from the Select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont want to use the input parameters in the select query, first fetch all the records into internal table and filter it based on the input parameters. then no point of writing multiple select statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2008 02:32:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-28T02:32:17Z</dc:date>
    <item>
      <title>input parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344701#M801946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a report with 10 input parameters wherein only two are obligatory, the rest are optional. The problem is, as far as I know, if you use an input parameter that is blank in a WHERE condition of a SELECT statement no records will be selected from a table, correct? Unlike in a select-option wherein if it is blank all records from a table is selected. &lt;/P&gt;&lt;P&gt;The user does not want all input parameters to be set to OBLIGATORY. &lt;/P&gt;&lt;P&gt;Can anyone provide any suggestions wherein if an input parameter is empty this will be disregarded by the SELECT statement? I have several ideas such as creating mulitple SELECT statements wherein the WHERE condition will only use input parameters that has a value entered, but this is to cumbersome. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2008 18:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344701#M801946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-27T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: input parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344702#M801947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reethu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever you use a selection screen object in select and if its balnk all the data from the table related to that field will get executed.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pa_vbeln is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vbeln eq pa_vbeln&lt;/P&gt;&lt;P&gt;you will get all the vbeln which are blank which is ZERO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: so_vbeln for vbak-vbeln.      &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; blank (no values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vbeln in so_vbeln. &amp;lt;&amp;lt;&amp;lt; you will get all the data.. irrespective of the so_vbeln inputs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jackandjay on Jan 27, 2008 9:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2008 18:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344702#M801947</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-27T18:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: input parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344703#M801948</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;  If no data entered in the input parameter, it will be treated as blank and Select query will fetch only the records with blank field of the respective field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there is no point of avoiding the field from the Select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont want to use the input parameters in the select query, first fetch all the records into internal table and filter it based on the input parameters. then no point of writing multiple select statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 02:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344703#M801948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T02:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: input parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344704#M801949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try appending values to the parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 02:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344704#M801949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T02:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: input parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344705#M801950</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;Make your parameter as select option with syntax&lt;/P&gt;&lt;P&gt;select-options : so_field for tablename-tablefield with no extension no interval .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make select-option appear as parameter on the selection screen,&lt;/P&gt;&lt;P&gt;and in the select query it behaves like select-option, it will fetch data with blank values .&lt;/P&gt;&lt;P&gt;And when value entered it will get taht particular record .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will not allow user to enter multiple records for the field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 02:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344705#M801950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T02:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: input parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344706#M801951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some options: &lt;/P&gt;&lt;P&gt;- In stead of defining a parameter, use a select-option with the &lt;/P&gt;&lt;P&gt;no-intervals and no extension option. You can also restrict other &lt;/P&gt;&lt;P&gt;options of the select-option like CP or NE. (function module &lt;/P&gt;&lt;P&gt;SELECT_OPTIONS_RESTRICT) &lt;/P&gt;&lt;P&gt;- you can use the parameters as part of a dynamic where-clause. Only add &lt;/P&gt;&lt;P&gt;the parameters with values to the dynamic part &lt;/P&gt;&lt;P&gt;- you can use a LIKE option. If parameter is empty, put value '%' in it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I would choose the second option...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 11:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344706#M801951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T11:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: input parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344707#M801952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reethu,&lt;/P&gt;&lt;P&gt;   Praveen's response is the solution for your problem.&lt;/P&gt;&lt;P&gt;Did you try his suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 11:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-parameters/m-p/3344707#M801952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T11:17:44Z</dc:date>
    </item>
  </channel>
</rss>

