<?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: Parameters Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-issue/m-p/3213859#M766275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the easiest way to do this would be to replace the parameters with select options and modify the select statement appropriatley. See the following code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZSTATS_CUML2. &lt;/P&gt;&lt;P&gt;select-options: so_date for ZSTATS_CUML2-zdate NO INTERVALS no-extension , &lt;/P&gt;&lt;P&gt;           so_user for ZSTATS_CUML2-account NO INTERVALS no-extension , &lt;/P&gt;&lt;P&gt;           so_tcode for ZSTATS_CUML2-tcode NO INTERVALS no-extension . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and I put entries in table tab_1 from ZSTATS_CUML2 table as follows: &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;  from ZSTATS_CUML2 &lt;/P&gt;&lt;P&gt;  where Not tcode = ' ' and &lt;/P&gt;&lt;P&gt;           tcode in so_tcode and &lt;/P&gt;&lt;P&gt;           zdate in so_date and &lt;/P&gt;&lt;P&gt;           account in so_user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab_1-tcode = ZSTATS_CUML2-tcode. &lt;/P&gt;&lt;P&gt;tab_1-logindate = ZSTATS_CUML2-zdate. &lt;/P&gt;&lt;P&gt;tab_1-username = ZSTATS_CUML2-account. &lt;/P&gt;&lt;P&gt;tab_1-responsetime = ZSTATS_CUML2-respti. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append tab_1 to tab_1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore if the select option is left blank the 'tcode in so_tcode' statement will return everything! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if found helpful....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chandra Sekhar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Dec 2007 13:53:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-24T13:53:06Z</dc:date>
    <item>
      <title>Parameters Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-issue/m-p/3213857#M766273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 3 parameters in my ABAP Program: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: p_date like ZSTATS_CUML2-zdate , &lt;/P&gt;&lt;P&gt;           p_user like ZSTATS_CUML2-account, &lt;/P&gt;&lt;P&gt;           p_tcode like ZSTATS_CUML2-tcode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I put entries in table tab_1 from ZSTATS_CUML2 table as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZSTATS_CUML2 where Not tcode = ''and tcode = p_tcode and &lt;/P&gt;&lt;P&gt;zdate = p_date and account = p_user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab_1-tcode = ZSTATS_CUML2-tcode. &lt;/P&gt;&lt;P&gt;tab_1-logindate = ZSTATS_CUML2-zdate. &lt;/P&gt;&lt;P&gt;tab_1-username = ZSTATS_CUML2-account. &lt;/P&gt;&lt;P&gt;tab_1-responsetime = ZSTATS_CUML2-respti. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append tab_1 to tab_1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that if user gives no input in parameters, then all entries come in tab_1 or if user gives input in 2 parameters then the selection criteria should apply only in 2 parameters.what happens now ,if i give no value in any paramater , the output table contains nothing , it's empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;Suneela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 10:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-issue/m-p/3213857#M766273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-23T10:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-issue/m-p/3213858#M766274</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 use the &lt;STRONG&gt;IN&lt;/STRONG&gt;-operator together with the &lt;STRONG&gt;select-options&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Here ist your coding, changed by using select-options and the in operetors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whitout the &lt;STRONG&gt;NO-EXTENSION&lt;/STRONG&gt; and &lt;STRONG&gt;NO INTERVALS&lt;/STRONG&gt; keywords, the select-options have more options then the PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TABLES zstats_cuml2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt; s_date  FOR zstats_cuml2-zdate   NO-EXTENSION NO INTERVALS,&lt;/P&gt;&lt;P&gt; s_user  FOR zstats_cuml2-account NO-EXTENSION NO INTERVALS,&lt;/P&gt;&lt;P&gt;  s_tcode FOR zstats_cuml2-tcode   NO-EXTENSION NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM zstats_cuml2 WHERE NOT tcode   = ''&lt;/P&gt;&lt;P&gt;                                                    AND tcode   IN s_tcode&lt;/P&gt;&lt;P&gt;                                                    AND zdate   IN s_date&lt;/P&gt;&lt;P&gt;                                                    AND account IN s_user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tab_1-tcode        = zstats_cuml2-tcode.&lt;/P&gt;&lt;P&gt;  tab_1-logindate    = zstats_cuml2-zdate.&lt;/P&gt;&lt;P&gt;  tab_1-username     = zstats_cuml2-account.&lt;/P&gt;&lt;P&gt;  tab_1-responsetime = zstats_cuml2-respti.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND tab_1 TO tab_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many greetings,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 15:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-issue/m-p/3213858#M766274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-23T15:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-issue/m-p/3213859#M766275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the easiest way to do this would be to replace the parameters with select options and modify the select statement appropriatley. See the following code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZSTATS_CUML2. &lt;/P&gt;&lt;P&gt;select-options: so_date for ZSTATS_CUML2-zdate NO INTERVALS no-extension , &lt;/P&gt;&lt;P&gt;           so_user for ZSTATS_CUML2-account NO INTERVALS no-extension , &lt;/P&gt;&lt;P&gt;           so_tcode for ZSTATS_CUML2-tcode NO INTERVALS no-extension . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and I put entries in table tab_1 from ZSTATS_CUML2 table as follows: &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;  from ZSTATS_CUML2 &lt;/P&gt;&lt;P&gt;  where Not tcode = ' ' and &lt;/P&gt;&lt;P&gt;           tcode in so_tcode and &lt;/P&gt;&lt;P&gt;           zdate in so_date and &lt;/P&gt;&lt;P&gt;           account in so_user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab_1-tcode = ZSTATS_CUML2-tcode. &lt;/P&gt;&lt;P&gt;tab_1-logindate = ZSTATS_CUML2-zdate. &lt;/P&gt;&lt;P&gt;tab_1-username = ZSTATS_CUML2-account. &lt;/P&gt;&lt;P&gt;tab_1-responsetime = ZSTATS_CUML2-respti. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append tab_1 to tab_1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore if the select option is left blank the 'tcode in so_tcode' statement will return everything! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if found helpful....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chandra Sekhar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 13:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-issue/m-p/3213859#M766275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T13:53:06Z</dc:date>
    </item>
  </channel>
</rss>

