<?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: how to use at in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077291#M430690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Did u sort the table b4 u used that code?..&lt;/P&gt;&lt;P&gt;control brk :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2007 10:55:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-12T10:55:47Z</dc:date>
    <item>
      <title>how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077286#M430685</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;i have one internal table with following fields and also soe other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kkber   land&lt;/P&gt;&lt;P&gt;Ch24    ch&lt;/P&gt;&lt;P&gt;Ch24    al&lt;/P&gt;&lt;P&gt;Ch28   ch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i loop at this internal table as&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;at new kkber.&lt;/P&gt;&lt;P&gt;at new land.&lt;/P&gt;&lt;P&gt;......do some calc&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;if i do like that it is taking  the lines ch24 ch and ch28 ch i.e 1 &amp;amp;3 in to  consideration but not the ch24 al even though field land is differerent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually what i need is for every dif combinations of kkber and land i have to do some calculations inside the loop.&lt;/P&gt;&lt;P&gt;How to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077286#M430685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077287#M430686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just use at new land it will trigger when land will change or kkber will change...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is not solved let us know..&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>Thu, 12 Apr 2007 10:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077287#M430686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077288#M430687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;when u use at new the right hand fields will lose their memory areas and they form as junk characters.&lt;/P&gt;&lt;P&gt;so u'r code is wrong!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using on change of instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077288#M430687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077289#M430688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;looop at itab.&lt;/P&gt;&lt;P&gt; at new land.&lt;/P&gt;&lt;P&gt;   do calculations...&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it suffices..because...&amp;lt;b&amp;gt;AT NEW works for every change of the field&amp;lt;/b&amp;gt; that is left to the field that we mentioned in at new &amp;lt;fld&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077289#M430688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077290#M430689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi... Shwetha..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need to write at new kkber because at new will compare all the preceding fields in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Kkber land are the first 2 fields of ur internal table then try this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i loop at this internal table as&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;at new land.&lt;/P&gt;&lt;P&gt;......do some calc&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;i hope It helps you.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful......&lt;/P&gt;&lt;P&gt;Suresh.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077290#M430689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077291#M430690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Did u sort the table b4 u used that code?..&lt;/P&gt;&lt;P&gt;control brk :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077291#M430690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077292#M430691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;try using on change of instead of using at new&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3264848"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077292#M430691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T11:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077293#M430692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below code -&lt;/P&gt;&lt;P&gt;data : flag(1) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;at new kkber.&lt;/P&gt;&lt;P&gt;......do some calc&lt;/P&gt;&lt;P&gt;flag = 'X'.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;if flag is initial.&lt;/P&gt;&lt;P&gt;at new land.&lt;/P&gt;&lt;P&gt;......do some calc&lt;/P&gt;&lt;P&gt;clear flag.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077293#M430692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T11:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077294#M430693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just use 'AT NEW LAND'.. insetad of two at new 's&lt;/P&gt;&lt;P&gt;it vl solve ur prob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077294#M430693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077295#M430694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW control command will trigger for every new entry on the SORTed internal table sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB KKBER LAND. If use internal table with control command with AT NEW on LAND, it will trigger this event  when new entry with the KKBER LAND combinations comes.So, no need of nesting the AT events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SORT ITAB KKBER LAND.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*at new kkber.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;at new land.&lt;/P&gt;&lt;P&gt;......do some calc&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*endat.&amp;lt;/b&amp;gt;&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;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077295#M430694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T11:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077296#M430695</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;The order of the columns in your internal table is important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose that you have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of rw,&lt;/P&gt;&lt;P&gt;    f1,&lt;/P&gt;&lt;P&gt;    f2,&lt;/P&gt;&lt;P&gt;    f3,&lt;/P&gt;&lt;P&gt;    f4,&lt;/P&gt;&lt;P&gt;    f5,&lt;/P&gt;&lt;P&gt;  end of rw,&lt;/P&gt;&lt;P&gt;  rw2 like rw,&lt;/P&gt;&lt;P&gt;  iw like table of rw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you loop like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort iw.&lt;/P&gt;&lt;P&gt;loop at iw into rw.&lt;/P&gt;&lt;P&gt;  at new f2.&lt;/P&gt;&lt;P&gt;    perform something using rw-f1 rw-f2.&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;This 'at new' will be triggered whenever there is a new value of f2 or of any field to the left of f2 in the internal table, that is, whenever there is a new value of f1 or f2.&lt;/P&gt;&lt;P&gt;That is probably exactly what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be warned, though, that inside the 'at new', rw fields to the right of f2 will not hold their proper values, but contain asterisks.  There are ways round this, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort iw.&lt;/P&gt;&lt;P&gt;loop at iw into rw.&lt;/P&gt;&lt;P&gt;  rw2 = rw.&lt;/P&gt;&lt;P&gt;  at new f2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;rw-f3 and rw-f4 will contain asterisks&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so use the fields from rw2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform something_else using rw2-f1 rw2-f2 rw2-f3 rw2-f4.&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;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077296#M430695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use at</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077297#M430696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this help u use on change of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/34/8e73516df74873e10000009b38f9b8/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/34/8e73516df74873e10000009b38f9b8/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;al the best!!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-at/m-p/2077297#M430696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T11:06:16Z</dc:date>
    </item>
  </channel>
</rss>

