<?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 selection criteria in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358544#M805805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using below select statement&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam&lt;/P&gt;&lt;P&gt;         from vbrk&lt;/P&gt;&lt;P&gt;         where&lt;/P&gt;&lt;P&gt;             vbeln in s_vbeln  and&lt;/P&gt;&lt;P&gt;             erdat in s_erdat   and&lt;/P&gt;&lt;P&gt;             ernam eq p_ernam  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My problem is s_vbeln and s_erdat is select option and&lt;/P&gt;&lt;P&gt;p_ernam is parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while running this program with all 3 blank selection screen select statement not fetching any data. If  I exclude the statement p_ernam, I am getting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to place parameter p_ernam to this select query to get data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 12:19:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T12:19:46Z</dc:date>
    <item>
      <title>selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358544#M805805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using below select statement&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam&lt;/P&gt;&lt;P&gt;         from vbrk&lt;/P&gt;&lt;P&gt;         where&lt;/P&gt;&lt;P&gt;             vbeln in s_vbeln  and&lt;/P&gt;&lt;P&gt;             erdat in s_erdat   and&lt;/P&gt;&lt;P&gt;             ernam eq p_ernam  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My problem is s_vbeln and s_erdat is select option and&lt;/P&gt;&lt;P&gt;p_ernam is parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while running this program with all 3 blank selection screen select statement not fetching any data. If  I exclude the statement p_ernam, I am getting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to place parameter p_ernam to this select query to get data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358544#M805805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358545#M805806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the select stmt is taking ernam value as SPACE and hence u r not getting any recorsd when u put p_ernam in the WHERE clause of select stmt..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put a condition:&lt;/P&gt;&lt;P&gt;IF not p_ernam is initial.&lt;/P&gt;&lt;P&gt;select..where &amp;lt;&amp;gt; and ernam eq p_ernam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;select ...where &amp;lt;&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Shakir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358545#M805806</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-01-29T12:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358546#M805807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare p_ernam is also as Select-options.&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:p_ernam for table-field &lt;STRONG&gt;no intervals&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358546#M805807</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2008-01-29T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358547#M805808</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;for parameters we have to specify the value..other wise it won't give the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not p_ernam is initial.&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam&lt;/P&gt;&lt;P&gt;from vbrk&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;vbeln in s_vbeln and&lt;/P&gt;&lt;P&gt;erdat in s_erdat and&lt;/P&gt;&lt;P&gt;ernam eq p_ernam .&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam&lt;/P&gt;&lt;P&gt;from vbrk&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;vbeln in s_vbeln &lt;/P&gt;&lt;P&gt;erdat in s_erdat.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358547#M805808</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-01-29T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358548#M805809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that you are looking for an invoice with user SPACE and no user had that user name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the parameter USER NAME should be obligatory. One more thing you can do is declare a range and put the selected value in that range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges r_ernam for vbrk-ernam.

clear: r_ernam .

r_ernam-low = p_ernam.
r_ernam-sign = 'I'.
r_ernam-option = 'EQ'.

append r_ernam.

select vbeln erdat ernam
from vbrk
where
vbeln in s_vbeln and
erdat in s_erdat and
ernam IN R_ERNAM .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if the user doesn't specifies a user name, all user names are looked for in database. I hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358548#M805809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358549#M805810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For Select-Options without giving any values in the selection screen, you can get data.&lt;/P&gt;&lt;P&gt;Where as for Parameters, whatever you give values that should be matched the value in the table field.&lt;/P&gt;&lt;P&gt;Currently you are not giving any value for parameter means the table should contain a record without any creating date. This is not possible, hence you are not getting any records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358549#M805810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358550#M805811</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;Create a range for p_ernam and fill the value from p_ernam to the -low field of the range. When using ranges you will be able to find data, when p_ernam is blank (or initial)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Flemming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358550#M805811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358551#M805812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt; p_eranme for &amp;lt;fiedname&amp;gt;  NO-EXTENSION  NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam&lt;/P&gt;&lt;P&gt;from vbrk&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;vbeln in s_vbeln and&lt;/P&gt;&lt;P&gt;erdat in s_erdat and&lt;/P&gt;&lt;P&gt;ernam in p_ernam .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358551#M805812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358552#M805813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IN your code check the value of P_ernam if it is blank then query should not shoot.&lt;/P&gt;&lt;P&gt;use code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not p_ernam is initial.&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam&lt;/P&gt;&lt;P&gt;from vbrk&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;vbeln in s_vbeln and&lt;/P&gt;&lt;P&gt;erdat in s_erdat and&lt;/P&gt;&lt;P&gt;ernam eq p_ernam .&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;select vbeln erdat ernam&lt;/P&gt;&lt;P&gt;from vbrk&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;vbeln in s_vbeln&lt;/P&gt;&lt;P&gt;erdat in s_erdat.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;kushagra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358552#M805813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: selection criteria</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358553#M805814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. u can declare the parameter as select option without extension and intervals&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2. u can use the a default value in parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can write the SELECT ina IF block like&lt;/P&gt;&lt;P&gt;IF parameter is initial&lt;/P&gt;&lt;P&gt; do this&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt; do this&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-criteria/m-p/3358553#M805814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:56:10Z</dc:date>
    </item>
  </channel>
</rss>

