<?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: problem with select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354590#M520074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from setleaf into corresponding fields of table nonbonus   " Check here
where setname = 'znon_bonus'.
nonbonus-sign = setleaf-valsign .
nonbonus-option = setleaf-valoption.
nonbonus-low = setleaf-valfrom.
nonbonus-high = setleaf-valto.
append wa_nonbonus to nonbonus.
*endselect.  " reomuve endselect.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2007 15:19:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-11T15:19:36Z</dc:date>
    <item>
      <title>problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354588#M520072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends, my requirement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of t_nonbonus,&lt;/P&gt;&lt;P&gt;           sign       type setleaf-valsign,&lt;/P&gt;&lt;P&gt;           option   type setleaf-valoption,&lt;/P&gt;&lt;P&gt;           low        type setleaf-valfrom,&lt;/P&gt;&lt;P&gt;           high      type setleaf-valto,&lt;/P&gt;&lt;P&gt;           end   of t_nonbonus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: nonbonus TYPE STANDARD TABLE OF t_nonbonus,&lt;/P&gt;&lt;P&gt;wa_nonbonus type t_nonbonus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from setleaf into table nonbonus&lt;/P&gt;&lt;P&gt; where setname = 'znon_bonus'.&lt;/P&gt;&lt;P&gt;  nonbonus-sign = setleaf-valsign .&lt;/P&gt;&lt;P&gt;  nonbonus-option = setleaf-valoption.&lt;/P&gt;&lt;P&gt;  nonbonus-low = setleaf-valfrom.&lt;/P&gt;&lt;P&gt;  nonbonus-high = setleaf-valto.&lt;/P&gt;&lt;P&gt;  append wa_nonbonus to nonbonus.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i ran the above code, it gave the following error&lt;/P&gt;&lt;P&gt;ERROR:&lt;/P&gt;&lt;P&gt;1)The work area "NONBONUS" is not long enough . .		&lt;/P&gt;&lt;P&gt;2)Field "VALSIGN" is unknown. It is neither in one of the specified		&lt;/P&gt;&lt;P&gt;	tables nor defined by a "DATA" statement . . . . . . . . . .&lt;/P&gt;&lt;P&gt;3) For the statement "ENDSELECT",&lt;/P&gt;&lt;P&gt;   there is no open structure introduced by SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one help plz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 15:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354588#M520072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354589#M520073</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types : begin of t_nonbonus,
sign type setleaf-valsign,
option type setleaf-valoption,
low type setleaf-valfrom,
high type setleaf-valto,
end of t_nonbonus.

DATA: nonbonus TYPE STANDARD TABLE OF t_nonbonus,
wa_nonbonus type t_nonbonus.


select * from setleaf 
into corresponding fields of table nonbonus
where setname = 'znon_bonus'.
nonbonus-sign = setleaf-valsign .
nonbonus-option = setleaf-valoption.
nonbonus-low = setleaf-valfrom.
nonbonus-high = setleaf-valto.
&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 15:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354589#M520073</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-06-11T15:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354590#M520074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from setleaf into corresponding fields of table nonbonus   " Check here
where setname = 'znon_bonus'.
nonbonus-sign = setleaf-valsign .
nonbonus-option = setleaf-valoption.
nonbonus-low = setleaf-valfrom.
nonbonus-high = setleaf-valto.
append wa_nonbonus to nonbonus.
*endselect.  " reomuve endselect.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 15:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354590#M520074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354591#M520075</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;1. select * from setleaf into table nonbonus - &amp;lt;b&amp;gt;Instead of * use the fields which u have declared while creating the table or use Corresponding fields of.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Remove ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 15:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354591#M520075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354592#M520076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you friends,&lt;/P&gt;&lt;P&gt;now its not showing errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we do not need those lines of assigning values and append stmt  when we use  into table.  right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 15:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/2354592#M520076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T15:32:50Z</dc:date>
    </item>
  </channel>
</rss>

