AT NEW in loops

Hi everyone
I have an internal sorted table (itab1) which contains data from table VBAP based on a unique key using VBELN and POSNR. I want to extract the first row for each VBELN into a seperate hashed table (itab2) with a key of VBELN.  Two restriction apply:
1. I need to retain the data in POSNR as itab2 will be used to read another internal table later on with a key of VBELN and POSNR
2. I need to keep the contents of itab1 for use later in the program so cannot just do a DELETE ADJACENT...ON VBELN to remove the 'duplicates'.
I have tried the following:
LOOP AT itab1 INTO wa_itab1.
    AT NEW vbeln.
      INSERT wa_itab1 INTO TABLE itab2.
    ENDAT.
  ENDLOOP.
However, immediately after the AT NEW command has executed the contents of wa_itab1-posnr become '*****'.  My question is therefore, why does it do this and is there a way that I can get the work area to retain the value in POSNR?  Perhaps my logic is flawed - is there a better way of achieving my goal?
Thanks
Andrew

when using AT NEw u have to use read statement
LOOP AT itab1 INTO wa_itab1.
  <b>v-inex = sy-tabix</b>
    AT NEW vbeln.
   <b>read table itab1 into wa_itab1 index v_index.</b>
      INSERT wa_itab1 INTO TABLE itab2.
    ENDAT.
  ENDLOOP.
Message was edited by: Sekhar

