In Reports what  is the difference between the AT NEW and ON CHANGE Event

Hi,
        Could you tell the differences of AT NEW and ON CHANGE events in Repors

Hi raghava,
The Major Difference is :
a) When AT NEW occurs,
the alpha-numeric fields have ******* in their value,
b) where as in case of ON CHANGE,
the alpha-numeric fields have their corresponding value,
of that particular record,
where the Event gets fired.
Other differences are :
ON CHANGE OF can be used any where in the program..
on change of differs from at new in the following respects:
1.It can be used in any loop construct, not just loop at. For example, it can be used within select and endselect, do and enddo, or while and endwhile, as well as inside get events.
2.A single on change of can be triggered by a change within one or more fields named after of and separated by or. These fields can be elementary fields or field strings. If you are within a loop, these fields do not have to belong to the loop.
3.When used within a loop, a change in a field to the left of the control level does not trigger a control break.
4.When used within a loop, fields to the right still contain their original values; they are not changed to contain zeros or asterisks.
5.You can use else between on change of and endon.
6.You can use it with loop at it where . . ..
7.You can use sum with on change of. It sums all numeric fields except the one(s) named after of.
8.Any values changed within on change of remain changed after endon. The contents of the header line are not restored as they are for at and endat.
while
AT NEW can be used only within a loop of an INTERNAL TABLE..
5. Sample program to get the taste of it
(just copy paste)
6.
REPORT ABC.
DATA : BEGIN OF ITAB OCCURS 0,
bukrs like t001-bukrs,
f1(10) type c,
end of itab.
itab-bukrs = '1000'.
itab-f1 = '1111111'.
append itab.
itab-bukrs = '1100'.
itab-f1 = '3333333'.
append itab.
itab-bukrs = '1200'.
itab-f1 = '555555'.
append itab.
AT NEW
loop at itab.
at new bukrs.
write :/ itab-bukrs , itab-f1.
endat.
endloop.
AT ONCHANGE
loop at itab.
ON CHANGE OF ITAB-BUKRS.
write :/ itab-bukrs , itab-f1.
ENDON.
endloop.

