<?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: function module: Select...into in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688712#M1576717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem must be in your range tables - they are not getting populated with the correct values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 12:29:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-22T12:29:46Z</dc:date>
    <item>
      <title>function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688698#M1576703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve got a strange problem concering a 'select...into itab...' in a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although the dbtab contains data, the 'select...' is not successful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; select x y from dbtab into itab where...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any restrictions or special requirements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688698#M1576703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688699#M1576704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try select x y from dbtab into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;make sure the structure of your internal table is the same as the table your getting values from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688699#M1576704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688700#M1576705</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;May be, your error would be coming like --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"You can not use work-area as internal table"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, you need to to put TABLE after INTO like --&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select x y from dbtab into TABLE itab where...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And otherwise, above suggestion is there - "INTO CORRESPONDING FIELDS OF TABLE" - , what you need to follow, if you are not declaring your structure according to the position of those in the table.&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;Kumar Saurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688700#M1576705</guid>
      <dc:creator>former_member186491</dc:creator>
      <dc:date>2011-02-22T07:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688701#M1576706</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;If you confirm the structures and fields are same in the table &amp;amp; DBTAB then verify the WHERE coondition of the SELECT statement where there may be any field with the DATE format or field with the Conversion Exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SRinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688701#M1576706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688702#M1576707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688702#M1576707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688703#M1576708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;make sure ur itab structure and selection fields must be in same order.&lt;/P&gt;&lt;P&gt;for ex: &lt;/P&gt;&lt;P&gt;ur itab structure contains  &lt;/P&gt;&lt;P&gt;y type mara-matnr&lt;/P&gt;&lt;P&gt;x type mara-pstat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then ur select query should be in the same order as&lt;/P&gt;&lt;P&gt;select y&lt;/P&gt;&lt;P&gt;           x&lt;/P&gt;&lt;P&gt;from dbtab&lt;/P&gt;&lt;P&gt;into table  itab&lt;/P&gt;&lt;P&gt;where....&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;Rakesh.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688703#M1576708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688704#M1576709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688704#M1576709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688705#M1576710</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;   i think 1 point i want to add is in where condition key fields is a must.otherwise u will get performance issue somethings it goes to dump.&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;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688705#M1576710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688706#M1576711</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;It still doesn´t work.&lt;/P&gt;&lt;P&gt;Here is the entire coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;    it_bsid TYPE TABLE OF ZGMATG_OBI_002,&lt;/P&gt;&lt;P&gt;    wa_bsid type ZGMATG_OBI_002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Structure zgmatg_obi_002 only contains fields XBLNR and XREF1. (in exactly this order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT xblnr xref1 FROM bsid&lt;/P&gt;&lt;P&gt;                    INTO corresponding fields of TABLE it_bsid&lt;/P&gt;&lt;P&gt;                      where ( blart = 'RV' OR blart = 'DA' )&lt;/P&gt;&lt;P&gt;                      AND xref1 IN r_datum&lt;/P&gt;&lt;P&gt;                      AND xref3 IN r_datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688706#M1576711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688707#M1576712</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;What is your sy-subrc value after the Select statement? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suzie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688707#M1576712</guid>
      <dc:creator>lijisusan_mathews</dc:creator>
      <dc:date>2011-02-22T07:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688708#M1576713</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 ...provides sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I´m doing the same thing within a 'conventional' ABAP the sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 08:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688708#M1576713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T08:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688709#M1576714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try reducing or removing your WHERE conditions first, just to check if your select statement can fetch something from the table. Also, try something like SELECT bsid&lt;SUB&gt;xblnr bsid&lt;/SUB&gt;xref1FROM bsid . . .&lt;/P&gt;&lt;P&gt;might help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 08:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688709#M1576714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T08:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688710#M1576715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is r_datum? What value does it have? If it is a range object, what values does &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;r_datum[]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; have? Check in the debugger to find the exact values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without this information any answers posted here are just guesses. There is nothing strange - the simple fact is that your where clause, somehow, isn't matching what's in the table.&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, 22 Feb 2011 09:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688710#M1576715</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2011-02-22T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688711#M1576716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; The sy-subrc = 4 indicates that the DB table does not have any records matching your given criteria.&lt;/P&gt;&lt;P&gt; Check if the values are getting populated properly in R_datum[] if it is the date try passing the dates in YYYYMMDD format into r_datum [].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suzie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688711#M1576716</guid>
      <dc:creator>lijisusan_mathews</dc:creator>
      <dc:date>2011-02-22T11:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: function module: Select...into</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688712#M1576717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem must be in your range tables - they are not getting populated with the correct values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 12:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-select-into/m-p/7688712#M1576717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T12:29:46Z</dc:date>
    </item>
  </channel>
</rss>