Similar Messages

  • ITunes Match new Terms Loop After Agree

    So After Installing iOS 6 on my iPad 2 (Model- 2, 4), I've been Using The App Store, more specifically itunes Match to recover my apps from the cloud.. However recently, New Terms & Conditions has been popping up when i try to install any app and everytime I press agree it redirects me to the same terms to agree... like a loop. Any Help Is appreicated!
    PS.. I tried to use iTunesForm My Windows 8 Pro Desktop, but it did the same thing, bring me to new terms loop..... (iTunes 10.
    ** I Also Did A Hard Reboot, Closing The Application from the switcher and reopening it, but it still doesn't work :\

    Check out this article: http://www.macrumors.com/2012/09/30/widespread-itunes-and-app-store-terms-and-co nditions-bug-preventing-new-purchases-and-downloads/

  • New Apple Loop Created at Wrong BPM?

    Hi,
    I've beat mapped an audio region, which adjusted the project tempo to about 122.5 BPM, which is the correct value.
    I've trimmed the region to an even number of bars, and exported it as an Apple Loop as I have always done in the past.
    However, when I go to open it up in the media browser, it says the BPM is 95, which is wrong. When I make it follow the tempo of another project which is also around 122.5, it makes it way too fast (it over-compensates since it thinks the loop is at 95BPM). I've tried it in the Apple Loops utility, and the same thing happens.
    Any help is very much appreciated!

    Set the permissions on the other volume's root directory the same as the boot volume.
    owner:root
    group:admin
    chmod 1775
    Make a /Users directory on the other volume and
    set permissions same as on the boot volume,
    owner:root
    group:admin
    chmod 755
    create your new user directory in the /Users directory on the other volume.

  • Where are my new Apple loops hiding?

    Hello all . . .
    I will probably learn that I am a complete idiot, but . . .
    I just bought and installed my first Jam Pack loops: the Symphonic Orchestra loops. I am still with GB1 because what I really use is Logic Express 7. ( The Jam Pack box does say in tiny type that I need GB2 for the Symphonic package, which I didn't notice initially.)
    What has happened is that 30-some new Symphonic software instruments have installed fine. I can use them in LExpress although not in GB, because (it appears) they need the EXSP24 sample player. Logic has it; Garage Band 1 doesn't. OK. Cool.
    But wouldn't the advertised 2,000+ new loops be in here somewhere? Right now, they don't show up in the Loop Browser in either GB or LExpress. I've checked the Library > > > Apple Loops folder. It shows 1,006 loops in the folder, which sounds like the loops that came with GB1. The installation DVDs don't provide an option for simply dragging a folder of loops to the desktop, then to the GB Loop Browser for indexing. (Everything is submerged in the installation process.)
    I don't mind buying an iLife upgrade with a later version of GB, if that's what I need to do. But I wonder if the loops aren't in here somewhere?
    Thanks for any help to this bonehead!
    Rick

    That was it! Perfect! Thank you!
    Thing o' beauty, in'it?
    And did I mention I would probably feel like an idiot?
    Naww, don't be silly, if you were an idiot my post would have been meaningless to you.
    Glad it helped, and glad everything is working for you! Have fun.
    --HangTime [Will Compute for Food] %-|>
    (BTW, GB2 really is a brilliant upgrade from GB1. GB3 really doesn't add anything for music creators, but it does mean that used copies of GB2 might be found cheap. Just one nobody's 2¢ %-|> ) --HT

  • Good News Bad News and Loop question

    The good news is AP3 seems to be working great since I've cleared ALL cashes and started, re-started in safe mode.
    My one remaining problem is with the loop. It seems the more changes I make to my image the longer it takes the loop to kick-in. If no changes the loop magnifies in an instant but after adjusting wb,exposure, enhance, sharpen and highlights & shadows the loop may take up to 10 seconds or longer to kick-in to focus.
    Anyone have a cure for this?
    Thanks,
    BobM

    A kan kwite offtun spell stuff rong but hoow wos it hoo spelt it rong int fust plays. Loupe ? hit kud b spelt reet burits prownownst rong. Mus bi French norengish. Iv yer avin trubul reedin dis its koz theyt not fur rarnd ere. Anyhow itwer sumut an nowt. Yo musta red it ur thy kudent a towed mi it wernt reet.
    Allan

  • HT2956 Unable to install new software, looping admin screen.

    I am unable to install new software on my iMac, I enter in the admin password and it doesn't progress to the installation screen, it just loops back to admin password entry. Please help

    Hi Kappy, this isnt the case, it accepts the password, I hit install and then the same screen pops up instead of proceeding to install the software. I even went in to check, change password and no joy

  • Removing Items While Using New For Loop

    Consider this:
    ArrayList<String> a = new ArrayList<String>();
    ... add some stuff ...
    for(String s : a) {
    // Do some stuff
    if(some_condition) {
    a.remove(s);
    This will cause a ConcurentModificationException the a.remove(s) is ever run. Is there anyway to call the iterator.remove() method instead? The new syntax is much cleaner, and I'd like to use it, but I need to be able to call iterator.remove()
    Anyone?

    I think the code should iterate through a, putting
    references to objects in an auxillary array and then
    the loop will go through the auxilary array rather
    than the original data structure. This perfectly
    reasonable, but different implementation results in
    drastically different results (the example above would
    work fine). I see this as an issue of these general
    language features being defined to close to the metal.
    Their semantics are defined by their implementation
    not by a sound language design decision that is
    agnostic to different implementations.The enhanced for loop is defined in terms of java.lang.Iterable, a very simple interface, which can be implemented in many different ways. You can't get much farther from the metal. The concurrent modification exception is a feature of particular implementations of that interface. If you don't like those implementations, use others that behave differently. For example, you could use one of the CopyOnWrite collections implementations in java.util.concurrent, which never throw a concurrent modification exception. Your suggestion to copy the elements into an array is one (inefficient) implementation mechanism for such collections.

  • Featured News: Prevent Looping

    Hello out there...
    I am using a Featured News widget to expose two articles. I would prefer the "Prev" and "Next" buttons to stop at beginning and end of the cycle. Currently, the Muse default for this widget allows the user to click "Next" or "Previous" when either at the beginning or end of the array creating a loop. Anyone know how to turn this looping ability off?
    Thanks in advance.
    s

    There is no way to stop the looping process. But you could remove the "Prev" button, thus having the user only navigate forward.

  • SET UP NEW IPHONE LOOP!!! PLEASE HELP!

    Hey everyone...
    Well i have an iPhone with major issues...
    It doesn't sync and apps crash etc...
    Anyway Apple are sending me out a new iPhone seen as though this has a list of things wrong with it...
    Anyway thats fine... Today i thought it would be an idea to back up everything so thats exactly what i did... just before i did this my iPhone froze So i thought i'de plug it into iTunes to restore it.
    While doing this i noticed the Set Up new iPhone pop up window - i ignored it...
    ANyway so i restored everything etc...
    I got a call answered it and everything was normal.
    I went to Sync when i was stuck in a continuous loop of "Set up New iPhone"
    After doing it 4 times i eventually gave up and rang apple...
    They couldn't really diagnose anything...
    If this has happened to anyone please let me know as i have alot of data on that phone which i'de rather not loose...
    Thanks.... =]
    Have a good night... =]
    Carl =]

    Disk Utility MAY or MAY NOT help
    It depends on a few things.
    1. Is the disk over heating, IF so then you need to wait for it to cool off.
    2. If its a bad cable (using a USB 1.1 cable with a 2.0 drive, broken internally, etc) then you may want to try a new cable.
    3. If its a file system issue then Disk Repair may fix it but if its serious then you may want to use DiskWarrior.
    DiskWarrior has saved my drive several times!
    I would recommend trying the following in this order.

  • Can't get the new for loop to work

    public class newforloop
    public static void main(String args[])
    String[]Student={"backpack", "id", "pencil"};
    String word="";
    for(String i:Student)//I get an error here
         if(i.equals("pencil"))
              word=i;
    System.out.println(word);
    I tried doing this at school and it worked but when I go home to fiddle around with it I get an error. I asked my friend and he said to update JAVA so I asked him which one do I download and he wasn't sure because download like everything. So my question is, what do i download? I see a whole bunch of things but I'm not really sure, and I don't want to download each and everyone one of those.
    Im using JCreator.

    I believe the "For every" loop was implemented in Java 5.0 .. so you probably have Java 5 on the school computer, but not on your home computer. Just download the Java 5 JDK from the downloads section.
    http://java.sun.com/javase/downloads/index_jdk5.jsp

  • New Apple Loops aren't showing in Loops Library.

    After adding gigs of sample libraries to the Apple Loop folder this morning, only the drums/drum kits of those libraries are showing in Logic's loop library. I've already deleted all of the index files, reindexed the library several times, and it's still not showing anything other than drums, even though in Finder, all of my samples are there. AIFF and Wav.
    My sample libraries added prior to this morning still work. I have over 120 gigs of samples. I'm not sure if Logic has issues with large libraries or not, but this is a bit frustrating. Maybe someone can help? Thanks.

    It does not work. Mav even if the files are converted to AIFF it can only be seen in the Apple Loops Utility. You can not see them in Loops browser in Logic.
    Give me better way !

  • Starting new while loop while old one still running

    Hi!
    I am attempting to write video images to AVI files. I want to give the user the option to decide when they want to begin to capture the images. I place the "start recording" button in one loop and the image acquisition and AVI Write subVIs in another loop. LabVIEW won't allow me to continue on with the image acquisition loop until I finish with the "start recording" loop. Any ideas how to fix this (to allow the image acquisition to start and continue having LabVIEW check for a button press on "start recording")?
    Attachments:
    Capture_and_Save_as_AVI.vi ‏177 KB

    Thanks. I suspected as much. In any event, I can't seem to find a good configuration of while loops and case structures which will produce the desired results. I want to start acquiring images and allow the user to choose to start recording at any time he desires. This issue is further complicated by the fact that the status of the "Start recording" must be checked at all times, but only initialized once, while the AVI Write Frame depends on that first initialization step but must be looped continuously aferwards in order to 'keep up' with the images being acquired. In the newly attached example, I placed the case structure inside the image acquisition while loop and the avi write frame inside a while loop inside of that case structure. unfortunately,
    labview decides to stay inside the avi write frame while loop after entering, instead of returning to the image acquisition while loop. i can't place the avi write frame inside the general image acquisition while loop because then labview will think i want to initialize the avi write frame right away and will return an error when avi write frame isn't provided with an avi refnum. Ideas?
    Attachments:
    Capture_and_Save_as_AVI.vi ‏174 KB

  • Is it possible for me to get all the new garageband loops without updating to the new garageband?

    The question is in the title.

    Only if you have a backup that contains the stuff you lost. Else it is gone forever.

  • Old expansion pack loops won't show up

    Installing the new Garageband has been nothing but a headache.
    My main problem if that I can't get loops from older expansion packs to show up. I believe I've located my current new loops library and they're all .caf files while my old ones are .aif files. I've tried pasting my old .aif files into the new apple loops folder, but they don't show up. Is there a way to get both to show up - or is there some way to switch back to the old ones?
    Also - at some point I did something that makes a lot of instruments and settings show up twice.
    I'd love to get both issues resolved, but the first is the most important for me cause I can't use some of my favorite loops.

    It doesn't matter where you keep your loops, you don't have to have them all in one folder. Just drag the loops you want to add into GB's loop browser, they will be indexed and are available afterwards.
    As for your settings: Locate the files in the Instrument Library folder and just delete the duplicates – it should be fine then after you restart GB.

  • Installing loops

    I hope someone can help me. This is my first day an a Mac, and Im frustrated beyond belief.
    I can see my "garageband" loops in the loop browser, but not the Acidfanatic loops I just downloaded. I copied the Acidfanatic loops to Macintosh HD/Library/Apple Loops/Acidfanatic. (I created the Acidfanatic folder.) When I browse to that location in Finder, I can see all the Acidfanatic loops. But when I use the search in Finder, it doesnt find them. After I copied the Acidfanatic loops from the image file to the folder path I described above, I dragged that folder to the loop browser in Garageband. It seemed to install. It asked me for my password and briefly said it was calculating a new index or something like that. But I still cant see the new Acidfanatic loops in the loop browser or in a Finder search.
    Any ideas?

    You are right on the point.
    Download the Apple loops software from this link: ftp://ftp.apple.com/developer/DevelopmentKits/Apple_Loops_SDK1.3.1.dmg
    It will allow to convert the wave loops to aif loops.

Maybe you are looking for

  • How can i verify from my Apple products ,iPhone .iPad .iPod , macbook ? !

    i note that they are some websites recommend to visit  http://www.apple110.com/iphone-check.php for verification of Apple products ,iPhone .iPad .iPod  , thus by entering the serial number of your product in this website . and they claim that by doin

  • N97 Mistery of dual flashLED

    Hi guys, i just bought my new nokia N97 white. I found a problem with the flash led. So i want to know whether its just me, or all the N97 in the world (Fatal Design Problem). Check out the photo in the attachment. The problem are, when i use my expe

  • Can't get to all the loops

    still same question as before

  • Does Norton Toolbar Work in Firefox 11

    Does Norton Toolbar Work in Firefox 11?

  • Time Management Problem

    Hi Guys This issue is faced by one of friend ,please any suggestions are appreciated . What is the  upload program to move all personal paid leave (85) to vacation leave (04)?? Do we have any upload program for this ,never heard like this ,Though 85