Similar Messages

  • Difference Between OTL Retro Entry and Salary Change Retro Entry in Payroll

    Hi Everyone,
    We are developing a custom interface from Payroll to Projects which will post all the entries from OTL.
    OTL->Payroll->Projects
    We are stuck with identifying the Difference Between OTL Retro Entry and Salary Change Retro Entry when we process Retropay in Payroll.
    After retropay, we come we would see the retro element entries for both them with same name and creator_type is either EE or RR for both them.
    In our interface we have to treat retro entries through OTL and Salary Change in differentway.
    Has anyone can give some suggestions on this please asap as we are heading towards UAT very soon.
    Thanks in Advance..!!
    Anand

    Hi Anand,
    Element with creator_type RR are created/generated by Retropay.
    Elements with creator_type EE are regular element entries.

  • What is the difference between the green text bubble that reads "sent as text message" and the blue text bubble reporting "delivered?"  Is the green text bubble not delivered?

    what is the difference between the green text bubble that reads "sent as text message" and the blue text bubble reporting "delivered?"  Is the green text bubble not delivered?

    iMessages are sent using Apple servers, using either WiFi or Cellular data. They can only be sent to/from iDevices or Macs that have the Messages app. SMS messages use the cellular network. Both methods can deliver the message to the recipient.
    http://www.apple.com/ca/ios/messages/

  • What'z the difference between the Commercial Invoices and

    What'z the difference between the Commercial Invoices and
    Invoices/Excise Invoices? Also I understand that we can combine 2~3
    invoices and can create one commercial invoice? If it is possible, how
    to create the same?
    cheers
    shalsa007....

    Hello,
    A commercial invoice is a bill for the goods from the seller to the buyer. Commercial invoices are utilized by customs officials to determine the value of the goods in order to assess customs duties and taxes.
    In general there is no standard form for a commercial invoice although they tend to contain many of the following features:
    •     seller's contact information
    •     buyer's contact information
    •     consignee's contact information (if it is different from the buyers)
    •     invoice date
    •     a unique invoice number
    •     sales terms (usually in incoterm format)
    •     payment terms
    •     currency of sale
    •     full quantities and description of merchandise (Generally this includes unit price and total price. Product descriptions should be consistent with the buyer's purchase order. Including the Harmonized System commodity codes can be helpful, especially in countries that are WTO members.)
    Excise invoice “Original for Buyer copy”, whether  prices are inclusive or exclusive of excise duty.
    The invoice in which the Excise duties are included.
    As per Indian tax system, Excise duty (16%) is payable by each manufacturing unit on the value of manufactured goods / on the value added. The manufacturing plant is supposed to submit an excise duty report on fortnightly / monthly basis. Various registers (RG1, RG23A, RG23C, PLA) are maintained for that purpose, which record all the transactions including movement of goods, cenvat credit available and cash balance available.
    In SAP, we use transaction j1id for configuration and j1iin, j2i7, j1i5, j2i5, j2i6, j1ip for creating, extracting and printing excise invoice. 
    *Please reward if this helps**
    Regards
    AK

  • What is the difference between the 2011 airport extreme and the old version

    As per title if any one can help. What is the difference between the 2011 airport extreme and the old version

    According to the FCC reports, there is a significant difference in the power output of the g/n radios at both 2.4 and 5ghz.
    Follow the following links, then select the "Report" for each.
    Previous Version...
    http://goo.gl/B8PIu
    Current Verison Version...
    http://goo.gl/3yKRl
    Previous model...
    freqency range      mode                  output power dbm      output power watts
    2412-2462            802.11b               24.57                        286.42
    2412-2462            802.11g               21.56                        143.22
    2412-2462            802.11n(ht20)       21.17                        130.92
    5745-5825            802.11a               23.07                         202.77
    5745-5805            802.11n(ht20)       22.17                         164.82
    5755-5795            802.11n(ht40)       21.44                         139.32
    New Version...
    2412-2462            802.11b               24.10                         257.04
    2412-2462            802.11g               24.88                         307.61
    2412-2462            802.11n(ht20)       24.11                         257.63
    5745-5825            802.11a               25.14                          326.59
    5745-5805            802.11n(ht20)       25.28                          337.29
    5755-5795            802.11n(ht40)       25.94                          392.64
    This should mean a fairly significant increase in range with the new model.  I would imagine these changes would be consistent with the Time Capsule as well.

  • What is the difference between the following 2 hints?

    What is the difference between the following 2 hints?
    USE_NL
    USE_NL_WITH_INDEX

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements006.htm#SQLRF50701
    Oracle Documentation starts @ http://tahiti.oracle.com

  • What is the difference between string != null and null !=string ?

    Hi,
    what is the difference between string != null and null != string ?
    which is the best option ?
    Thanks
    user8729783

    Like you've presented it, nothing.  There is no difference and neither is the "better option".

  • What is the difference between Wine, Wineskin, Winery and Wine Bottler, and how do I get Wine to *ACTUALLY* work in Mountain Lion?

    Ok, so this is my first post here and I am admittedly terrible at forums. Someone might say, "This was addressed in the ___________ thread by __________! Go read it!" --- that may be so but I've spent enough hours trying to google this problem into submission to no avail based on what is apparently working for others, so I would like a chance to get specific answers to specific questions that aren't from Mar 2011, etc.
    So first of all, I'm confused by all the various Wine programs/apps/whatevers. I've seen Wine, Wineskin, Winery, Wine Bottler, and at this point I wouldn't be surprised if there are even more than that. What's the difference between all of these and how do they work with one another? What do I actually need to get windows programs working?
    All of my google searches have led me to people giving out fish, but no one giving out fishing lessons. I'm not a pro at mac and windows and all that, but I'm a fairly bright individual who gets VERY frustrated, very quickly, when I don't understand the why and how of something I'm attempting.
    I've also found "answers" where the person attempting to help starts off helpful enough, but degrades into the most archaic of techno-babble after about 5-6 sentences. On the other hand, I've watched tutorials on youtube where the poster decides to skip (apparently crucial) sections of the tutorial, and mutters such gems as: "... you might wanna have to run Wine first before you can do anything, cuz I think it has to configure it and set up a bunch of stuff" 
    O.o
    A happy medium between techno-babble and the most basic of explanations would be ideal for me, and I'd imagine for others as well.
    Here is a summarized history of my relationship with Wine:
    Diablo II - I downloaded this awesome thing which ended up being... uh... I guess Diablo II in a Wineskin "wrapper". I'm not sure, all I know is that it's a D2 icon, and if I go to 'show package contents', it's got C drive, Program Files, et cetera inside of it. I double click it, it launches D2, and it works like a dream. <3
    'Vanilla Install' - That's what I heard someone call it. It was the command/terminal style install using xquartz and xcode found at http://www.davidbaumgold.com/tutorials/wine-mac/. I followed every instruction to the letter, and got all the way to '$ sudo port install wine', at which point it started going smoothly, free from the possible error he described regarding the installation of xcode, and then just failed after I left the room to use the restroom and came back. Please don't ask me to repeat what the error was, because honestly, after reading more things on the interwebs, I'm confused as to why it's even necessary to go through all of that, so I'd rather not try that route again anyways, rendering the error message quite possibly irrelevant.
    Wine + Wine Bottler - So I decided to try to seek out an easier method, as I know that one must exist that doesn't involve command lines. I found a video tutorial at http://www.youtube.com/watch?v=m0BBkISOcEA, and oh man would it be great if that method had actually worked. Again, I followed all instructions provided to procure my free fish, and at the point in the video where he declares that "xquarts or x11 will open" - it doesn't open. Nothing opens. I was trying to install Star Sonata, btw.
    So here I am, thoroughly worn out, frustrated at all the random places Wine is installed on my mac now, and just want someone to explain it all, from top down, without getting toooooooo technical on me. I know that might be asking a lot...

    ## I know that the poster has already found a solution, but the following is a possible answer for others that have similar issues.
    For Winebottler, just go to their website and download it. Run the program. Choose .wine as your prefix (best choice) or whatever suits you best. You'll need a functional X11. If you can't use the one that comes with your mac, download the latest one from the website.
    If your issue is one with Winebottler's Wine not running correctly due to X11, then you have a pretty ugly problem, although a simple upgrade is the best solution (Upgrade XQuartz.app).
    http://www.davidbaumgold.com/tutorials/wine-mac/#part-1
    The above website is the easiest way to get REAL wine on your computer. First of all, Wineskin WInery, etc. are NOT WINE. They are 3rd party apps that may use Wine or may have originally part of Wine, but they are no longer up to date with Wine. WineBottler is currently up to date with the stable releases of Wine (but not the maintenence releases).
    For the website tutorial and to run Wine on your mac without using a thrid party app, you will need to know a few things.
    First, you will need to know basic control of the command line. That means, sudo (you must know the administrator password to your computer), and the forms of cd (change directory).
    Second, you will need Xcode. Download 4.2 (stable) or whatever other versions you want, but beware: It is over 1 GB, and you will need time for it to work.
    Third, you will need to get MacPorts and configure it. The tutorial should have this data.
    When you download wine (use sudo port install wine-devel for the latest development release of wine), it will first download a lot of dependencies. This will take a while. After that, it will download wine itself.
    After obtaining wine, to run a program, open the terminal.app window.
    cd desktop/XYZ/ZYZ\ WRQ
    The above will first enter the desktop, then folder XYZ, then folder ZYZ WRQ. From here,
    wine th11e.exe
    Or whatever executable you are trying to open. (Using Subterranean Animism as my example).
    It should, in theory, run the program. Watch the terminal for errors. If there is an X11 problem, then it's not wine acting up. If the app crashes or has other issues, check the Wine Application Database to see if your app is compatible with wine.
    If you have any further questions or other things, feel free to reply; I may or may not get back to you, but there's a good chance that someone will come in eventually. Otherwise, the Wine Wiki should have some information.

  • What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    Not entirely sure what you are asking, but a passcode to unlock an iOS device is normally 4 digits long (so is a 4 digit code), though you can make it alphanumeric and longer (so effectively becomes a password).
    If you don't know the passcode to unlock your phone or it's showing the disabled screen then there are instructions on this page for how to reset a device : http://support.apple.com/kb/HT1212 - you should then be able to restore/resync your content to it.

  • What is the difference between a mac-book, and an I-pad?

    What is the difference  between a mac-book and an I-pad?

    The Macbook is a computer (running Mac OS X), an iPad is a tablet (running iOS). What are thinking of using it for ? The Mac is more powerful than iPad, so if you need processing power then that will be better suited for your needs. If you will mainly be using it for media (films, music), internet browsing, emails, ebooks, then an iPad would be sufficient.
    Macbook Air : http://www.apple.com/macbook-air/
    MacBook Pro : http://www.apple.com/macbook-pro/
    iPad Air : http://www.apple.com/ipad-air/

  • Whats the difference between an iPhone 5s and a iPhone 5c

    Whats the difference between the iphone 5s and the iphone 5c???

    Rider11 wrote:
    The 5c has plastic backs with different colors just for fun other then that nothing is different.
    You'd better look up the above linked comparison as well if you believe you are correct....

  • What is the difference between Safari 6.0 and 6.0.2?

    What is the difference between Safari 6.0 and 6.0.2?

    here is a copy of the text from Software Update
    Safari 6.0.2 is recommended for all users running OS X Lion v10.7.5
    and includes security updates.
    For more information, please visit: http://support.apple.com/kb/HT1222

  • What is the difference between the generic accessories and the original apple brand?

    I am looking on Amazon for a new cable, wall charger, car charger, and headphones with built in mic. There were a lot of generic brands for cheap and I was wondering what the differences between the apple and the generic brands were. Also I looked on the apple store and they were selling Belkin items. Is Belkin a good brand?

    Belkin a a good thrid-party manufacturer. Most generic cable work but some do not. Griffen in another good brand too.
    The differences in in the quality of the parts and the quality assurance that go into making the part.

  • What is the difference between Component,Server,Tool and Software?

    HI,
    What is the difference between Component,Server,Tool and Software?
    SHABEER

    Hi
    Every individual part that constitutes in making an SAP System is called a COMPONENT.e.g DB instance, Java CI, ABAP CI etc
    SERVER is the actual composition of different components of SAP.e.g. a database alongwith can instance would constitue an application server.
    TOOLS are the products from different organisations (SAP or Non SAP) that can be used for different functionalities like keeping a check on jobs, monitoring of the system , e.g Tivoli
    SOFTWARES are a kind of tool that help you to bring up results from the system in a user acceptable format. These are utilities that act as interfaces between the user and the system.
    regards
    Chen

  • What is the difference between 3.6.25 and the latest ones like 9.0.1

    I'm not sure I understand the difference between the 3.6 versions and the much newer 9.0.1 version. I have much more trouble with this newer version--in fact had to uninstall it because it kept crashing. I understand that there are more bells and whistles, but what's the advantage of the newer ones over this old reliable version?

    OK, that gives me all the propaganda, but why does it crash all the time? I went back to 8.0.1 and have no problems at all. That is a rhetorical question because I don't think they know yet. I love the internet, but these upgrades seem to come out before they really have all the bugs cleaned out.
    Thanks for the reply.
    BTW: I realized very quickly that you can't go back as far as 3.6 versions!

Maybe you are looking for

  • Confirmed quantity in the sales order coming as 3.5 ea

    Hi Gurus The confirmed quantity in the sales order coming as 3.5 ea where the order quantity was 10ea.I checked CUIN for EA the decimal places is given as 0 which is very much correct moreover I checked the material master in additional data I have n

  • PI 7.31 SP14: use of MessageTransformBean Complex conversion w/o KEY values

    In a mail sender channel I need to pick up a csv file with 2 (different) header lines and a number of data lines. the structure is like this: header1 header2 line line line There are no Key values in the file that I can use and no fixed lengths eithe

  • How do I open 3D in my Photoshop CS6?

    I purchased 11/2 years ago. and I am trying to find 3D in the program, But can't seem to find it. Please help

  • ATP check against delivery with multiple plants

    Hi all, we have R/3 4.6c and APO 3.1 systems, this topic is related to ATP functionlity. Our Existing ATP Practice in R/3: 1.sales are delivered via several Distribution Centers  (DC). 2.The right DC is determined by a delivering plant which chosen d

  • Unable to load module "oracleasm" on z/os

    I am trying to install Oracle 10.2 on Linux on IBM z/os. I am having a problem with using asm. The following is a screen shot of what I did: linux:~ # id oracle uid=103(oracle) gid=105(oinstall) groups=105(oinstall),6(disk),106(dba) linux:~ # /etc/in