<?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/3129537#M743397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cant really do that because select-options are a internal table of type ranges. As you can not foresse the number of lines in that table you will have problems to have tme in separated vairiables and to be honest i cant see the advantage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need the first to third value why dont you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table s_option index 1&lt;/P&gt;&lt;P&gt;read table s_option index 2&lt;/P&gt;&lt;P&gt;read table s_option index 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he have a look to the component lo of the structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Nov 2007 20:46:53 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2007-11-18T20:46:53Z</dc:date>
    <item>
      <title>SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129536#M743396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have the select-options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;   SELECT-OPTIONS: s_vkorg FOR s650-vkorg, &lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;    SELECTION-SCREEN: END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need separte in several variables the content of s_vkorg.&lt;/P&gt;&lt;P&gt;For example, If I have selected in s_vkorg the values "ORG1,ORG2,ORG3", I need copy the content in three variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = ORG1&lt;/P&gt;&lt;P&gt;var2 = ORG2&lt;/P&gt;&lt;P&gt;var3 = ORG3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2007 20:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129536#M743396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-18T20:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129537#M743397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cant really do that because select-options are a internal table of type ranges. As you can not foresse the number of lines in that table you will have problems to have tme in separated vairiables and to be honest i cant see the advantage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need the first to third value why dont you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table s_option index 1&lt;/P&gt;&lt;P&gt;read table s_option index 2&lt;/P&gt;&lt;P&gt;read table s_option index 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he have a look to the component lo of the structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2007 20:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129537#M743397</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-11-18T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129538#M743398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since its a select option the user can also provide a range -- low to high values. &lt;/P&gt;&lt;P&gt;So we can't just go by index 1, 2, 3.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is to fire a select query on the master table for sales org. and fetch all the sales org IN  s_option  into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can loop at the internal table and assign the values to variables.&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;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2007 21:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129538#M743398</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-18T21:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129539#M743399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to do if the contents of s_vkorg is ORG*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES tvko.

SELECT-OPTIONS s_vkorg FOR tvko-vkorg.

DATA: BEGIN OF itab OCCURS 0,
        vkorg TYPE tvko-vkorg,
      END   OF itab.

SELECT vkorg
  INTO TABLE itab
  FROM tvko
  WHERE vkorg IN s_vkorg.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB will have all the possible VKORGs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used table TVKO instead of S650 because S650 does not exist in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2007 21:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3129539#M743399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-18T21:56:08Z</dc:date>
    </item>
  </channel>
</rss>

