What is the use of control breaks in reoprts?how can we use them in report?

hello all
what is the use of control breaks in reoprts? and how can we use them in reports?

hi,
check this sample program using control break statements.
*& Report  Y777_CBSTABLE
REPORT  Y777_CBSTABLE1.
TYPES:
BEGIN OF S_MARKS,
     ROLLNO    TYPE I,
     SCODE(3)  TYPE C,
    ROLLNO    TYPE I,
     SNAME(10) TYPE C,
     MARKS     TYPE I,
END OF S_MARKS.
DATA : C TYPE I,
       D(3) TYPE C,
       TOT TYPE I,
       STU TYPE I,
       MARKS TYPE STANDARD TABLE OF S_MARKS,
       WA_MARKS TYPE S_MARKS.
WA_MARKS-ROLLNO = 1.
WA_MARKS-SCODE  = 'MAT'.
WA_MARKS-SNAME  = 'MATHS'.
WA_MARKS-MARKS  = 65.
APPEND WA_MARKS TO MARKS.
CLEAR WA_MARKS.
WA_MARKS-ROLLNO = 1.
WA_MARKS-SCODE  = 'SCI'.
WA_MARKS-SNAME  = 'SCIENCE'.
WA_MARKS-MARKS  = 85.
APPEND WA_MARKS TO MARKS.
CLEAR WA_MARKS.
WA_MARKS-ROLLNO = 1.
WA_MARKS-SCODE  = 'COM'.
WA_MARKS-SNAME  = 'COMPUTER'.
WA_MARKS-MARKS  = 90.
APPEND WA_MARKS TO MARKS.
CLEAR WA_MARKS.
WA_MARKS-ROLLNO = 2.
WA_MARKS-SCODE  = 'MAT'.
WA_MARKS-SNAME  = 'MATHS'.
WA_MARKS-MARKS  = 55.
APPEND WA_MARKS TO MARKS.
CLEAR WA_MARKS.
WA_MARKS-ROLLNO = 2.
WA_MARKS-SCODE  = 'SCI'.
WA_MARKS-SNAME  = 'SCIENCE'.
WA_MARKS-MARKS  = 75.
APPEND WA_MARKS TO MARKS.
CLEAR WA_MARKS.
WA_MARKS-ROLLNO = 2.
WA_MARKS-SCODE  = 'COM'.
WA_MARKS-SNAME  = 'COMPUTER'.
WA_MARKS-MARKS  = 80.
APPEND WA_MARKS TO MARKS.
CLEAR WA_MARKS.
RETRIVAL ************************************
SORT MARKS BY SCODE .
LOOP AT MARKS INTO WA_MARKS.
    AT FIRST .
       ULINE.
       FORMAT COLOR 6 ON.
       WRITE:/ 'SUBJECT CODE', 65 ' ' .
       FORMAT RESET.
       FORMAT COLOR 6 ON INTENSIFIED OFF.
       WRITE:/20 'ROLL NO',
              40 'SUBJECT NAME',
              55 'MARKS',
              65 ' '.
       FORMAT RESET.
       ULINE.
    ENDAT.
    ON CHANGE OF WA_MARKS-SCODE.
       IF SY-TABIX NE 1.
           NEW-LINE.
           ULINE 40(25).
           FORMAT COLOR 5 ON INVERSE ON INTENSIFIED ON.
           TOT = TOT / STU.
           WRITE:/40 'AVERAGE MARKS =', TOT.
           FORMAT RESET.
           CLEAR TOT.
           CLEAR STU.
       ENDIF.
      FORMAT COLOR 6 ON INTENSIFIED ON.
      WRITE:/ WA_MARKS-SCODE.
      FORMAT RESET.
    ENDON.
    FORMAT COLOR 6 ON INTENSIFIED OFF.
    WRITE:/20 WA_MARKS-ROLLNO,
           40 WA_MARKS-SNAME,
           55 WA_MARKS-MARKS,
           65 ' '.
    FORMAT RESET.
    STU = STU + 1.
    TOT = TOT + WA_MARKS-MARKS.
    C = STU.
    AT LAST.
           NEW-LINE.
           ULINE 40(25).
           FORMAT COLOR 5 ON INVERSE ON INTENSIFIED ON.
           TOT = TOT / STU.
           WRITE:/40 'AVERAGE MARKS =', TOT.
           FORMAT RESET.
           CLEAR TOT.
           CLEAR STU.
         ULINE.
         FORMAT COLOR 6 ON INVERSE ON INTENSIFIED ON.
         WRITE:/ ' TOTAL STUDENTS : ', C.
         FORMAT RESET.
    ENDAT.
ENDLOOP.
reward points if hlpful.

