<?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: Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236336#M772297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE b~gpart&lt;/P&gt;&lt;P&gt;b~kjahr&lt;/P&gt;&lt;P&gt;b~bon01&lt;/P&gt;&lt;P&gt;b~bon02&lt;/P&gt;&lt;P&gt;b~bon03&lt;/P&gt;&lt;P&gt;b~bon04&lt;/P&gt;&lt;P&gt;b~bon05&lt;/P&gt;&lt;P&gt;b~bon06&lt;/P&gt;&lt;P&gt;b~bon07&lt;/P&gt;&lt;P&gt;b~bon08&lt;/P&gt;&lt;P&gt;b~bon09&lt;/P&gt;&lt;P&gt;b~bon10&lt;/P&gt;&lt;P&gt;b~bon11&lt;/P&gt;&lt;P&gt;b~bon12&lt;/P&gt;&lt;P&gt;b~bonma&lt;/P&gt;&lt;P&gt;b~bonvh&lt;/P&gt;&lt;P&gt;b~bmadt&lt;/P&gt;&lt;P&gt;b~lfdnr&lt;/P&gt;&lt;P&gt;b~bonfr&lt;/P&gt;&lt;P&gt;b~bfrdt&lt;/P&gt;&lt;P&gt;b~brldt&lt;/P&gt;&lt;P&gt;b~bnext&lt;/P&gt;&lt;P&gt;b~bexdt&lt;/P&gt;&lt;P&gt;b~bcmtf&lt;/P&gt;&lt;P&gt;a~datum&lt;/P&gt;&lt;P&gt;a~bonit&lt;/P&gt;&lt;P&gt;FROM dfkkcrp AS a&lt;/P&gt;&lt;P&gt;INNER JOIN dfkkcrh AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;gpart = b&lt;/SUB&gt;gpart&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;kjahr = b&lt;/SUB&gt;kjahr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF wa_dfkk&lt;/P&gt;&lt;P&gt;WHERE a~gpart in p_gpart&lt;/P&gt;&lt;P&gt;AND a~kjahr in p_kjahr&lt;/P&gt;&lt;P&gt;AND a~lfdnr in p_lfdnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have not given any select options  if p_gpart is a select option the above one will be useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;swaroop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2008 12:27:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-04T12:27:23Z</dc:date>
    <item>
      <title>Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236331#M772292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the data declared as per below: &lt;/P&gt;&lt;P&gt;DATA : BEGIN OF wa_dfkk.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE dfkkcrh.&lt;/P&gt;&lt;P&gt;DATA:    datum LIKE dfkkcrp-datum,&lt;/P&gt;&lt;P&gt;         bonit LIKE dfkkcrp-bonit,&lt;/P&gt;&lt;P&gt;       END OF wa_dfkk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and have the below query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT SINGLE b~gpart&lt;/P&gt;&lt;P&gt;                b~kjahr&lt;/P&gt;&lt;P&gt;                b~bon01&lt;/P&gt;&lt;P&gt;                b~bon02&lt;/P&gt;&lt;P&gt;                b~bon03&lt;/P&gt;&lt;P&gt;                b~bon04&lt;/P&gt;&lt;P&gt;                b~bon05&lt;/P&gt;&lt;P&gt;                b~bon06&lt;/P&gt;&lt;P&gt;                b~bon07&lt;/P&gt;&lt;P&gt;                b~bon08&lt;/P&gt;&lt;P&gt;                b~bon09&lt;/P&gt;&lt;P&gt;                b~bon10&lt;/P&gt;&lt;P&gt;                b~bon11&lt;/P&gt;&lt;P&gt;                b~bon12&lt;/P&gt;&lt;P&gt;                b~bonma&lt;/P&gt;&lt;P&gt;                b~bonvh&lt;/P&gt;&lt;P&gt;                b~bmadt&lt;/P&gt;&lt;P&gt;                b~lfdnr&lt;/P&gt;&lt;P&gt;                b~bonfr&lt;/P&gt;&lt;P&gt;                b~bfrdt&lt;/P&gt;&lt;P&gt;                b~brldt&lt;/P&gt;&lt;P&gt;                b~bnext&lt;/P&gt;&lt;P&gt;                b~bexdt&lt;/P&gt;&lt;P&gt;                b~bcmtf&lt;/P&gt;&lt;P&gt;                a~datum&lt;/P&gt;&lt;P&gt;                a~bonit&lt;/P&gt;&lt;P&gt;           FROM dfkkcrp AS a&lt;/P&gt;&lt;P&gt;          INNER JOIN dfkkcrh AS b&lt;/P&gt;&lt;P&gt;             ON a&lt;SUB&gt;gpart = b&lt;/SUB&gt;gpart&lt;/P&gt;&lt;P&gt;            AND a&lt;SUB&gt;kjahr = b&lt;/SUB&gt;kjahr&lt;/P&gt;&lt;P&gt;           INTO CORRESPONDING FIELDS OF wa_dfkk&lt;/P&gt;&lt;P&gt;          WHERE a~gpart EQ p_gpart&lt;/P&gt;&lt;P&gt;            AND a~kjahr EQ p_kjahr&lt;/P&gt;&lt;P&gt;            AND a~lfdnr EQ p_lfdnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the execution leads to dump for mismatch target fields.whereas the fields are in the same order in the declaration as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be the reason?Appreciate your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 11:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236331#M772292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T11:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236332#M772293</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;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE b~gpart&lt;/P&gt;&lt;P&gt;b~kjahr&lt;/P&gt;&lt;P&gt;b~bon01&lt;/P&gt;&lt;P&gt;b~bon02&lt;/P&gt;&lt;P&gt;b~bon03&lt;/P&gt;&lt;P&gt;b~bon04&lt;/P&gt;&lt;P&gt;b~bon05&lt;/P&gt;&lt;P&gt;b~bon06&lt;/P&gt;&lt;P&gt;b~bon07&lt;/P&gt;&lt;P&gt;b~bon08&lt;/P&gt;&lt;P&gt;b~bon09&lt;/P&gt;&lt;P&gt;b~bon10&lt;/P&gt;&lt;P&gt;b~bon11&lt;/P&gt;&lt;P&gt;b~bon12&lt;/P&gt;&lt;P&gt;b~bonma&lt;/P&gt;&lt;P&gt;b~bonvh&lt;/P&gt;&lt;P&gt;b~bmadt&lt;/P&gt;&lt;P&gt;b~lfdnr&lt;/P&gt;&lt;P&gt;b~bonfr&lt;/P&gt;&lt;P&gt;b~bfrdt&lt;/P&gt;&lt;P&gt;b~brldt&lt;/P&gt;&lt;P&gt;b~bnext&lt;/P&gt;&lt;P&gt;b~bexdt&lt;/P&gt;&lt;P&gt;b~bcmtf&lt;/P&gt;&lt;P&gt;a~datum&lt;/P&gt;&lt;P&gt;a~bonit&lt;/P&gt;&lt;P&gt;FROM dfkkcrp AS a&lt;/P&gt;&lt;P&gt;INNER JOIN dfkkcrh AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;gpart = b&lt;/SUB&gt;gpart&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;kjahr = b&lt;/SUB&gt;kjahr&lt;/P&gt;&lt;P&gt;wa_dfkk        &lt;STRONG&gt;remove corresponding flds and select as in the same order as the work area&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE a~gpart EQ p_gpart&lt;/P&gt;&lt;P&gt;AND a~kjahr EQ p_kjahr&lt;/P&gt;&lt;P&gt;AND a~lfdnr EQ p_lfdnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this once happened 2 me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 11:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236332#M772293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T11:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236333#M772294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you r trying to join one structure with on database table.and that may be the reason it is going for dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dfkkcrh is a structure&lt;/P&gt;&lt;P&gt;dfkkcrp is a database table i guess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM dfkkcrp AS a&lt;/P&gt;&lt;P&gt;INNER JOIN dfkkcrh AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;gpart = b&lt;/SUB&gt;gpart&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;kjahr = b&lt;/SUB&gt;kjahr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF wa_dfkk&lt;/P&gt;&lt;P&gt;WHERE a~gpart EQ p_gpart&lt;/P&gt;&lt;P&gt;AND a~kjahr EQ p_kjahr&lt;/P&gt;&lt;P&gt;AND a~lfdnr EQ p_lfdnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this joining statement and do the correction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 11:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236333#M772294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T11:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236334#M772295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Copied the Code which you have given and its working fine for me.. as in no Dump is generated. I have just added the Parameters declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_gpart TYPE gpart,&lt;/P&gt;&lt;P&gt;             p_kjahr TYPE kjahr,&lt;/P&gt;&lt;P&gt;             p_lfdnr TYPE lfdnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the data in the tables if possible. I see no problem with the declaration or the Query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 12:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236334#M772295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236335#M772296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I double checked the query and the dump version is &lt;STRONG&gt;with INTO WA_DFKK&lt;/STRONG&gt; statement and &lt;STRONG&gt;not  the INTO CORRESPONDING fields of WA_DFKK&lt;/STRONG&gt; statement as in the post. Sorry for that as i gave the working query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover unable to understand the dump behind INTO WA_DFKK as the field info and the order remains the same as per the declarartion and both &lt;STRONG&gt;DFKKCRP and DFKKCRH are transparent tables&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can youpls check again in your codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 12:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236335#M772296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T12:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236336#M772297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE b~gpart&lt;/P&gt;&lt;P&gt;b~kjahr&lt;/P&gt;&lt;P&gt;b~bon01&lt;/P&gt;&lt;P&gt;b~bon02&lt;/P&gt;&lt;P&gt;b~bon03&lt;/P&gt;&lt;P&gt;b~bon04&lt;/P&gt;&lt;P&gt;b~bon05&lt;/P&gt;&lt;P&gt;b~bon06&lt;/P&gt;&lt;P&gt;b~bon07&lt;/P&gt;&lt;P&gt;b~bon08&lt;/P&gt;&lt;P&gt;b~bon09&lt;/P&gt;&lt;P&gt;b~bon10&lt;/P&gt;&lt;P&gt;b~bon11&lt;/P&gt;&lt;P&gt;b~bon12&lt;/P&gt;&lt;P&gt;b~bonma&lt;/P&gt;&lt;P&gt;b~bonvh&lt;/P&gt;&lt;P&gt;b~bmadt&lt;/P&gt;&lt;P&gt;b~lfdnr&lt;/P&gt;&lt;P&gt;b~bonfr&lt;/P&gt;&lt;P&gt;b~bfrdt&lt;/P&gt;&lt;P&gt;b~brldt&lt;/P&gt;&lt;P&gt;b~bnext&lt;/P&gt;&lt;P&gt;b~bexdt&lt;/P&gt;&lt;P&gt;b~bcmtf&lt;/P&gt;&lt;P&gt;a~datum&lt;/P&gt;&lt;P&gt;a~bonit&lt;/P&gt;&lt;P&gt;FROM dfkkcrp AS a&lt;/P&gt;&lt;P&gt;INNER JOIN dfkkcrh AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;gpart = b&lt;/SUB&gt;gpart&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;kjahr = b&lt;/SUB&gt;kjahr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF wa_dfkk&lt;/P&gt;&lt;P&gt;WHERE a~gpart in p_gpart&lt;/P&gt;&lt;P&gt;AND a~kjahr in p_kjahr&lt;/P&gt;&lt;P&gt;AND a~lfdnr in p_lfdnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have not given any select options  if p_gpart is a select option the above one will be useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;swaroop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 12:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3236336#M772297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T12:27:23Z</dc:date>
    </item>
  </channel>
</rss>

