<?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 Parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102300#M438383</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;I have 4 parameters in the selection screen.All of which are not abligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have to include these parameters in the select statement depending on the data in the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the parameters have no data the I have to write the select with out the parameters in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I consider the &amp;lt;b&amp;gt;IF ENDIF&amp;lt;/b&amp;gt; or the &amp;lt;b&amp;gt;CASE ENDCASE&amp;lt;/b&amp;gt; options, I would have to write &amp;lt;b&amp;gt;16&amp;lt;/b&amp;gt; conditions which would effect the program efficiency very badly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way in which this problem can be resolved??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Supriya Manik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2007 09:27:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-11T09:27:52Z</dc:date>
    <item>
      <title>Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102300#M438383</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;I have 4 parameters in the selection screen.All of which are not abligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have to include these parameters in the select statement depending on the data in the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the parameters have no data the I have to write the select with out the parameters in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I consider the &amp;lt;b&amp;gt;IF ENDIF&amp;lt;/b&amp;gt; or the &amp;lt;b&amp;gt;CASE ENDCASE&amp;lt;/b&amp;gt; options, I would have to write &amp;lt;b&amp;gt;16&amp;lt;/b&amp;gt; conditions which would effect the program efficiency very badly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way in which this problem can be resolved??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Supriya Manik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102300#M438383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102301#M438384</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;Use select-options...with addition no-intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will force select-option to behave as a parameter on the screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the user enters any thing it acts like a parameter else like a select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_vbeln for vbak-vbeln no-intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102301#M438384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102302#M438385</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;Select options with no-interval would be the best thing for your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nidhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102302#M438385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102303#M438386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the four parameters data which I am refering to come from the Wepage,where we capture the data and get it to the RFC.Hence they have to be treated as parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102303#M438386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102304#M438387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel the solution given by Kaushal should hold true but in case you dont want to change it to select-option than you can use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges : r_param1 for param1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh r_param1.&lt;/P&gt;&lt;P&gt;if param1 is not blank&lt;/P&gt;&lt;P&gt;  move param1 to r_param1-low.&lt;/P&gt;&lt;P&gt;  move 'EQ' to r_param1-sign.&lt;/P&gt;&lt;P&gt;  move 'I' to r_param1-option.&lt;/P&gt;&lt;P&gt;  append r_param1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similary code for the other parameters (please check the values for sign and option)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM TABLE WHERE &lt;/P&gt;&lt;P&gt;FIELD1 in R_PARAM1 and&lt;/P&gt;&lt;P&gt;field2 in r_param2 etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102304#M438387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102305#M438388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also use the &amp;lt;b&amp;gt;no extension&amp;lt;/b&amp;gt; addition along with &amp;lt;b&amp;gt;no intervals&amp;lt;/b&amp;gt;, which makes select-options look very much like parameter declaration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102305#M438388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102306#M438389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and populate them when u have a value from web page and leave them blank when u have no value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102306#M438389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102307#M438390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while passing to RFC u can pass them as &amp;lt;b&amp;gt;s_field1-low&amp;lt;/b&amp;gt; , will that not work as a parameter??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102307#M438390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102308#M438391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi supriya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT-OPTIONS : SO_SELECT FOR MARA-MATNR &amp;lt;u&amp;gt;NO INTERVALS&amp;lt;/u&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use select-options with no intervals...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in ur select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT ....&lt;/P&gt;&lt;P&gt;FROM &amp;lt;TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;INTO   &amp;lt;INTERNAL TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;FIELD&amp;gt; IN &amp;lt;SO_SELECT&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u dont hv to use numerous if...endif conditions nor   case...endcase....even tough the select option is empty...and obligatory....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence , select option with no intervals acts as a parameter.&lt;/P&gt;&lt;P&gt;I hope ur problem is solved...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ginni...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102308#M438391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102309#M438392</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;Even though its a parameter u internally build the select option table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the parameter u r passing is 1000 for company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_company_code&lt;/P&gt;&lt;P&gt;           comp_code_sign type SIGN,&lt;/P&gt;&lt;P&gt;           comp_code_opt type option&lt;/P&gt;&lt;P&gt;           comp_code_low type bukrs,&lt;/P&gt;&lt;P&gt;           comp_code_high type bukrs,&lt;/P&gt;&lt;P&gt;end of ty_company_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_company_code type table of ty_company_code,&lt;/P&gt;&lt;P&gt;         wa_company_code type ty_company_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_company_code-comp_code_sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_company_code-comp_code_option = 'EQ'.&lt;/P&gt;&lt;P&gt;wa_company_code-comp_code-low = '1000'.&lt;/P&gt;&lt;P&gt;append wa_company_code to it_company_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this u can build the select option internal table for four paramaters&lt;/P&gt;&lt;P&gt;and use it in query like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;tbname&amp;gt; where bukrs in it_company_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2102309#M438392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:49:06Z</dc:date>
    </item>
  </channel>
</rss>

