<?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/2240326#M482962</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 an internal table with a counter (aa), coep-belnr and coep-buzei.&lt;/P&gt;&lt;P&gt;so with the same belnr and different buzei in the counter must be added 1 each time.&lt;/P&gt;&lt;P&gt;and each time that i have new belnr then the counter will be equal to 1 and so on.&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;belnr    buzei    aa(counter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A        A          1&lt;/P&gt;&lt;P&gt;A        B          2&lt;/P&gt;&lt;P&gt;A        C          3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B        A          1&lt;/P&gt;&lt;P&gt;B        B          2&lt;/P&gt;&lt;P&gt;B        C          3&lt;/P&gt;&lt;P&gt;B        D          4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used many codes but the resault was not the one i wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one of them is: &lt;/P&gt;&lt;P&gt;sort it_file by belnr buzei.&lt;/P&gt;&lt;P&gt;loop at it_file.&lt;/P&gt;&lt;P&gt;h_file = it_file.&lt;/P&gt;&lt;P&gt;at new belnr.&lt;/P&gt;&lt;P&gt;h_file-aa = 0.&lt;/P&gt;&lt;P&gt;at new buzei.&lt;/P&gt;&lt;P&gt;add 1 to h_file-aa.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;modify it_file from h_file index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please if you have smth in mind.........&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2007 08:26:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-25T08:26:57Z</dc:date>
    <item>
      <title>'at new' problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240326#M482962</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 an internal table with a counter (aa), coep-belnr and coep-buzei.&lt;/P&gt;&lt;P&gt;so with the same belnr and different buzei in the counter must be added 1 each time.&lt;/P&gt;&lt;P&gt;and each time that i have new belnr then the counter will be equal to 1 and so on.&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;belnr    buzei    aa(counter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A        A          1&lt;/P&gt;&lt;P&gt;A        B          2&lt;/P&gt;&lt;P&gt;A        C          3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B        A          1&lt;/P&gt;&lt;P&gt;B        B          2&lt;/P&gt;&lt;P&gt;B        C          3&lt;/P&gt;&lt;P&gt;B        D          4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used many codes but the resault was not the one i wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one of them is: &lt;/P&gt;&lt;P&gt;sort it_file by belnr buzei.&lt;/P&gt;&lt;P&gt;loop at it_file.&lt;/P&gt;&lt;P&gt;h_file = it_file.&lt;/P&gt;&lt;P&gt;at new belnr.&lt;/P&gt;&lt;P&gt;h_file-aa = 0.&lt;/P&gt;&lt;P&gt;at new buzei.&lt;/P&gt;&lt;P&gt;add 1 to h_file-aa.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;modify it_file from h_file index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please if you have smth in mind.........&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240326#M482962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:26:57Z</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/2240327#M482963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;data: g_count type sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.

g_count = g_count+1.
aa = gcount.
modify itab transporting aa.
at new belnr.
g_count = 0.
endat.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240327#M482963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:32:38Z</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/2240328#M482964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA : COUNT TYPE I.&lt;/P&gt;&lt;P&gt;sort it_file by belnr buzei.&lt;/P&gt;&lt;P&gt;loop at it_file.&lt;/P&gt;&lt;P&gt;h_file = it_file.&lt;/P&gt;&lt;P&gt;at new buzei.&lt;/P&gt;&lt;P&gt;add 1 to COUNT.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;H_FILE-AA = COUNT.&lt;/P&gt;&lt;P&gt;AT END OF BELNR.&lt;/P&gt;&lt;P&gt;COUNT = 0.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;modify it_file from h_file index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240328#M482964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:33:46Z</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/2240329#M482965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The order of the fields in your table affect the results. If you have your table declared as :&lt;/P&gt;&lt;P&gt;  belnr&lt;/P&gt;&lt;P&gt;  buzei&lt;/P&gt;&lt;P&gt;  counter&lt;/P&gt;&lt;P&gt;then the at new buzei statement will occur every time belnr changes. When you state at new belnr, then fields to the right are populated with *. This too will affect the operation of your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240329#M482965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:37:37Z</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/2240330#M482966</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 can try with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data l_local like itab.&lt;/P&gt;&lt;P&gt;Data l_local1 like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;Clear l_local.&lt;/P&gt;&lt;P&gt;L_local = itab.&lt;/P&gt;&lt;P&gt;At new itab-belnr.&lt;/P&gt;&lt;P&gt;L_local-aa =0.&lt;/P&gt;&lt;P&gt;Clear l_local1.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;L_local1 = l_local.&lt;/P&gt;&lt;P&gt;If l_local1- buzei = l_local-buzei.&lt;/P&gt;&lt;P&gt;L_local-aa = L_local-aa + 1.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify itab from l_local index sy-tabix.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240330#M482966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:40:31Z</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/2240331#M482967</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 with this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data l_local like itab.&lt;/P&gt;&lt;P&gt;Data l_local1 like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;Clear l_local.&lt;/P&gt;&lt;P&gt;L_local = itab.&lt;/P&gt;&lt;P&gt;At new itab-belnr.&lt;/P&gt;&lt;P&gt;L_local-aa =0.&lt;/P&gt;&lt;P&gt;Clear l_local1.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;L_local1 = l_local.&lt;/P&gt;&lt;P&gt;If l_local1- buzei &amp;lt;&amp;gt; l_local-buzei.              " change &lt;/P&gt;&lt;P&gt;L_local-aa = L_local-aa + 1.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify itab from l_local index sy-tabix.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240331#M482967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:44:20Z</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/2240332#M482968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 08:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-new-problem/m-p/2240332#M482968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T08:50:37Z</dc:date>
    </item>
  </channel>
</rss>

