<?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: Syntax for Nested Select Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350986#M175958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your statement to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fldate bookid carrid connid class agencynum from sbook&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;into corresponding fields of &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;cust_info&lt;/P&gt;&lt;P&gt;where customid = scustom-id&lt;/P&gt;&lt;P&gt;order by fldate.&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, 05 May 2006 08:41:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-05T08:41:07Z</dc:date>
    <item>
      <title>Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350974#M175946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gday Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some dramas with this select statement. For the records in cust_info, when agencynum ne 0, I want to get the corresponding name field from stravelag into cust_info-name and write it. (along with all the other data in that row of cust_info)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting errors in the final select statement. Any ideas would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check not scustom-id is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fldate bookid carrid connid class agencynum from sbook&lt;/P&gt;&lt;P&gt;  into cust_info&lt;/P&gt;&lt;P&gt;  where customid = scustom-id&lt;/P&gt;&lt;P&gt;  order by fldate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if cust_info-agencynum = 0.&lt;/P&gt;&lt;P&gt;write:/ 'Agency Unknown',&lt;/P&gt;&lt;P&gt;  40 cust_info-fldate,&lt;/P&gt;&lt;P&gt;  55 cust_info-bookid,&lt;/P&gt;&lt;P&gt;  70 cust_info-carrid,&lt;/P&gt;&lt;P&gt;  85 cust_info-connid,&lt;/P&gt;&lt;P&gt;  100 cust_info-class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif cust_info-agencynum &amp;gt; 0.&lt;/P&gt;&lt;P&gt;  select single name from stravelag&lt;/P&gt;&lt;P&gt;    into cust_info&lt;/P&gt;&lt;P&gt;    where agencynum = cust_info-agencynum.&lt;/P&gt;&lt;P&gt;    write:/ cust_info-name.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-dbcnt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350974#M175946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350975#M175947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;welcome to SDN!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove endselect for the second select as it is select single&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ur code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Syntax for Nested Select Statement &lt;/P&gt;&lt;P&gt;Posted: May 5, 2006 4:06 AM      Reply      E-mail this post  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gday Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some dramas with this select statement. For the records in cust_info, when agencynum ne 0, I want to get the corresponding name field from stravelag into cust_info-name and write it. (along with all the other data in that row of cust_info)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting errors in the final select statement. Any ideas would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check not scustom-id is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fldate bookid carrid connid class agencynum from sbook&lt;/P&gt;&lt;P&gt;into cust_info&lt;/P&gt;&lt;P&gt;where customid = scustom-id&lt;/P&gt;&lt;P&gt;order by fldate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if cust_info-agencynum = 0.&lt;/P&gt;&lt;P&gt;write:/ 'Agency Unknown',&lt;/P&gt;&lt;P&gt;40 cust_info-fldate,&lt;/P&gt;&lt;P&gt;55 cust_info-bookid,&lt;/P&gt;&lt;P&gt;70 cust_info-carrid,&lt;/P&gt;&lt;P&gt;85 cust_info-connid,&lt;/P&gt;&lt;P&gt;100 cust_info-class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif cust_info-agencynum &amp;gt; 0.&lt;/P&gt;&lt;P&gt;select single name from stravelag&lt;/P&gt;&lt;P&gt;into cust_info&lt;/P&gt;&lt;P&gt;where agencynum = cust_info-agencynum.&lt;/P&gt;&lt;P&gt;write:/ cust_info-name.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;removed endselect&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-dbcnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sekhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350975#M175947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350976#M175948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stuart,&lt;/P&gt;&lt;P&gt;U have mentioned endselect for the second select statement..&lt;/P&gt;&lt;P&gt;Do not use ENDSELECT for SELECT SINGLE query..&lt;/P&gt;&lt;P&gt;SELECT... ENDSELECT is used when u r using a loop generally for many records..&lt;/P&gt;&lt;P&gt;For SELECT SINGLE, do not use ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please mark helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350976#M175948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350977#M175949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;sorry , remove single statement from select single

elseif cust_info-agencynum &amp;gt; 0.
select  name from stravelag
into cust_info
where agencynum = cust_info-agencynum.
write:/ cust_info-name.
endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350977#M175949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350978#M175950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just remove the First ENDSELECT (The one for the second SELECT statement inside the IF condition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please close the thread if the issue is resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350978#M175950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350979#M175951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;at line-selection.

check not scustom-id is initial.

select fldate bookid carrid connid class agencynum from sbook
into cust_info
where customid = scustom-id
order by fldate.

if cust_info-agencynum = 0.
write:/ 'Agency Unknown',
40 cust_info-fldate,
55 cust_info-bookid,
70 cust_info-carrid,
85 cust_info-connid,
100 cust_info-class.

elseif cust_info-agencynum &amp;gt; 0.
select single name from stravelag
into cust_info
where agencynum = cust_info-agencynum.
write:/ cust_info-name.
&amp;lt;b&amp;gt;*endselect.&amp;lt;/b&amp;gt;
endif.
endselect.