Similar Messages

  • What is the use of control breaks in reoprts?  and how can we use them?

    hello all
    what is the use of control breaks in reoprts? and how can we use them in reports?

    use F1 on AT in a program.
    You get this
    Control break with extracts
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    - AT fg.
    Control break with internal tables
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    Each of these have a link to explain in detail what you are asking.

  • HT4847 i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    I got rid of AMDS, ASU ,QuickTime and iTunes from control ones I also found folder in Vista with D:\Users\Rick\Music\iTunes\Previous iTunes Library and there is one dated 2009-03012.itl. I moved this file up one folder and delted existing iTunes Library.itl. iTune still failed to identify my iPhone. There are other files iTunes Library Extras.itdb, iTunes Library Geniyes,itdn and iTunes Music Library,xml date dtd 06/18/2009 after upgrade except the latter which is date 06/23/2009. So something is not allowing me to pull or put everything back to when it worked.
    YES this is my only iPhone and only PC I have access to with iTunes.
    Here is what Apple gave to someone Sunday 28 June:
    http://discussions.apple.com/thread.jspa?threadID=2035950&start=75&tstart=0
    I checked these out too and they appear the same printed out nearly a week prior. I agree with Coach TO, if I had bad drivers or Vista errors it would not have shown up only when I updated to latest Version of 8.2.023. My Phone was identified on a PC with iTunes at the local AT&T store. He suggested I get phone into Recovery made while connected to iTunes and that resolves the problem 9 out of 10 time. Weak spot was he tried to get phone into Recovery without iTunes connection and thought I may have iPhone problem, then changed his mind when it worked while connected. He also stated it could take an hour. I have not tried to put my iPhone in Recovery lately, I think I did a while back and it failed to go into Recovery as error "iPhone detected by, not identified..."Has anyone tried forcing phone into Recovery? I understand you may lose all that is on phone. If iTunes still fails to identify would we not be in worse shape even if iTunes holds a recent backup which it does not for many of us? Will Apple take back or exchange phone if yours is not identitifed, AT&T today told me I had to go to Apple Store for this or anything to happen.

  • The option "tell websites I do not want to be tracked" is missing from the Options Window/Advance/General/Browsing. How can I use the feature I do no want to be tracked by websites?

    The option "tell websites I do not want to be tracked" is missing from the Options Window/Advance/General/Browsing. How can I use and find the feature: I do no want to be tracked by websites? I am using Windows Vista, Firefox 8.0.1

    That option has been moved to the Privacy tab in Options (first item).
    *See --> https://support.mozilla.com/en-US/kb/how-do-i-turn-do-not-track-feature
    *Do Not Track is voluntary; the site you are visiting must honor your request to not be tracked --> https://www.eff.org/deeplinks/2011/02/what-does-track-do-not-track-mean
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I have a new Iphone 5, my wife has a 4S and an iPod Touch.  When I sync my new 5 to the Mac, it pick up ALL of the stupid game apps that my wife uses on her two devices.  How can I keep them separate?

    I have a new Iphone 5, my wife has a 4S and an iPod Touch.  When I sync my new 5 to the Mac, it pick up ALL of the stupid game apps that my wife uses on her two devices.  How can I keep them separate?

    go to itunes preferences, store, uncheck automatic downloads. also when your phone is connected you can click  on apps and only check the ones you want on your phone, go down to the bottom right and click apply.

  • TS4148 I have an apple 4 given to me by my cousin from japan but the phone is lock by japan sotfbank, how can i use this phone here in the Philippines network provider? thanks

    I have an apple 4 given to me by my cousin from japan but the phone is lock by japan sotfbank, how can i use this phone here in the Philippines network provider? thanks

    Only the carrier an iPhone was sold as carrier locked with can officially unlock the iPhone. It is my understanding that Softbank in Japan does not unlock iPhones.

  • Help with Adobe.premiere.elements12. Please It would appear under the organizer tab that the photos are organised in the lowest folder in the folder structure within Windows Explorer.  How can I use the Windows Explorer structure to organise the photos wi

    Help with Adobe.premiere.elements12. Please
    It would appear under the organizer tab that the photos are organised in the lowest folder in the folder structure within Windows Explorer.  How can I use the Windows Explorer structure to organise the photos within Elements.

    In a situation such as yours, I tend to consolidate items into folders so I have folders of nice workable numbers of images, somewhere between 20 and 200 images. Now, whatever, once you've imported, do your moving within LR, not the OS! I will select all in a folder and drag into a folder a level or two or three above, and then delete the newly empty subfolders. I hope this helps a bit!
    Once you've reached just new Imports of camera output, you'll be flying along.

  • HT201210 my iphone 3 couldn't restore, its saying the error 46. what is the meaning of error 46?and how can i resolve it?

    my iphone 3 couldn't restore, its saying the error 46. what is the meaning of error 46?and how can i resolve it?

    It doesn't matter when you installed antivirus software; if you have it on your computer it will frequently block access from applications to sites it does not know about. A sync does not require access to a site not on your computer; an upgrade clearly does. So if you have never jailbroken any device you do not need to be concerned about your hosts file, but you DO need to temporarily disable your antivirus during the update process.
    The hosts file is an operating system file on all computers that overrides DNS lookup. In order to jailbreak or hack an iDevice the programs that do it need to redirect iTunes so it does not go to the Apple activation server, but instead goes to the hacking program for activation instructions. It does this by adding a record to the hosts file that bypasses the DNS lookup for gs.apple.com. But you don't have to be concerned about this.

  • Help!!! the app Iphoto is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    I was editing my photos and adding them to a album and suddenly the app is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I was transferring my information from my old iphone to the new one, and i forgot that i had some pictures in the new one. i did the restoring information and the pictures in new one are gone. how can i get them back????

    i was transferring my information from my old iphone to the new one, and i forgot that i had some pictures in the new one. i did the restoring information and the pictures in new one are gone. how can i get them back???? please

    Only way to get it back is to restore your phone from a backup, if those pics were included in that backup.
    But most likely those pics are gone.
    What you should've done was import http://support.apple.com/kb/HT4083 the pics to your computer and after you restored from your old backup, you could sync those new pics to your phone via itunes.

  • I recently turned off iCloud photo sharing and lost all the photos off my iPhone 4S. How can I get them back onto my phone?

    I recently turned off iCloud photo sharing and lost all the photos off my iPhone 4S. How can I get them back onto my phone?

    IF you have successfully imported your pictures to your Mac http://support.apple.com/kb/HT4083  then it's safe to delete it from your phone.
    If you want the pics back on your phone, just sync them back using itunes http://support.apple.com/kb/HT4236

  • HT201269 Where are the notes from my iphone backup and how can I sync them with my new macbook and ipad. And my galaxy 3g if someone is feeling especially generous with their time and attention. Many thanks.

    Where are the notes from my iphone backup and how can I sync them with my new macbook and ipad. And my galaxy 3g if someone is feeling especially generous with their time and attention. Many thanks.

    - The iTunes backup that iTunes makes included photos in the camera roll. If yo go to iTunes>Preferences>Devices what is the date of the backup? Is it when the photos were on the iPod? You have to restore from that backup.
    - What may have happened is that you backup the iPod after you restored the iPod but before restoring from backup. iTunes only keeps one backup and overwrites the previous backup with the changes.

  • HT2905 I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    In iTunes(on a Mac or PC) just tap on 'Albums' rather than 'Artists' and you'll see them all together.
    You may find that there are songs mislabelled. In which case right tap on the Album or Artist and tap 'Get Info', then change to the correct name and the songs will join the rest of the songs for that Artist or Album.
    Then resync with your iPhone and all will be well.

  • HT1373 So i bought music on a different computer but oAn the same itunes account and on the same ipod and when i get on my original computer and i sync my ipod my purchases that were on the other computer didnt show up. How can i put them on my computer/i

    So i bought music on a different computer but oAn the same itunes account and on the same ipod and when i get on my original computer and i sync my ipod my purchases that were on the other computer didnt show up. How can i put them on my computer/ipod

    Download them to the computer to which the iPod is synced, re-sync.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list, or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • HT1918 I've lost the answers for my secret questions! How can I recover them?

    I've lost the answers for my secret questions! How can I recover them?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

Maybe you are looking for

  • Unpleasant experience at a local Apple store

    Hi I'd like to share my experience at a local Apple store. I am not sure this is the right place to initiate this but I couldn't find an email link for complaining about the Apple customer service. My wife has a Iphone4 and she has cracked panels for

  • Exceptions  in recurring events

    I have a recurring appointment every Monday. When a Monday is a holiday how can I have the entry say there is no meeting. So I'm looking for a way to have exceptions in recurring events. Thanks. Pat

  • How do I edit the permissions that Adobe Media Server creates directories with?

    OS: CentOS 6.6 AWS-provided AMI found here I'm using Adobe Media Server 5.0.7. I have my application set up so that when a user records a video to the server, it goes into its own directory. If this directory does not exist, it is created automatical

  • Installing help...

    I purchased Quicktime Pro online and can't find my back-up disk with serial number. Anybody know how can I get Quicktime time Pro to install again.

  • Installing Oracle Entrerprise Manager not Grid control separately to the DB

    Hi, Can I install Only Oracle Enterprise manager console 11g not grid control separately to the Database server. If yes, what should I do? Thanks in advance