<?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: Module pool selction screen parameters combination logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-selction-screen-parameters-combination-logic/m-p/6294814#M1390273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;The solution suggested is clear,&lt;/P&gt;&lt;P&gt;However if you have to make selection on the parameters using combination like and ,or then u could use dynamic select query to retrieve data .&lt;/P&gt;&lt;P&gt;since u can not give with all the combinations ,&lt;/P&gt;&lt;P&gt;So once u have fetced the parameters in ranges table then use the dynamic selection to fetch the required data.&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;M.Naveen Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2009 11:35:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-22T11:35:42Z</dc:date>
    <item>
      <title>Module pool selction screen parameters combination logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-selction-screen-parameters-combination-logic/m-p/6294812#M1390271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi floks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am new to the module pool development ,Recently i have created one program based on customer requwst. in this program First screen having 4 selection parameters like1,2,3,4. based on selection parameters i have to display values in table control .But i have lot of combinations like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first : all are initialized&lt;/P&gt;&lt;P&gt;second : 1is having vaue and other or intialised. like.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its crisp logic to write based on all combitions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is another way to declare ths type things ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me pseducode or tipsof this crisp code combinations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;nithaya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 18:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-selction-screen-parameters-combination-logic/m-p/6294812#M1390271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T18:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool selction screen parameters combination logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-selction-screen-parameters-combination-logic/m-p/6294813#M1390272</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;You can follow this alternative for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say you have 4 parameters as:&lt;/P&gt;&lt;P&gt;1st parameter : &lt;STRONG&gt;MATNR&lt;/STRONG&gt; (material number from MARA)&lt;/P&gt;&lt;P&gt;2nd parameter : &lt;STRONG&gt;MTART&lt;/STRONG&gt; (material type from MARA)&lt;/P&gt;&lt;P&gt;3rd parameter : &lt;STRONG&gt;MATKL&lt;/STRONG&gt; (material group from MARA)&lt;/P&gt;&lt;P&gt;4th parameter : &lt;STRONG&gt;MBRSH&lt;/STRONG&gt; (industry sector from MARA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now user may or may not put in the parameter values for these 4 defined parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to filter data according to the entries the user provides in (in any or all of the 4 parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
RANGES : r_matnr FOR mara-matnr,
         r_mtart FOR mara-mtart,
         r_matkl FOR mara-matkl,
         r_mbrsh FOR mara-mbrsh.

"first parameter
IF NOT p_matnr IS INITIAL.
  r_matnr-sign = 'I'.
  r_matnr-option = 'EQ'.
  r_matnr-low = p_matnr.
  APPEND r_matnr.
  CLEAR r_matnr.
ELSE.
  REFRESH r_matnr.
ENDIF.

"second parameter
IF NOT p_mtart IS INITIAL.
  r_mtart-sign = 'I'.
  r_mtart-option = 'EQ'.
  r_mtart-low = p_mtart.
  APPEND r_mtart.
  CLEAR r_mtart.
ELSE.
  REFRESH r_mtart.
ENDIF.

"third parameter
IF NOT p_matkl IS INITIAL.
  r_matkl-sign = 'I'.
  r_matkl-option = 'EQ'.
  r_matkl-low = p_matkl.
  APPEND r_matkl.
  CLEAR r_matkl.
ELSE.
  REFRESH r_matkl.
ENDIF.

"fourth parameter
IF NOT p_mbrsh IS INITIAL.
  r_mbrsh-sign = 'I'.
  r_mbrsh-option = 'EQ'.
  r_mbrsh-low = p_mbrsh.
  APPEND r_mbrsh.
  CLEAR r_mbrsh.
ELSE.
  REFRESH r_mbrsh.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use these ranges to populate the data.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT &amp;lt;field1, field2, ...&amp;gt;
FROM MARA
INTO it_material
WHERE matnr IN r_matnr
  AND mtart IN r_mtart
  AND matkl IN r_matkl
  AND mbrsh IN r_mbrsh.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this query will fetch you the details as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need some more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 05:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-selction-screen-parameters-combination-logic/m-p/6294813#M1390272</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-21T05:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool selction screen parameters combination logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-selction-screen-parameters-combination-logic/m-p/6294814#M1390273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;The solution suggested is clear,&lt;/P&gt;&lt;P&gt;However if you have to make selection on the parameters using combination like and ,or then u could use dynamic select query to retrieve data .&lt;/P&gt;&lt;P&gt;since u can not give with all the combinations ,&lt;/P&gt;&lt;P&gt;So once u have fetced the parameters in ranges table then use the dynamic selection to fetch the required data.&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;M.Naveen Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 11:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-selction-screen-parameters-combination-logic/m-p/6294814#M1390273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T11:35:42Z</dc:date>
    </item>
  </channel>
</rss>

