<?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 At New problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233650#M140046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently having a problem with my At New statement. It is treating every field of the itab as a new record even though it is the same. for example, on the first loop the field tdline has a value of A then the at new will trigger. then on the second loop tdline has a value of B then again, At New will trigger.that is correct. But on the third loop, the field tdline will have a value again of B - the same as that of the second loop. So it must not trigger the At New statement but it does. Any solutions guys? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2006 01:22:29 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2006-03-31T01:22:29Z</dc:date>
    <item>
      <title>At New problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233650#M140046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently having a problem with my At New statement. It is treating every field of the itab as a new record even though it is the same. for example, on the first loop the field tdline has a value of A then the at new will trigger. then on the second loop tdline has a value of B then again, At New will trigger.that is correct. But on the third loop, the field tdline will have a value again of B - the same as that of the second loop. So it must not trigger the At New statement but it does. Any solutions guys? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 01:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233650#M140046</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-03-31T01:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: At New problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233651#M140047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   first you should sort the internal table.&lt;/P&gt;&lt;P&gt;   second B is different from b.- please check this in your case.&lt;/P&gt;&lt;P&gt;third the field what your using AT NEW is first column or not. if it is not then it will consider the combination of all the coumns before that as value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For EX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col1 col2 are in internal table, contain values &lt;/P&gt;&lt;P&gt;A     A&lt;/P&gt;&lt;P&gt;A     A&lt;/P&gt;&lt;P&gt;A     B&lt;/P&gt;&lt;P&gt;C     B&lt;/P&gt;&lt;P&gt;at new col2.&lt;/P&gt;&lt;P&gt; this statment will trigger 3 times.&lt;/P&gt;&lt;P&gt;Hope you understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 01:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233651#M140047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T01:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: At New problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233652#M140048</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;  You haven't given the sample code of your report,anyway here i am giving a simple code of the At New statement.Try your report accordingly i hope this will help you to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF COMPANIES OCCURS 20,&lt;/P&gt;&lt;P&gt;        NAME(30),&lt;/P&gt;&lt;P&gt;        PRODUCT(20),&lt;/P&gt;&lt;P&gt;        SALES TYPE I,&lt;/P&gt;&lt;P&gt;      END   OF COMPANIES.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;LOOP AT COMPANIES.&lt;/P&gt;&lt;P&gt;  AT NEW NAME.&lt;/P&gt;&lt;P&gt;    NEW-PAGE.&lt;/P&gt;&lt;P&gt;    WRITE / COMPANIES-NAME.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;  WRITE: / COMPANIES-PRODUCT, COMPANIES-SALES.&lt;/P&gt;&lt;P&gt;  AT END OF NAME.&lt;/P&gt;&lt;P&gt;    SUM.&lt;/P&gt;&lt;P&gt;    WRITE: / COMPANIES-NAME, COMPANIES-SALES.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mrutyunjaya Tripathy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233652#M140048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T06:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: At New problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233653#M140049</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;You've got to specify the key field on which u want the event to be triggered. Also make sure tht ur intenal table is sorted.&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_MARA.&lt;/P&gt;&lt;P&gt;AT NEW MATNR.&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an alternative to the AT NEW event is&lt;/P&gt;&lt;P&gt;ON CHANGE OF (SPECIFY KEY FEILD).&lt;/P&gt;&lt;P&gt;ENDON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points if found useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/1233653#M140049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T06:51:42Z</dc:date>
    </item>
  </channel>
</rss>

