<?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: Regarding Selection option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986569#M73114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From a syntax perspective, yes your statement is correct. To tell whether it is going to give you correct results or not, depends on your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are going to VBAP table which is line item table for sales orders. Then what is shipment number doing in that select unless you mean sales order number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you have the sales order number VBELN and the item number POSNR, then you can use only those two to go to VBAP, but order date is on the header table VBAK. Another thing to look for is, suppose if the users enter 10 order numbers for SEL2 and 10 item numbers for SEL3, does that mean all 10 item numbers will be there in all 10 sales orders? Do you mean material number MATNR when you say item number? Then you will find all of them in VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as you can see, there will be too many questions, if you simply ask if your statement is correct. It is correct from a syntax perspective. If you are getting a syntax error, please post your exact select statement here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2005 12:35:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-25T12:35:48Z</dc:date>
    <item>
      <title>Regarding Selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986565#M73110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai guys&lt;/P&gt;&lt;P&gt;I have Condition screen having &lt;/P&gt;&lt;P&gt;three select options parameter&lt;/P&gt;&lt;P&gt;How to use query SELECT statement with selection option parameter.?&lt;/P&gt;&lt;P&gt;say for example.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; Order date  - SEL1 (SELECT-OPTION- FROM..TO Range)&lt;/P&gt;&lt;P&gt; Shipment no - SEL2 (SELECT-OPTION)&lt;/P&gt;&lt;P&gt; item no     - SEL3 (SELECT-OPTION)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use this three parameter in SELECT statement.&lt;/P&gt;&lt;P&gt;SELECT ... from VBAP where ORD IN SEL1 AND ORD IN SEL2 and ORD IN SEL3.&lt;/P&gt;&lt;P&gt;was the above condition usage is correct?&lt;/P&gt;&lt;P&gt;pls let me know.&lt;/P&gt;&lt;P&gt;ambichan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 11:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986565#M73110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T11:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986566#M73111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ... from VBAP 
     into table i_tab
     where ord IN sel1
     AND ship IN sel2 
     AND item IN sel3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Its correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: sel1 FOR VBAP-ERDAT,
                sel2 FOR VBAP-AUFNR, (or whatever it is)
                sel3 FOR VBAP-POSEX.

 SELECT ... from VBAP 
          into table i_tab
         where erdat IN sel1
         AND   aufnr IN sel2 
         AND   posex IN sel3.
 If sy-subrc = 0.
 
 endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The code u have writen is correct&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly close the previous threads open by you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 11:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986566#M73111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T11:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986567#M73112</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; The SELECT statement u have used is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruthra.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 11:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986567#M73112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T11:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986568#M73113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes there could be requirement that if even of the select option matches then the corresponding data should be queried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So suppose ur order dates are valid and shipment number is invalid even then u want the program to obtain data then u have to use OR condition ( although this is a very rare case and a weird requirement ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... from VBAP where ORD IN SEL1 OR ORD IN SEL2 OR ORD IN SEL3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise the select statement is perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 12:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986568#M73113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T12:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986569#M73114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From a syntax perspective, yes your statement is correct. To tell whether it is going to give you correct results or not, depends on your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are going to VBAP table which is line item table for sales orders. Then what is shipment number doing in that select unless you mean sales order number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you have the sales order number VBELN and the item number POSNR, then you can use only those two to go to VBAP, but order date is on the header table VBAK. Another thing to look for is, suppose if the users enter 10 order numbers for SEL2 and 10 item numbers for SEL3, does that mean all 10 item numbers will be there in all 10 sales orders? Do you mean material number MATNR when you say item number? Then you will find all of them in VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as you can see, there will be too many questions, if you simply ask if your statement is correct. It is correct from a syntax perspective. If you are getting a syntax error, please post your exact select statement here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 12:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-option/m-p/986569#M73114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T12:35:48Z</dc:date>
    </item>
  </channel>
</rss>