write:/ sy-dbcnt.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't give endselect for select single.&lt;/P&gt;&lt;P&gt;remove endselect ,then try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350979#M175951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350980#M175952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai Stuart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif cust_info-agencynum &amp;gt; 0.&lt;/P&gt;&lt;P&gt;select single name from stravelag&lt;/P&gt;&lt;P&gt;into cust_info&lt;/P&gt;&lt;P&gt;where agencynum = cust_info-agencynum.&lt;/P&gt;&lt;P&gt;write:/ cust_info-name.&lt;/P&gt;&lt;P&gt;endselect.----&lt;/P&gt;&lt;HR originaltext="---------------------------" /&gt;&lt;P&gt;&amp;gt; Not use this Endselect statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the bellow code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_mara1 occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       end of it_mara1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is wrong&lt;/P&gt;&lt;P&gt;select single matnr from mara&lt;/P&gt;&lt;P&gt;into it_mara1&lt;/P&gt;&lt;P&gt;where mtart = 'ROH'.&lt;/P&gt;&lt;P&gt;write:/ it_mara1-matnr.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is write&lt;/P&gt;&lt;P&gt;select single matnr from mara&lt;/P&gt;&lt;P&gt;into it_mara1&lt;/P&gt;&lt;P&gt;where mtart = 'ROH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ it_mara1-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350980#M175952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350981#M175953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick responses and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed my code to: (removed endselect and single).&lt;/P&gt;&lt;P&gt;how ever i am still getting an incorrect nesting error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;newcode&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;select fldate bookid carrid connid class agencynum from sbook&lt;/P&gt;&lt;P&gt;  into cust_info&lt;/P&gt;&lt;P&gt;  where customid = scustom-id&lt;/P&gt;&lt;P&gt;  order by fldate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if cust_info-agencynum = 0.&lt;/P&gt;&lt;P&gt;write:/ 'Agency Unknown',&lt;/P&gt;&lt;P&gt;  40 cust_info-fldate,&lt;/P&gt;&lt;P&gt;  55 cust_info-bookid,&lt;/P&gt;&lt;P&gt;  70 cust_info-carrid,&lt;/P&gt;&lt;P&gt;  85 cust_info-connid,&lt;/P&gt;&lt;P&gt;  100 cust_info-class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif cust_info-agencynum ne 0.&lt;/P&gt;&lt;P&gt;  select name from stravelag&lt;/P&gt;&lt;P&gt;    into cust_info&lt;/P&gt;&lt;P&gt;    where agencynum = cust_info-agencynum.&lt;/P&gt;&lt;P&gt;    write:/ cust_info-name.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-dbcnt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350981#M175953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350982#M175954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi stuart .

try this 

select name from stravelag
into cust_info
where agencynum = cust_info-agencynum.
write:/ cust_info-name.
endselect.

here u have to use select ... endselect bcoz u may get many agency numbers&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350982#M175954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350983#M175955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is you have taken out both SINGLE as well as ENDSELECT for the second SELECT.&lt;/P&gt;&lt;P&gt;You will have to retain one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350983#M175955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350984#M175956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;**newcode**
select fldate bookid carrid connid class agencynum from sbook
  into cust_info
  where customid = scustom-id
  order by fldate.

if cust_info-agencynum = 0.
write:/ 'Agency Unknown',
  40 cust_info-fldate,
  55 cust_info-bookid,
  70 cust_info-carrid,
  85 cust_info-connid,
  100 cust_info-class.

&amp;lt;b&amp;gt;else.&amp;lt;/b&amp;gt;
  select single name from stravelag
    into cust_info
    where agencynum = cust_info-agencynum.
    write:/ cust_info-name.
endif.
endselect.

write:/ sy-dbcnt.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the above code......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350984#M175956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350985#M175957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified the code and can now run the report, however another error occurs, the reason being:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data read during the SELECT access could not be inserted into the target field. Either converstion is not supported for the target fields type or the target field is too short.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be the case when I have defined cust_info as:&lt;/P&gt;&lt;P&gt;data: begin of cust_info occurs 0,&lt;/P&gt;&lt;P&gt;  fldate like sbook-fldate,&lt;/P&gt;&lt;P&gt;  bookid like sbook-bookid,&lt;/P&gt;&lt;P&gt;  carrid like sbook-carrid,&lt;/P&gt;&lt;P&gt;  connid like sbook-connid,&lt;/P&gt;&lt;P&gt;  class like sbook-class,&lt;/P&gt;&lt;P&gt;  agencynum like sbook-agencynum,&lt;/P&gt;&lt;P&gt;  name like stravelag-name,&lt;/P&gt;&lt;P&gt;end of cust_info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target field is defined as like stravelag-name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350985#M175957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350986#M175958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your statement to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fldate bookid carrid connid class agencynum from sbook&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;into corresponding fields of &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;cust_info&lt;/P&gt;&lt;P&gt;where customid = scustom-id&lt;/P&gt;&lt;P&gt;order by fldate.&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, 05 May 2006 08:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350986#M175958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Nested Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350987#M175959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved! Thanks team. As a rookie ABAPer your help is very much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 08:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-nested-select-statement/m-p/1350987#M175959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T08:45:09Z</dc:date>
    </item>
  </channel>
</rss>

