<?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: select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685842#M887561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; Hi&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; As per my requirement when select option contain only exclude parameter(Not equal to)  dont want to execute the select statment. &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; suppose s_matnr contain only one value is ne 'Robert' then i dont want execute the select statment. Can any one let me know the logic for this plsease.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; select matnr from mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;The problem is not so simple, I think.  For example, how can you tell the difference beween someone selecting &lt;STRONG&gt;NE Robert'&lt;/STRONG&gt; and someone selecting between A to Q AND between S and Z.  Or if patterns are used: e.g. A* and B* and C&lt;STRONG&gt;... AND Q&lt;/STRONG&gt; AND S* AND... Z*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to think carefully about what you are trying to achieve.  Are you simply trying to ensure that the selected range of data is not "too large".?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, you'll have to do a test SELECT, using SELECT COUNT.  And only if the count exceeds a level, then deny the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 16:41:52 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-04-15T16:41:52Z</dc:date>
    <item>
      <title>select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685837#M887556</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;As per my requirement when select option contain only exclude parameter(Not equal to)  dont want to execute the select statment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose s_matnr contain only one value is ne 'Robert' then i dont want execute the select statment. Can any one let me know the logic for this plsease.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr from mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 16:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685837#M887556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T16:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685838#M887557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar Raj,&lt;/P&gt;&lt;P&gt;                     You have to code the logic before the select query in your report using the Select options internal table. In the table contains "NE" don't execute the select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 16:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685838#M887557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T16:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685839#M887558</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;do this way ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at s_matnr.
   if s_matnr-option = 'NE'.
      v_flag = 'X'.
     exit.
   endif.
endloop.

if v_flag is initial.
select matnr from mara where matnr in s_matnr.
endif.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 16:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685839#M887558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T16:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685840#M887559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr &lt;/P&gt;&lt;P&gt;          from mara&lt;/P&gt;&lt;P&gt;          into i_matnr &lt;/P&gt;&lt;P&gt;          where matnr in s_matnr&lt;/P&gt;&lt;P&gt;              and matnr CN 'ROBERT.&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 16:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685840#M887559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685841#M887560</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If s_matnr-option = 'NE'.&lt;/P&gt;&lt;P&gt;  write any error or information or status message&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  write the select statement from MARA.&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;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 16:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685841#M887560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T16:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685842#M887561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; Hi&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; As per my requirement when select option contain only exclude parameter(Not equal to)  dont want to execute the select statment. &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; suppose s_matnr contain only one value is ne 'Robert' then i dont want execute the select statment. Can any one let me know the logic for this plsease.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; select matnr from mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;The problem is not so simple, I think.  For example, how can you tell the difference beween someone selecting &lt;STRONG&gt;NE Robert'&lt;/STRONG&gt; and someone selecting between A to Q AND between S and Z.  Or if patterns are used: e.g. A* and B* and C&lt;STRONG&gt;... AND Q&lt;/STRONG&gt; AND S* AND... Z*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to think carefully about what you are trying to achieve.  Are you simply trying to ensure that the selected range of data is not "too large".?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, you'll have to do a test SELECT, using SELECT COUNT.  And only if the count exceeds a level, then deny the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 16:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685842#M887561</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-04-15T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685843#M887562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mat,&lt;/P&gt;&lt;P&gt;excellent ans...&lt;/P&gt;&lt;P&gt;u r hit the nail on the head there i guess.&lt;/P&gt;&lt;P&gt;The problem is not as simple as it looks as during the range it is bound to give problems..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it depends as u have said as to what exactly is tried to be done here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685843#M887562</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-04-15T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685844#M887563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome!  The trick is to go beyond what's asked and think about why the poster is asking.  ( I did many years ago do 1st line user support, so it's a skill I picked up ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685844#M887563</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-04-15T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685845#M887564</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;Check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba71235c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba71235c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Muneesh Gitta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 04:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3685845#M887564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T04:04:56Z</dc:date>
    </item>
  </channel>
</rss>

