<?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 At New in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680493#M299957</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;simply declare land1 as the first variable inside the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same problem i faced last day. so i created an internal tabel with land1 as first variable inside that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 12:14:30 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-11-23T12:14:30Z</dc:date>
    <item>
      <title>Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680488#M299952</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 the following code and tell me why At new statement is not working, but i did the same coding for Sflight table it is working very much fine. It is not grouping the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me where the problem is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data itab like lfa1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-Of-Selection.&lt;/P&gt;&lt;P&gt; Select * from lfa1 into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End-Of-Selection.&lt;/P&gt;&lt;P&gt; sort itab by land1.&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt;  At First.&lt;/P&gt;&lt;P&gt;   write:/50 'Vendor Details' color 6.&lt;/P&gt;&lt;P&gt;  Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  at new land1.&lt;/P&gt;&lt;P&gt;   write:/5 'Vendor Number' color col_heading, 27 'Name' color&lt;/P&gt;&lt;P&gt;col_heading, 50 'Country' color col_heading.&lt;/P&gt;&lt;P&gt;   uline.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;  write:/5 itab-lifnr, 27 itab-name1,50 itab-land1.&lt;/P&gt;&lt;P&gt;  At Last.&lt;/P&gt;&lt;P&gt;   uline.&lt;/P&gt;&lt;P&gt;    write:/55 'Total Number Of Vendors', sy-tfill color col_total.&lt;/P&gt;&lt;P&gt;   uline.&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;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680488#M299952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680489#M299953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At New event will fire, whenever the value change and laso whenever their left filedsvalue changes. please chek the left column of land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- saru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680489#M299953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680490#M299954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first field in LFA1 is lifnr. So whenever the value of lifnr changes the AT NEW will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want on land1. then Declare internal table and the first field in that internal table should be land1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try as usual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680490#M299954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680491#M299955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After at new if you want to group integer fields you have to use SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW.&lt;/P&gt;&lt;P&gt;SUM.&lt;/P&gt;&lt;P&gt;*DO something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only then grouping will happen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680491#M299955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680492#M299956</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;after AT NEW  u have to read the table or use a workarea,&lt;/P&gt;&lt;P&gt;check the 2nd line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at new land1.
read table itab index sy-tabix.
write:/5 'Vendor Number' color col_heading, 27 'Name' color
col_heading, 50 'Country' color col_heading.
uline.
endat.
write:/5 itab-lifnr, 27 itab-name1,50 itab-land1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        chandrasekhar jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680492#M299956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680493#M299957</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;simply declare land1 as the first variable inside the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same problem i faced last day. so i created an internal tabel with land1 as first variable inside that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680493#M299957</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-23T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680494#M299958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check my comments below in bold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;At First.&lt;/P&gt;&lt;P&gt;write:/50 'Vendor Details' color 6.&lt;/P&gt;&lt;P&gt;Endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;It would trigger at new land1 even on change of either vendor number or country. Also please note that the name field would be asterix as it falls on the right of the land1 field. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;at new land1.&lt;/P&gt;&lt;P&gt;write:/5 'Vendor Number' color col_heading, 27 'Name' color &lt;/P&gt;&lt;P&gt;col_heading, 50 'Country' color col_heading.&lt;/P&gt;&lt;P&gt;uline.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;write:/5 itab-lifnr, 27 itab-name1,50 itab-land1.&lt;/P&gt;&lt;P&gt;At Last.&lt;/P&gt;&lt;P&gt;uline.&lt;/P&gt;&lt;P&gt;write:/55 'Total Number Of Vendors', sy-tfill color col_total.&lt;/P&gt;&lt;P&gt;uline.&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;&amp;lt;b&amp;gt;If you wish to group on country it is better to define itab with country as the first field.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680494#M299958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with At New</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680495#M299959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi haritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use at new for "land1", land1 should be your first field in the internal table.&lt;/P&gt;&lt;P&gt;Othervise if any field value ex LIFNR is changed AT NEW will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your itab structure should contain LAND1 as first field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antony Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Reward if solve your problem&lt;/STRONG&gt;**&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-at-new/m-p/1680495#M299959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:19:29Z</dc:date>
    </item>
  </channel>
</rss>

