<?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: why this statement going to dump... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302529#M1025952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fields ttl_docamt ttl_pstamt are missing in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a INTO CORRESPONDING FIELDS OF in the second SELECT statement, /or/ add the missing fields in the SELECT clause /or/ redefine the local type to match exactly the fields selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 15:04:34 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-08-06T15:04:34Z</dc:date>
    <item>
      <title>why this statement going to dump...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302525#M1025948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES : BEGIN OF type_repstruc,&lt;/P&gt;&lt;P&gt;          ccode       TYPE bukrs,&lt;/P&gt;&lt;P&gt;          docnum      TYPE belnr_d,&lt;/P&gt;&lt;P&gt;          docs        TYPE dbzhl,&lt;/P&gt;&lt;P&gt;          fyear       TYPE gjahr,&lt;/P&gt;&lt;P&gt;          fir_run     TYPE dbbdt,&lt;/P&gt;&lt;P&gt;          nex_run     TYPE dbatr,&lt;/P&gt;&lt;P&gt;          las_run     TYPE dbedt,&lt;/P&gt;&lt;P&gt;          dbakz       TYPE dbakz_t054,&lt;/P&gt;&lt;P&gt;          del_ind     TYPE c,&lt;/P&gt;&lt;P&gt;          lifnr       TYPE lifnr,&lt;/P&gt;&lt;P&gt;          hkont       TYPE hkont,&lt;/P&gt;&lt;P&gt;          ttl_docamt  TYPE wert, " Total Doc. Amount&lt;/P&gt;&lt;P&gt;          ttl_pstamt  TYPE wert, " Total Post Amount&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;UHDK932263&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LIFNR       TYPE LIFNR,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          DBMON       TYPE DBMON,&lt;/P&gt;&lt;P&gt;          BELNR       TYPE BELNR_D,&lt;/P&gt;&lt;P&gt;          BUDAT       TYPE BUDAT,&lt;/P&gt;&lt;P&gt;          WRBTR       TYPE WRBTR,&lt;/P&gt;&lt;P&gt;          AUGBL       TYPE AUGBL,&lt;/P&gt;&lt;P&gt;          AUGDT       TYPE AUGDT,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         WRBTR       TYPE WRBTR,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;UHDK932263&lt;/P&gt;&lt;P&gt;        END OF type_repstruc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF type_detail,&lt;/P&gt;&lt;P&gt;          bukrs       TYPE bukrs,&lt;/P&gt;&lt;P&gt;          lifnr       TYPE lifnr,&lt;/P&gt;&lt;P&gt;          hkont       TYPE hkont,&lt;/P&gt;&lt;P&gt;          belnr       TYPE belnr_d,&lt;/P&gt;&lt;P&gt;          dmbtr       TYPE dmbtr,&lt;/P&gt;&lt;P&gt;          koart       TYPE koart,&lt;/P&gt;&lt;P&gt;          shkzg       TYPE shkzg,&lt;/P&gt;&lt;P&gt;          ttl_docamt  TYPE wert, " Total Doc. Amount&lt;/P&gt;&lt;P&gt;          ttl_pstamt  TYPE wert, " Total Post Amount&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;UHDK932263&lt;/P&gt;&lt;P&gt;          WRBTR       TYPE WRBTR,&lt;/P&gt;&lt;P&gt;          AUGBL       TYPE AUGBL,&lt;/P&gt;&lt;P&gt;          AUGDT       TYPE AUGDT,&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;UHDK932263&lt;/P&gt;&lt;P&gt;        END OF type_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  gt_detail     TYPE TABLE OF type_detail,&lt;/P&gt;&lt;P&gt;       gt_detail1    TYPE TABLE OF type_detail,&lt;/P&gt;&lt;P&gt;       gt_reptab     TYPE TABLE OF type_repstruc,&lt;/P&gt;&lt;P&gt;       gt_doc_detail TYPE TABLE OF type_doc_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :    gw_reptab       TYPE type_repstruc,&lt;/P&gt;&lt;P&gt;       gw_detail       TYPE type_detail,&lt;/P&gt;&lt;P&gt;       gw_doc_detail   TYPE type_doc_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT bukrs belnr dbzhl gjahr dbbdt dbatr dbedt dbakz xdelt&lt;/P&gt;&lt;P&gt;                     FROM bkdf&lt;/P&gt;&lt;P&gt;                     INTO TABLE gt_reptab&lt;/P&gt;&lt;P&gt;                     WHERE bukrs IN so_code&lt;/P&gt;&lt;P&gt;                     AND dbbdt IN so_date&lt;/P&gt;&lt;P&gt;                     AND bukrs IN so_code&lt;/P&gt;&lt;P&gt;                     AND belnr IN so_docn.&lt;/P&gt;&lt;P&gt;  SORT gt_reptab BY docnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT bukrs lifnr hkont belnr dmbtr koart shkzg WRBTR AUGBL AUGDT&lt;/P&gt;&lt;P&gt;               FROM bseg&lt;/P&gt;&lt;P&gt;              INTO TABLE gt_detail&lt;/P&gt;&lt;P&gt;              FOR ALL ENTRIES IN gt_reptab&lt;/P&gt;&lt;P&gt;               WHERE belnr EQ gt_reptab-docnum&lt;/P&gt;&lt;P&gt;                 AND bukrs EQ gt_reptab-ccode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I AM GETTING DUMP IN SECOND SELECT STATEMENT...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302525#M1025948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T15:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: why this statement going to dump...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302526#M1025949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the second select statement use &lt;STRONG&gt;into corresponding fields of table&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;SELECT bukrs lifnr hkont belnr dmbtr koart shkzg WRBTR AUGBL AUGDT&lt;/P&gt;&lt;P&gt;FROM bseg&lt;/P&gt;&lt;P&gt;INTO &lt;STRONG&gt;into corresponding fields of table&lt;/STRONG&gt; gt_detail&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_reptab&lt;/P&gt;&lt;P&gt;WHERE belnr EQ gt_reptab-docnum&lt;/P&gt;&lt;P&gt;AND bukrs EQ gt_reptab-ccode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302526#M1025949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: why this statement going to dump...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302527#M1025950</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;WHERE belnr EQ gt_reptab-docnum&lt;/P&gt;&lt;P&gt;AND bukrs EQ gt_reptab-ccode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is docnum same as belnr?&lt;/P&gt;&lt;P&gt;check for the filed names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302527#M1025950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T15:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: why this statement going to dump...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302528#M1025951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using 'FOR ALL ENTRIES' , you need to check that internal table is iniital or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the error message(Error Analysis) you got in that runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302528#M1025951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: why this statement going to dump...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302529#M1025952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fields ttl_docamt ttl_pstamt are missing in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a INTO CORRESPONDING FIELDS OF in the second SELECT statement, /or/ add the missing fields in the SELECT clause /or/ redefine the local type to match exactly the fields selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 15:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-statement-going-to-dump/m-p/4302529#M1025952</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-06T15:04:34Z</dc:date>
    </item>
  </channel>
</rss>

