<?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: Problem with Control breaks with in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965481#M699761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to Put ERNAM as the first field in order , in my internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 11:29:51 GMT</pubDate>
    <dc:creator>anupam_srivastava2</dc:creator>
    <dc:date>2007-10-12T11:29:51Z</dc:date>
    <item>
      <title>Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965473#M699753</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 used control breaks with in my internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SORT  T_QUOT  BY ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT T_QUOT INTO H_QUOT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT NEW ERNAM.&lt;/P&gt;&lt;P&gt;      H_DISP-ERNAM = H_QUOT-ERNAM.&lt;/P&gt;&lt;P&gt;      CLEAR V_CNT.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    V_CNT = V_CNT + 1.&lt;/P&gt;&lt;P&gt;    AT END OF ERNAM.&lt;/P&gt;&lt;P&gt;      SUM.&lt;/P&gt;&lt;P&gt;      H_DISP-ORDER = H_QUOT-ORDER.&lt;/P&gt;&lt;P&gt;      H_DISP-LOST  = H_QUOT-LOST.&lt;/P&gt;&lt;P&gt;      H_DISP-OPEN = H_QUOT-OPEN.&lt;/P&gt;&lt;P&gt;      H_DISP-TOTAL = V_CNT.&lt;/P&gt;&lt;P&gt;      APPEND H_DISP TO T_DISP.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this even though there is no end of ernam, it enters. I am working on 4.6c version. can any body tell why it would be behaving this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965473#M699753</guid>
      <dc:creator>anupam_srivastava2</dc:creator>
      <dc:date>2007-10-12T08:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965474#M699754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the order of fields in your int table.&lt;/P&gt;&lt;P&gt;make ERNAM the first field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965474#M699754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T08:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965475#M699755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your requirement is not clear could you please elaborate the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965475#M699755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T09:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965476#M699756</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;If the ERNAM is the First field of ur internal table then it works properly.&lt;/P&gt;&lt;P&gt;So check the declaration of ITAB and Change it accordingly. i.e make the ERNAM as the First field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965476#M699756</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-12T09:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965477#M699757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your ernam field should be first field of internal table.&lt;/P&gt;&lt;P&gt; Clear ernam before appending. Because I feel you should have to do the total for each ernam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: H_DISP-TOTAL = V_CNT.&lt;/P&gt;&lt;P&gt;Clear: ernam.&lt;/P&gt;&lt;P&gt;APPEND H_DISP TO T_DISP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965477#M699757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T09:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965478#M699758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your ernam field should be first field of internal table.&lt;/P&gt;&lt;P&gt;Clear ernam before appending. Because I feel you should have to do the total for each ernam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: H_DISP-TOTAL = V_CNT.&lt;/P&gt;&lt;P&gt;Clear: v_cnt.&lt;/P&gt;&lt;P&gt;APPEND H_DISP TO T_DISP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965478#M699758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T09:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965479#M699759</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;see this program you can undestran easily &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Using AT FIRST , AT NEW, AT THE END OF , AT LAST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;      F1 TYPE I,&lt;/P&gt;&lt;P&gt;      F2(6) TYPE C,&lt;/P&gt;&lt;P&gt;      F3(10) TYPE N,&lt;/P&gt;&lt;P&gt;      F4(16) TYPE P DECIMALS  2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: SUB_TOT(10) TYPE P DECIMALS 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**--1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-F1 = 1.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'ONE'.&lt;/P&gt;&lt;P&gt;ITAB-F3 = 10.&lt;/P&gt;&lt;P&gt;ITAB-F4 = '1000.00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-F1 = 1.&lt;/P&gt;&lt;P&gt;ITAB-F2 = 'ONE'.&l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+ ITAB-F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF F1.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;WRITE: / 'SUB TOTAL :'  COLOR 3 INVERSE ON, SUB_TOT COLOR 3 INVERSE ON.&lt;/P&gt;&lt;P&gt;CLEAR SUB_TOT.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LAST.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;WRITE: 'SUM:', ITAB-F4.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;ENDAT.&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;&amp;lt;b&amp;gt;Reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965479#M699759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T09:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965480#M699760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , AJ.&lt;/P&gt;&lt;P&gt;I have met the some  problems when using SUM in at end of.  But I can't understand your purpose fully.&lt;/P&gt;&lt;P&gt;Could you give me more information?For example , share your code , or tell us the structure of the internal table ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUM only counts the numeric fields, like P, I, F. And the results will in H_QUOT.&lt;/P&gt;&lt;P&gt;I think your code is right,.If you have solved this problem,please reply me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965480#M699760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Control breaks with in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965481#M699761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to Put ERNAM as the first field in order , in my internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 11:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-breaks-with-in-internal-table/m-p/2965481#M699761</guid>
      <dc:creator>anupam_srivastava2</dc:creator>
      <dc:date>2007-10-12T11:29:51Z</dc:date>
    </item>
  </channel>
</rss>

