<?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: Dump while Running a Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951530#M391937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Verify the fields you are selecting in the first query - are they in the same order as the structure of your table t_lips?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, use INTO CORRESPONDING FIELDS OF TABLE T_LIPS, instead of INTO TABLE T_LIPS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2007 06:40:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-09T06:40:27Z</dc:date>
    <item>
      <title>Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951527#M391934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        I am fetching data from LIPS table first and according to that I am getting values from MCH1:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         matnr&lt;/P&gt;&lt;P&gt;         charg&lt;/P&gt;&lt;P&gt;         lfimg&lt;/P&gt;&lt;P&gt;         vrkme&lt;/P&gt;&lt;P&gt;         lgmng&lt;/P&gt;&lt;P&gt;         vgbel&lt;/P&gt;&lt;P&gt;         vgpos&lt;/P&gt;&lt;P&gt;         mtart&lt;/P&gt;&lt;P&gt;         xchpf&lt;/P&gt;&lt;P&gt;         umcha&lt;/P&gt;&lt;P&gt;    INTO TABLE t_lips&lt;/P&gt;&lt;P&gt;    FROM  lips&lt;/P&gt;&lt;P&gt;    WHERE vbeln EQ p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF t_lips[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt; SELECT charg&lt;/P&gt;&lt;P&gt;      INTO TABLE t_mch1&lt;/P&gt;&lt;P&gt;      FROM mch1&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN t_lips&lt;/P&gt;&lt;P&gt;     WHERE charg EQ t_lips-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code is giving dump.&lt;/P&gt;&lt;P&gt;description of DUMP:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This is probably due to an error in the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Following a SELECT statement, the data read could not be placed in AN&lt;/P&gt;&lt;P&gt; the output area.&lt;/P&gt;&lt;P&gt; A conversion may have been intended that is not supported by the&lt;/P&gt;&lt;P&gt; system, or the output area may be too small.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me to solve this.&lt;/P&gt;&lt;P&gt;Regards Avi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951527#M391934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951528#M391935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use  into corresponding fields of table t_lips&lt;/P&gt;&lt;P&gt;and corresponding fields of table t_mch1.&lt;/P&gt;&lt;P&gt;it will solve u r problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951528#M391935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951529#M391936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Avi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think there is the problem with data declarations..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u paste here the delacration for t_lips and t_mch1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951529#M391936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951530#M391937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Verify the fields you are selecting in the first query - are they in the same order as the structure of your table t_lips?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, use INTO CORRESPONDING FIELDS OF TABLE T_LIPS, instead of INTO TABLE T_LIPS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951530#M391937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951531#M391938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use corresponding fields and check the field declaration of your second internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Subramanian PL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951531#M391938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951532#M391939</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;Specify the structure you haev used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to ur query ur t_lips should be as below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN  OF t_lips occurs 0,
             vbeln
             posnr
            matnr
              ...............as per teh order in select query
          END OF t_lips.

DATA: BEGIN OF t_mch1 occurs 0,
           charg LIKE mchi-charg,
          END OF t_mch1.

SELECT vbeln
posnr
matnr
charg
lfimg
vrkme
lgmng
vgbel
vgpos
mtart
xchpf
umcha
INTO TABLE t_lips
FROM lips
WHERE vbeln EQ p_vbeln.

IF t_lips[] IS NOT INITIAL.
SELECT charg
INTO TABLE t_mch1
FROM mch1
FOR ALL ENTRIES IN t_lips
WHERE charg EQ t_lips-charg.

IF sy-subrc EQ 0.
ENDIF.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u ave defined the itab as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: t_mch1 TYPE STANDARD TABLE OF mch1,
          t_lips TYPE STANDARD TABLE OF lips.

THEN ur code should be like
SELECT vbeln
posnr
matnr
charg
lfimg
vrkme
lgmng
vgbel
vgpos
mtart
xchpf
umcha
INTO CORRESPONDIGN FIELDS OF TABLE t_lips
FROM lips
WHERE vbeln EQ p_vbeln.

IF t_lips[] IS NOT INITIAL.
SELECT charg
INTO CORRESPONDING FIELDS OF TABLE t_mch1
FROM mch1
FOR ALL ENTRIES IN t_lips
WHERE charg EQ t_lips-charg.

IF sy-subrc EQ 0.
ENDIF.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  * INTO TABLE t_lips
FROM lips
WHERE vbeln EQ p_vbeln.

IF t_lips[] IS NOT INITIAL.
SELECT *
INTO TABLE t_mch1
FROM mch1
FOR ALL ENTRIES IN t_lips
WHERE charg EQ t_lips-charg.

IF sy-subrc EQ 0.
ENDIF.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u r clear.&lt;/P&gt;&lt;P&gt;Reward points and close the thread if this solves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951532#M391939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951533#M391940</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 check, the number of fields u r selecting in the  SELECT stmt are same &lt;/P&gt;&lt;P&gt;as the number of fields in ur internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg : if u select 5 fields from Db but int table has only 4 fields, it will give dump .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also , ur int table must have the same stucture as the fields u r trying to select&lt;/P&gt;&lt;P&gt;(their coreesponding type should match )...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;Praveen .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 09:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951533#M391940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T09:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while Running a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951534#M391941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as proposed: Use into corresponding fields and close the thread, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 10:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-running-a-report/m-p/1951534#M391941</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-09T10:40:00Z</dc:date>
    </item>
  </channel>
</rss>

