<?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: Need help to fix run time error. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275945#M1387395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will be getting below runtime error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Too few fields in INTO clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table contains less number of fileld then you wrote in the select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT X~MATNR
  Y~ERSDA
  Y~MBRSH
  X~MATKL
  Y~MEINS
*  Y~MEINS " Comment or Remove it.. you need to select it once only...
  INTO TABLE I_MARA FROM MARA AS X INNER JOIN MARA AS Y ON X~MATNR = Y~MATNR
  WHERE X~MATNR IN SO_MATNR AND
  X~MATKL IN SO_MATKL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest you to read the dump analysis when you are getting dump through ST22 T-code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2009 11:34:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-20T11:34:22Z</dc:date>
    <item>
      <title>Need help to fix run time error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275940#M1387390</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 am getting runtime error as below below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EPORT  ZCLASSIC_ALV_030725_REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables:MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: Cu_date like sy-datum default sy-datum,&lt;/P&gt;&lt;P&gt;            DMAP as checkbox,&lt;/P&gt;&lt;P&gt;            All_CAP as checkbox,&lt;/P&gt;&lt;P&gt;            ALV_Rep radiobutton group g1 default 'X',&lt;/P&gt;&lt;P&gt;            Clas_Rep radiobutton group g1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_mara,&lt;/P&gt;&lt;P&gt;       MATNR type MARA-MATNR,&lt;/P&gt;&lt;P&gt;       ERSDA type MARA-ERSDA,&lt;/P&gt;&lt;P&gt;       MBRSH type MBRSH,&lt;/P&gt;&lt;P&gt;       MATKL type MATKL,&lt;/P&gt;&lt;P&gt;       MEINS type MEINS,&lt;/P&gt;&lt;P&gt;       End of t_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Data : i_mara type standard table of t_mara,&lt;/P&gt;&lt;P&gt;        wa_mara type t_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;  Select-options: SO_MATNR for MARA-MATNR,&lt;/P&gt;&lt;P&gt;                  so_MATKL for MARA-MATKL.&lt;/P&gt;&lt;P&gt;  selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select x~MATNR&lt;/P&gt;&lt;P&gt;         y~ERSDA&lt;/P&gt;&lt;P&gt;         y~MBRSH&lt;/P&gt;&lt;P&gt;         x~MATKL&lt;/P&gt;&lt;P&gt;         y~MEINS&lt;/P&gt;&lt;P&gt;         y~MEINS&lt;/P&gt;&lt;P&gt;         into table i_MARA from Mara as x inner join MARA as y on x&lt;SUB&gt;MATNR = y&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;          where x~MATNR in so_matnr and&lt;/P&gt;&lt;P&gt;                x~MATKL in so_matkl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         End-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Loop at i_mara into wa_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         write: /1 wa_mara-MATNR,&lt;/P&gt;&lt;P&gt;                   wa_mara-ERSDA,&lt;/P&gt;&lt;P&gt;                   wa_mara-MBRSH,&lt;/P&gt;&lt;P&gt;                   wa_mara-MATKL,&lt;/P&gt;&lt;P&gt;                   wa_mara-MEINS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 skip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 clear: wa_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls have a look on this and make correction on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Avinav@27 on Oct 20, 2009 1:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 11:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275940#M1387390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T11:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to fix run time error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275941#M1387391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read the dump..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does it say?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 11:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275941#M1387391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to fix run time error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275942#M1387392</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;&lt;/P&gt;&lt;P&gt;select x~MATNR&lt;/P&gt;&lt;P&gt;y~ERSDA&lt;/P&gt;&lt;P&gt;y~MBRSH&lt;/P&gt;&lt;P&gt;x~MATKL&lt;/P&gt;&lt;P&gt;y~MEINS&lt;/P&gt;&lt;P&gt;y~MEINS  ---&amp;gt;   &lt;STRONG&gt;Remove this and hope it would be fine&lt;/STRONG&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;into table i_MARA from Mara as x inner join MARA as y on x&lt;SUB&gt;MATNR = y&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;where x~MATNR in so_matnr and&lt;/P&gt;&lt;P&gt;x~MATKL in so_matkl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why you want an &lt;STRONG&gt;INNER JOIN&lt;/STRONG&gt; on the same table &lt;STRONG&gt;???????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try omit that.&lt;/P&gt;&lt;P&gt;since your I_mara has only  5 components and you are selecting 6 fields and passing them back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramchander Krishnamraju on Oct 20, 2009 1:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 11:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275942#M1387392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to fix run time error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275943#M1387393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Debug your code and find where the error lies and make the necessary correction. Still if you are not able to solve it, post the specific issue and the error you are facing for any suggestions. Please dont expect others to do your work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 11:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275943#M1387393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to fix run time error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275944#M1387394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Answer.............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 11:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275944#M1387394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T11:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to fix run time error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275945#M1387395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will be getting below runtime error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Too few fields in INTO clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table contains less number of fileld then you wrote in the select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT X~MATNR
  Y~ERSDA
  Y~MBRSH
  X~MATKL
  Y~MEINS
*  Y~MEINS " Comment or Remove it.. you need to select it once only...
  INTO TABLE I_MARA FROM MARA AS X INNER JOIN MARA AS Y ON X~MATNR = Y~MATNR
  WHERE X~MATNR IN SO_MATNR AND
  X~MATKL IN SO_MATKL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest you to read the dump analysis when you are getting dump through ST22 T-code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 11:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-fix-run-time-error/m-p/6275945#M1387395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T11:34:22Z</dc:date>
    </item>
  </channel>
</rss>

