Combining same matnr with AT new

Hi,
I have one internal table as IT_RESB  table contain data as below
     RSNUM        MATNR          BDMNG     ENMNG        BAUGR
    3212100           716                45            30                4110
    3212100            786                10            5                 4110
    3212111            716                 5            5                   4110
     3212111            786                10           10                4110
    3212112             610                 15           10                 4112
     3212112             985                30            10                4112
now i want  to group the material  with total qty means
BAUGR   MATNR    BDMNG   ENMNG
  4110       716          50          35
  4110       786          20          15
i have try with AT NEW but it is not groupinmg properly.
regards,
  zafar

hi,
try this.
DATA: BEGIN OF itab OCCURS 0,
     a type  i,
     b type i,
     c type i,
  ENd of itab.
DATA itab2 LIKE HASHED TABLE OF itab
               WITH UNIQUE KEY a c WITH HEADER LINE.
itab-a = 4110.
itab-b = 30.
itab-c = 716.
append itab.
itab-a = 4110.
itab-b = 30.
itab-c = 786.
append itab.
itab-a = 4110.
itab-b = 20.
itab-c = 786.
append itab.
LOOP at itab.
  COLLECT itab into itab2.
  ENDLOOP.
loop at itab2.
  write :/ itab2-a, itab2-b, itab2-c.
  endloop.
output
   4.110          30         716
   4.110          50         786
Edited by: abap on May 20, 2010 10:49 AM

