<?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: transfering data in SELECT-OPTIONS into Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645245#M877814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Shehryar dahar,
PO number ranges are maintained in sometable. I dont remember. Just write select query like this.
ex:
select-options: s_ebeln for ekpo-ebeln.
"Write one query to get PO number from number range table.
 Select &amp;lt;field&amp;gt;
  from &amp;lt;database table&amp;gt;
  into table i_pos
  where &amp;lt;field&amp;gt; in s_ebeln.

Ask Functional guyz to PO number range table or where they maintain.

Actuall Amit explained clearly.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2008 09:00:34 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2008-04-14T09:00:34Z</dc:date>
    <item>
      <title>transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645236#M877805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get my range in select-option into an internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shehryar Dahar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 08:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645236#M877805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T08:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645237#M877806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi,
Select-Option means that is internal table with with the following structure
DATA: BEGIN OF &amp;lt;select_op&amp;gt; OCCURS 0,
         SIGN(1),
         OPTION(2)
         LOW  LIKE &amp;lt;f&amp;gt;,
         HIGH LIKE &amp;lt;f&amp;gt;,
      END OF &amp;lt;select_op&amp;gt;.

example
&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_matnr for mara-matnr.&lt;/CODE&gt;&lt;/PRE&gt;
define structure like this for s_matnr.
&lt;PRE&gt;&lt;CODE&gt;data: w_matnr like line of s_manr.&lt;/CODE&gt;&lt;/PRE&gt;
Internal table 
&lt;PRE&gt;&lt;CODE&gt;
data:begin of i_mara occurs 0 with header line,
           matnr type mara-matnr,
        end of i_matnr.
Use the loop like this for range if u have given.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;data:l_times type i,
       l_count type i.
LOOP AT s_matnr into w_matnr.
  if w_matnr-option = 'BT' and w_matnr-sign = 'I'."Inclusive.
     l_times = w_matnr-high - w_matnr-low.
     l_count = 0.
      do l_times times.
         i_mara-matnr = w_matnr-low + l_count.
         l_count = l_count + 1.
      enddo.
  if w_matnr-option = 'BT' and w_matnr-sign = 'E'."Exclusive.
     l_times = w_matnr-high - w_matnr-low.
     l_count = 1.
      do l_times times.
         i_mara-matnr = w_matnr-low + l_count.
         l_count = l_count + 1.
      enddo.
  endif.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
I hope that it helps you .

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 08:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645237#M877806</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-12T08:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645238#M877807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but the above logic will work for numbers only, my data(in the range) can either be alpha-numeric or numbers or both. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shehryar Dahar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 08:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645238#M877807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645239#M877808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to "copy" the values from the select-option into a range variable then use the following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: gr_matnr      TYPE RANGE OF matnr,
           gs_rng         LIKE LINE OF gr_matnr.   " SIGN / OPTION / LOW / HIGH



SELECT-OPTIONS:
   o_matnr             FOR mara-matnr.



START-OF-SELECTION.

  gr_matnr = o_matnr[].  " NOTE: select-option = itab with header line

  LOOP AT gr_matnr INTO gs_rng.
  ...
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 09:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645239#M877808</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-04-12T09:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645240#M877809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Shehryar dahar,
If it is not number how do u give Range in Select-OPtion non-numbers.
If you give multiple values, in the select-options.
follow the this.
&lt;PRE&gt;&lt;CODE&gt;LOOP AT s_matnr INTO w_matnr.
  IF w_matnr-option = 'EQ' AND w_matnr-sign = 'I'.
    i_mara-matnr = w_matnr-low.
    APPEND i_mara.
    CLEAR  i_mara.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt; 

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 10:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645240#M877809</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-12T10:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645241#M877810</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;select-options and ranges are the internal tables having same structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can transfer from select-options to ranges and viceversa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---to transfer data from select-options to ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_matnr.&lt;/P&gt;&lt;P&gt;r_matnr-sign = s_matnr-sign.&lt;/P&gt;&lt;P&gt;r_matnr-option = s_matnr-option.&lt;/P&gt;&lt;P&gt;r_matnr-low = s_matnr-low.&lt;/P&gt;&lt;P&gt;r_matnr-high = s_matnr-high.&lt;/P&gt;&lt;P&gt;append r_matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this we can transfer data from ranges to select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 10:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645241#M877810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T10:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645242#M877811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the ekpo-bednr field (Requirement Tracking Number) which is actually a PO external number range from A0000 to AZZZZ (which is alpha numeric). I am using this field in the select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shehryar Dahar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 06:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645242#M877811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T06:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645243#M877812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shehryar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If i understand properly, then we &lt;/P&gt;&lt;P&gt;    have to use a select query for the master table,&lt;/P&gt;&lt;P&gt;    which contains all the field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. suppose itab contains one field only,&lt;/P&gt;&lt;P&gt;    in which u want all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select field&lt;/P&gt;&lt;P&gt;from dbtab&lt;/P&gt;&lt;P&gt;into itab&lt;/P&gt;&lt;P&gt;where field in seloption.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 07:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645243#M877812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T07:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645244#M877813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not explaining the scenario clearly, my bad !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have two system. Old and New SAP systems. I want to get the details of all PO's in the old system and for that i am using BAPI_PO_GETDETAIL(thru RFC dest command), in the new system. I cannot carry out developments in the old system so i am bound on developing a customer BAPI to access all the PO's in the old system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the new system, i have created a report which input a PO or range of PO numbers in the select-options, which then uses the above BAPI to get the PO detail. This PO number can be inputted as '45XXXXXXXX' or as 'A0XXXX'. Now i want to transfer my range in select-options IN internal table so that i can loop on it and get detail of the PO's. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if anyone has a workaround on it, kindly advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shehryar Dahar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 07:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645244#M877813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T07:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645245#M877814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Shehryar dahar,
PO number ranges are maintained in sometable. I dont remember. Just write select query like this.
ex:
select-options: s_ebeln for ekpo-ebeln.
"Write one query to get PO number from number range table.
 Select &amp;lt;field&amp;gt;
  from &amp;lt;database table&amp;gt;
  into table i_pos
  where &amp;lt;field&amp;gt; in s_ebeln.

Ask Functional guyz to PO number range table or where they maintain.

Actuall Amit explained clearly.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 09:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645245#M877814</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-14T09:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: transfering data in SELECT-OPTIONS into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645246#M877815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 12:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-data-in-select-options-into-internal-table/m-p/3645246#M877815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T12:16:42Z</dc:date>
    </item>
  </channel>
</rss>

