<?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: Using At New Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940444#M942693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my structure  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MANDT	       MANDT
COUNTER	      NUMC15
PERNR	      PERNR_D
EMP_NAme      PAD_VORNA
PERIOD	         SPBUP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2008 08:40:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-05T08:40:57Z</dc:date>
    <item>
      <title>Using At New Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940441#M942690</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 use this code and in the at new commend when the loop &lt;/P&gt;&lt;P&gt;move to the second place in table for employee it do the same process &lt;STRONG&gt;instead 1 for every employee&lt;/STRONG&gt; so i have duplicates record ,it have to do the process for one employee just one time,i sort the table before for pernr .&lt;/P&gt;&lt;P&gt;what it can be?&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;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT e_table INTO  wa_e_table.
    t_zero[] = e_table[].
   AT NEW pernr..
      DELETE  t_zero[] WHERE pernr NE wa_e_table-pernr.
      LOOP AT all_period INTO wa_all_period.
        CLEAR:wa_t_zero.
        READ TABLE t_zero INTO wa_t_zero WITH KEY period = wa_all_period-period.
        IF sy-subrc &amp;lt;&amp;gt; 0.
          CLEAR: wa_t_zero,wa_t_zero1.
          READ TABLE t_zero INTO wa_t_zero WITH KEY pernr = wa_e_table-pernr.
          MOVE wa_t_zero TO wa_t_zero1.
          wa_t_zero1-period = wa_all_period-period.
          APPEND wa_t_zero1 TO t_zero1.
        ENDIF.
      ENDLOOP.
    ENDAT.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940441#M942690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using At New Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940442#M942691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cosmo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the your e_table structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is important since SAP will use all the fields &lt;STRONG&gt;BEFORE&lt;/STRONG&gt; your at new field to differentiate whether it is the same record or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for your case, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW PERNR.&lt;/P&gt;&lt;P&gt;--&amp;gt; It will execute if any of the fields BEFORE PERNR, different for each records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you only want to execute if PERNR is different then you have to move your PERNR field in your e_table structure to the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940442#M942691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using At New Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940443#M942692</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 there is any field exist before PERNR in your internal table and change happen in that field also cause to trigger At new. If not so, then you must SORT that internal table with they key PERNR. Did you do that? Check your code once...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940443#M942692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using At New Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940444#M942693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my structure  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MANDT	       MANDT
COUNTER	      NUMC15
PERNR	      PERNR_D
EMP_NAme      PAD_VORNA
PERIOD	         SPBUP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940444#M942693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using At New Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940445#M942694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cosmo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your structure to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT	       MANDT&lt;/P&gt;&lt;P&gt;PERNR	      PERNR_D&lt;/P&gt;&lt;P&gt;COUNTER	      NUMC15&lt;/P&gt;&lt;P&gt;EMP_NAme      PAD_VORNA&lt;/P&gt;&lt;P&gt;PERIOD	         SPBUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-at-new-problem/m-p/3940445#M942694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:43:23Z</dc:date>
    </item>
  </channel>
</rss>