Similar Messages

  • Date Picker display problems on same line with no new field

    With version 3.1.1 the attempted display of two date fields side by side appear stacked in the same column with the labels in between instead of side by side. This works fine with version 1.6.
    Create a page with 2 Date Picker items. Call the first one P1_DATE_FROM and the second one P1_DATE_TO. For P1_DATE_TO set the "Begin on new line" attribute to NO and the "Field" attribute to NO then display the page.
    The resulting display will be shown as:
    Line 1: Box for Date From value with date picker icon
    Line 2: Labels for both Date From and Date To with only a single space between
    Line 3: Box for Date To value with date picker icon
    The resulting display should be:
    Line 1: Label for Date From, Box for Date From with date picker icon, Label for Date To, Box for Date To with date picker icon.
    If you set the "Field" attribute to YES then the fields will appear on the same line in separate columns. I am trying to leave the second column available for and additional column of items in order to reduce the vertical scrolling on the page.
    If you repeat the above example with Text fields instead of Date Picker fields the desired result is achieved.

    You are correct that saying "Yes" to the field attribute will allow the items to format properly however this will push the second field into the second column on the page. I am purposely trying to keep these 2 items in the first column so that I can place a third item in the second column.
    I have tried using the "Start and Stop HTML table" feature to work around this but I can't control the alignment of the margins for the items above and below the start and stop item which make the display of the region even worse.
    Any other ideas or suggestions for work arounds would be appreciated.

  • My late 2009 macbook stopped booting up after swapping hdd's with a macbook of the same model with a newer OS what happened did I somehow update my older Mac hardware with newer OS software because it won't recognize the original hdd anymore

    I swapped hdd's with two diff os's and now I'm getting the question mark in the folder icon after replacing the two to their original MacBooks but they work while swapped I realized afterwards that I wanted to use the newer OS in my external enclosure and keep the older hdd in the macbook it was in from the start ive reset pram tried to boot to the menus or what have you by following the step in these forums but my macbook isn't even recognizing the original hdd that came in the macbook

    Try booting to the Startup Manager and select your system drive.
    Startup Manager: How to select a startup volume
    http://support.apple.com/kb/HT1310
    Then see
    http://support.apple.com/kb/TS2570
    https://discussions.apple.com/docs/DOC-5282
    Will it boot the disk when it is in an external enclosure but not when it is intsalled internaly?  If so it may be the internal SATA cable that is bad (an inexpensive part).

  • I,m back with same problem with a new twist

    I contacted this forum about a month ago and didn,t get any useful advice and so my boot camp installation problem https://discussions.apple.com/message/19306599?ac_cid=op123456#19306599 is still unresolved. I have a new problem now ....I CANNOT GET PAST FILE REC LOCK ITEM WHEN BOOTING UP. I,ve tried a pram reset, safe boot. Booting from original osx snow leopard whilst holding 'c' button. I,ve given up hope of recovering my existing info and would be HAPPY if some wiseman out there could tell me how to do an erase reinstall. I have an IMAC mid 2011 2.7 ghz which I got end of dec 2011. I started on s leopard then lion and then mountain lion. I have file encryption set up with a file rec key I wrote down but it neither accepts it or declines....it just stays on the lock icon with grey background. P.S. If I boot up as normal I get to my login screen as normal. My usual username and password is accepted but it go,s to a grey screen from there and gets stuck and there are no error messages or sounds and nothing for me to click. The power button only works if I press and hold it. Just before this happened I verified and repaired disk permissions and spotlight was re-indexing for ages before it tanked mid process. IS THERE A ANOTHER FILE REC KEY I COULD GET VIA EMAIL RATHER THAN PHONE THE £35 SUPPORT PHONE NUMBER?
    Thankyou, peeps.

    I installed iOS 6 on my iPad 2 yesterday as well as the above stuff if that helps.
    Ta.

  • When using logic's arpeggiator, how do I get it to resart its cycle from the root of a new chord instead of resuming its cylce in the same range with the new notes?

    I'm arpeggiating A minor over a number of octaves and I want to switch to D minor before the cylce is over. However, I want the d minor to start from the lowest note that I'm playing as if it were a new cycle. What it does instead is continue the cycle, but uses D,F,A instead of A,C,E.
    If Logic's arpeggiator is not capable of doing this, can anyone recommend a third party arpeggiator that can? (hopefully cheap/free)
    Thanks.

    You need to make sure to give a clean break between the two chords, if any notes are not completely severed between the chord changes the pattern continues from the first chord.  Kind of how in a synth when set to legato it doesn't re-trigger the envelope if the notes run together.

  • How do I recover my iTunes account on the same computer with a new hard drive?

    Had to get the hard drive replaced.
    Thanks

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Performance issue with brand new intel iMac extreme

    I am at a loss to explain a problem I've been having and I thought I might put it out to you guys.
    In September I purchased a macbook Pro (2.4 ghz, 4 GB RAM) to use in video editing with Final Cut Pro, and for the most part I've been thrilled. I use 1TB LaCie external drives connected via FW800, and perform Multiclip editing with 4-5 video streams at a time and only on occasion have dropped frames during the editing process.
    In December I determined that I needed to have an additional system, and thought a 2.8Ghz Intel iMac extreme would be an excellent choice, since for the same price I could get a little more power in the processor, more hard drive space and a bigger screen to work on. When we picked up the new system in the store (The Grove Apple Store in LA), we had them upgrade the memory to 4GB.
    Since day one we have had performance issues, including problems playing streaming and DVD video, severe delays mounting and unmounting drives (firewire and USB) and application images, and freezing while doing even simple tasks like printing or checking email. These problems occur even while there are no external drives are connected. I have none of these issues with the Macbook Pro, which has virtually an identical set of programs installed, and both running the same version of Leopard.
    I already took the original iMac back to the store, and they exchanged it, but did not have 4GB sets of RAM in stock so they took the RAM from the original machine and put it in the new one. They said if I continued to have problems then it was most likely the RAM and I should come back when they got more in stock. I DID have the same problems with the new machine, and took it back to the Apple Store and they swapped the memory. It seemed to improve the issue, but now I'm seeing the same severe performance issues again.
    All tech support can do is tell me to do a PRAM reset, which seems to improve things very temporarily (but that may be my imagination) or have me restart, which at least has the ability to make the printing of documents capable.
    What I'm wondering is if it is likely that the RAM is the issue and I just got another bad batch, or if the iMac has some weird glitch that isn't present in the macbook Pro...?? Or could I have possibly gotten 2 bad systems in a row? It's extremely frustrating, and I KNOW it shouldn't be this way! It's so bad I get better performance out of my single-core G5 tower! How do I get a good working system that operates like it should? Am I better off getting another Macbook Pro? I'd rather not for several reasons...
    I have xbench on both the MBP and the iMac and can provide test numbers if they'll help, as well as any other info.
    Thank you so much for reading my novella of a post and also for any insight you have!
    Best,
    Travis

    Hi!
    I got the same problem with my MacBook when it still was new in may 2006. It was supposed to be one of the faster Laptops around but it was soooo slow it drove me nuts. I can only advise to have a look if there is something hugging up your RAM and run some tests using these programs on your machine:
    Xbench:
    http://www.macupdate.com/info.php/id/10081
    MenuMeters:
    http://www.macupdate.com/info.php/id/10451
    If they show any unusual results you might have your problem...
    As to my problem with the MacBook: I did a complete re-install (writing the harddisk over with zeroes) and suddenly everything was just fine. (But be sure to back all your files before that, I learned this one the hard way.) I know it is just a standard answer, but it worked out for me this time...
    Hope this helps in some ways.
    Cheers,
    Rene

  • Can I use more than one Apple ID on my iPad with the new is system? Ios 8?

    I Thought I read some where that I can use multiple Apple ID on the same device with the new OS coming out this fall?  I'm wondering if this is possible or not. I have an iPad mini and it's under my Apple ID but I would like to be able to use both mine and my husbands.

    Maybe.
    See Family Sharing @ http://www.apple.com/ios/ios8/.

  • Bug with the new 2.2 update

    Not sure if anyone else is experiencing the same issue with the new 2.2 update, but when listening to applications like iSleep or any other type of music playing app, if you flick the silent switch on the music cuts out until you flick it back. Also when the screen times out the music cuts off too.
    If this is a bug then this is a pretty serious one! Can anyone share their thoughts on this if they have found a possible work around or experiencing the same.
    Regards

    Yup, same deal here trying to use Flycast after updating to 2.2. Press the sleep/wake button or let it time out and...Presto...no more music.
    Now, here's the weird part. Exactly 12 seconds after pressing the button, or letting the the phone auto-lock and go dark, the music starts playing again. I've tried this five times with the same results. What's up with that???
    I had no issues with this prior to the update today.

  • Can I combine codec m2v1 with apple ProRes 422 (HQ) in same FCP X project?

    Can I combine codec m2v1 with apple ProRes 422 (HQ) in same FCP X project? 
    Everything else is same.  29.97, fps, 1920 x1080, Linear PCM, 48kHz, mono, .mov
    If not, could I add the logo animation after outputting to compressor using QuickTime 7?
    I'm re-wrapping footage from Canon XF100, which is why m2v1.  I like working this way to preserve original footage.
    I just had my logo animated and designer matched everything except the m2v1.  Providing ProRes 422 (HQ)
    Thank you for your thoughts.  I'd like to avoid changing my camera footage to Apple ProRes 422 (HQ).

    Hi Mary,
    I'm new to FCPX too!
    When creating a new project, if you click on Use Custom Settingsand then ckick on the Custom checkbox in Video Properties, you can specifyexactly what you want!
    If you need to change it after the project was craeted, I found that you can click and highlight on the project in the Project Library window, then go over to the "info" button . The Properties window will expand from the right side (above the "info" button . With Properties selected it will show you the present settings, if you need to change those settings, click on the icon of the WRENCH on the bottom of that dialog box (Properties). You can then change your settings.
    Good luck, and happy cutting!
    Jb (James)

  • I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of A

    I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of Adobe InDesign CC (10.1). You must use that version or later to open the file." AARRGGHH! So how do I access the file?

    Sounds like you opened and saved it in CC, so now you need to go back to CC and either complete the project there, or export to IDML to take it back into CS6.

  • I just changed the OS from Vista to Windows7.  I have a folder on the same computer with the old iTunes library.  I installed a new version of iTunes from scratch.  How do I move my music library, etc from that backed up folder into the new iTunes folder.

    I need help with moving my music library. 
    I recently upgraded the OS on my computer from Vista to Windows7.
    During the process it copied my iTunes library to a folder on this same computer (marked it Windows.old)
    Once the OS was done, I installed a new copy of iTunes on the Windows7 but it now has a blank library (folder)
    How do I move my music from its current folder location (on this same computer) into the new iTunes library folder ???
    There don't seem to be specific instructions on how to do this. 

    Skydiver119 wrote:
    My situation may be different from yours since all mu music is ripped from cd's not bought from iTunes, but I would think the premise is the same.
    Doesn't matter what is in your library.
    When I moved computers I literally dragged and dropped the music where I wanted it to be. THen when I opened iTunes I imported the files back into iTUnes
    This creates a new library with all the same items but you lose a lot of info: Ratings, comments, date added, custom EQ, playlists, etc.
    If you simply copy the entire /Music/iTunes/ folder, it is the exact same library, not a new library. No info is lost.

  • HT201363 My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    Very simple.  Turn off Find my iDevice, then  Tap Settings, General, Erase, Erase all content and settings.

  • I have 2 ipads and my iphon on the same icloud account and it wont let me back it up cause i dont have enough space so I want to move my iphone over to a new icloud account i made with a new apple id but i dont want to delet the ipads off their account?

    I have 2 ipads and my iphone on the same icloud account and it wont let me back it up cause I dont have enough space. So I want to move my iphone over to a new icloud account with my new apple id that i made but i dont want to delete the ipads off the old account just move the iphone to the new one. How do I do that I despreatly need help!!!

    To migrate your phone to a new account, start by saving any photo stream photos that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with iCloud that you want to keep on the phone, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud; your other devices won't be effected by this), provide the password to turn off Find My iPhone (if using iOS 7) and choose Keep on My iPhone when prompted .  Then sign back in with your new Apple ID to create your new account and choose Merge to upload your data to the new account.

  • How can I sync my iPad with a new laptop (same itunes account) and not lose all my app data, i.e. games data stored on the ipad, not the app itself?

    I want to sync my iPad with a new laptop, so I can get rid of the old computer.  I have already downloaded all the itunes content on the new laptop, but when i go to sync, it tells me that itunes will erase and copy all the apps from the new library.  The 2 computers are on the same account, so is there a way to copy the apps (including app data) onto the new laptop, instead of vice versa?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

Maybe you are looking for