<?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 SELECT - OPTIONS? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245330#M484606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv code like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 1:&lt;/P&gt;&lt;P&gt;SELECT SINGLE MATNR ARKTX  INTO (VBAP-MATNR, VBAP-ARKTX) FROM VBAP WHERE VSTEL = P_VSTEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv to change the selection criteria from Parameters(single value) to Select-options(range)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 2:&lt;/P&gt;&lt;P&gt;SELECT SINGLE MATNR ARKTX  INTO (VBAP-MATNR, VBAP-ARKTX) FROM VBAP WHERE VSTEL = S_VSTEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I hv to put the heading as ''The Shipping Point is'' WA_S_VSTEL_NAME &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will sort by VSTEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, pls. clarify that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- If I change simply the code from 1 to 2, Does it works? I mean, Is the SAP automatically, pulls the all selected shipping points MATNRS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - Or I need to go for SELECT-OPTIONS table and there by, loading down all values from select options table to my_select_options_table and then writing the code/looping based one the values I moved from select-options table? like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_VSTEL( ) = my_select_options_table( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(S_VSTEL-LOW &lt;/P&gt;&lt;P&gt;S_VSTEL-HIGH&lt;/P&gt;&lt;P&gt;SIGN etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2007 19:38:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-11T19:38:56Z</dc:date>
    <item>
      <title>SELECT - OPTIONS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245330#M484606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv code like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 1:&lt;/P&gt;&lt;P&gt;SELECT SINGLE MATNR ARKTX  INTO (VBAP-MATNR, VBAP-ARKTX) FROM VBAP WHERE VSTEL = P_VSTEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv to change the selection criteria from Parameters(single value) to Select-options(range)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 2:&lt;/P&gt;&lt;P&gt;SELECT SINGLE MATNR ARKTX  INTO (VBAP-MATNR, VBAP-ARKTX) FROM VBAP WHERE VSTEL = S_VSTEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I hv to put the heading as ''The Shipping Point is'' WA_S_VSTEL_NAME &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will sort by VSTEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, pls. clarify that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- If I change simply the code from 1 to 2, Does it works? I mean, Is the SAP automatically, pulls the all selected shipping points MATNRS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - Or I need to go for SELECT-OPTIONS table and there by, loading down all values from select options table to my_select_options_table and then writing the code/looping based one the values I moved from select-options table? like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_VSTEL( ) = my_select_options_table( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(S_VSTEL-LOW &lt;/P&gt;&lt;P&gt;S_VSTEL-HIGH&lt;/P&gt;&lt;P&gt;SIGN etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245330#M484606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT - OPTIONS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245331#M484607</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;Code 2:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT SINGLE MATNR ARKTX INTO (VBAP-MATNR, VBAP-ARKTX) FROM VBAP WHERE VBELN = ITVBAK-VBELN AND POSNR = ITVBFA-POSNV
AND VSTEL = S_VSTEL.   " &amp;lt;-- Change here    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please replace AND VSTEL = S_VSTEL with AND VSTEL IN S_VSTEL.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245331#M484607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT - OPTIONS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245332#M484608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ooops, sorry, in copying, this mistake happened! &lt;/P&gt;&lt;P&gt;yes, its IN operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Does SAP pulls all the records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245332#M484608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT - OPTIONS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245333#M484609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sridhar,&lt;/P&gt;&lt;P&gt;  You have to change your code to:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT MATNR ARKTX INTO table itab FROM VBAP WHERE VSTEL  in S_VSTEL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;itab must be declare as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;           matnr type vbap-matnr,&lt;/P&gt;&lt;P&gt;           arktx type VBAP-ARKTX,&lt;/P&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245333#M484609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT - OPTIONS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245334#M484610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   can you give us a bigger picture,&lt;/P&gt;&lt;P&gt;YOu are selection from VBAP table, which are actually sales order items, there will be many records for vbap for a single shipping point,.&lt;/P&gt;&lt;P&gt;You should pass the Sales Order number and Item nnumber to get unique records for each item.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245334#M484610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:45: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/2245335#M484611</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;So, Does SAP pulls all the records? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO. SELECT SINGLE statement selects the first row in the database that it finds that fulfils the 'WHERE' clause.&lt;/P&gt;&lt;P&gt;If this results in multiple records then only the first one will be returned and therefore may not be unique. &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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 19:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245335#M484611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T19:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT - OPTIONS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245336#M484612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using select - option statement in dis way : - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS  : PO_DATE FOR AUFK-ERDAT,&lt;/P&gt;&lt;P&gt;                  PO_TYPE FOR AUFK-AUART,&lt;/P&gt;&lt;P&gt;                  PO_CO_M FOR RESB-MATNR.&lt;/P&gt;&lt;P&gt; but i want to write po_date as PRODUCTION ORDER DATE , as i know d default value is 8 characters,i want to know the solution problem.plz help me its urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 05:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2245336#M484612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T05:44:56Z</dc:date>
    </item>
  </channel>
</rss>

