<?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: SQL Syntax Problem - Filling Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347346#M174738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Geoff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the error analysis says in Sshort-dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste it here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 May 2006 21:00:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-23T21:00:13Z</dc:date>
    <item>
      <title>SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347345#M174737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code passes syntax check but short-dumps. Any help would be appreciated. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&l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gt;&lt;P&gt;DATA wa_kickouts TYPE zbw_kickouts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT rsseldone~rnr &lt;/P&gt;&lt;P&gt;rsseldone~source &lt;/P&gt;&lt;P&gt;rsseldone~seldate &lt;/P&gt;&lt;P&gt;rsseldone~seltime &lt;/P&gt;&lt;P&gt;rsseldone~oltpsource &lt;/P&gt;&lt;P&gt;rserrorlog~msgv1 &lt;/P&gt;&lt;P&gt;rserrorlog~msgv3 &lt;/P&gt;&lt;P&gt;INTO TABLE it_kickouts &lt;/P&gt;&lt;P&gt;FROM rsseldone INNER JOIN rserrorlog &lt;/P&gt;&lt;P&gt;ON rsseldone&lt;SUB&gt;rnr = rserrorlog&lt;/SUB&gt;request &lt;/P&gt;&lt;P&gt;WHERE rsseldone~source = 'ZCC_0001'. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="53" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm simply trying to read the joined of the two RS tables and populate the custom table it_kickouts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geoff Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 20:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347345#M174737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T20:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347346#M174738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Geoff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the error analysis says in Sshort-dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste it here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 21:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347346#M174738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T21:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347347#M174739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the dump say? Make sure that you don't have less number of fields in your "it_kickouts" than your select field list(which is 7 in your example). Also make sure that the fields of it_kickouts have compatibility with the fields of the table you are selecting from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 21:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347347#M174739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T21:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347348#M174740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does w_kickouts have the same structure as rssm_t_seldone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 21:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347348#M174740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T21:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347349#M174741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geoff,&lt;/P&gt;&lt;P&gt;How about something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a~rnr &lt;/P&gt;&lt;P&gt;a~source &lt;/P&gt;&lt;P&gt;a~seldate &lt;/P&gt;&lt;P&gt;a~seltime &lt;/P&gt;&lt;P&gt;a~oltpsource &lt;/P&gt;&lt;P&gt;b~msgv1 &lt;/P&gt;&lt;P&gt;b~msgv3 &lt;/P&gt;&lt;P&gt;INTO TABLE it_kickouts &lt;/P&gt;&lt;P&gt;FROM rsseldone as a INNER JOIN rserrorlog as b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;rnr = b&lt;/SUB&gt;request &lt;/P&gt;&lt;P&gt;WHERE a~source = 'ZCC_0001'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Den&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 21:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347349#M174741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T21:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347350#M174742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I take it back. Does it_kickouts have the same structure and order as the fields you are selecting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT rsseldone~rnr 
rsseldone~source 
rsseldone~seldate 
rsseldone~seltime 
rsseldone~oltpsource 
rserrorlog~msgv1 
rserrorlog~msgv3 
INTO &amp;lt;b&amp;gt;corresponding fields of&amp;lt;/b&amp;gt; TABLE it_kickouts 
FROM rsseldone INNER JOIN rserrorlog 
ON rsseldone~rnr = rserrorlog~request 
WHERE rsseldone~source = 'ZCC_0001'. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 21:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347350#M174742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T21:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347351#M174743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that rssm_t_seldone does not contain all the fields or if it does they are in a different sequence to the select. If they are in a different sequence use the 'CORRESPONDING' option (as Rob suggests) if it does not have all the fields&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;types: begin of ty_in,&lt;/P&gt;&lt;P&gt; rnr type rsseldone-rnr, &lt;/P&gt;&lt;P&gt;source type rsseldone-source ,&lt;/P&gt;&lt;P&gt;seldate type rsseldone-seldate, &lt;/P&gt;&lt;P&gt;seltime type rsseldone-seltime ,&lt;/P&gt;&lt;P&gt;oltpsource type rsseldone-oltpsource ,&lt;/P&gt;&lt;P&gt;msgv1 type rserrorlog-msgv1 ,&lt;/P&gt;&lt;P&gt;msgv3 type rserrorlog-msgv3 ,&lt;/P&gt;&lt;P&gt;end of ty_in.&lt;/P&gt;&lt;P&gt;DATA it_kickouts TYPE table of ty_in with header line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and it will still be safer to use the 'CORRESPONDING' option in the select&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 23:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347351#M174743</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-05-23T23:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347352#M174744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA it_kickouts TYPE rssm_t_seldone. &lt;/P&gt;&lt;P&gt;DATA wa_kickouts TYPE zbw_kickouts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these statements it_kickouts and wa_kickouts are created as the field strings(structure but not as table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the problem is . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what you have to do is  declare the statement as ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA it_kickouts like table of rssm_t_seldone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA it_kickouts TYPE rssm_t_seldone occurs 0 with header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 06:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347352#M174744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T06:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax Problem - Filling Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347353#M174745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geoff,&lt;/P&gt;&lt;P&gt;I don't understand how the code passed syntax but the solution was to make the definition a table. Surely type rssm_t_seldone must be defined as a table already to pass syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 23:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-problem-filling-internal-table/m-p/1347353#M174745</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-05-25T23:08:08Z</dc:date>
    </item>
  </channel>
</rss>

