Fastest way to move from one itab to another?

What is the fastest way to move one internal table to another internal table (assuming two tables of similar structure)?
a) append lines of table1 to table2.
b) loop at table1.
Move: table1-field1 to table2-field1,
table1-field2 to table2-field2.
Append table2.
Endloop.
c) table2[] = table1[].
d) loop at table1.
Move-corresponding table1 to table2.
Endloop.
e) move table1 to table2.
I think it is option a). Is it correct?

Hi,
Yes option a. is fastest : append lines of table1 to table2
In particular, the quickest way to fill a table line by line is to append lines to a standard table, since a standard table cannot have a unique key and therefore appends the lines without having to check the existing lines in the table.
APPEND LINES OF inttab1 TO inttab2.
This statement appends the whole of ITAB1 to ITAB2. ITAB1 can be any type of table, but its line type must be convertible into the line type of ITAB2.
This method of appending lines of one table to another is about 3 to 4 times faster than appending them line by line in a loop. After the APPEND statement, the system field SY-TABIX
contains the index of the last line appended. When you append several lines to a sorted table, you must respect the unique key (if defined), and not violate the sort order. Otherwise, a runtime
error will occur.
Reference : SDN ABAP Book.
thanx.

Similar Messages

  • To move from one itab to another

    data:  it_pos    LIKE rfposxext OCCURS 1 WITH HEADER LINE,
    hi  all..............
    LOOP AT it_bseg_t INTO wa_bseg.
          it_pos-bwwrt  =    wa_bseg-dmbtr.
          it_pos-hkont  =    wa_bseg-hkont.
          it_pos-augdt  =    wa_bseg-augdt.
       IF it_pos-hkont = '0000207500' and it_pos-augdt NE '00000000'.
          it_pos-vertn = 'Cleared'.
             move it_pos-vertn to var.
           Elseif wa_bseg-hkont = '0000207500' and it_pos-augdt EQ '00000000'.
               it_pos-vertn = 'opened' .
             move it_pos-vertn to var.
        Endif .
          APPEND it_pos TO it_pos.
          CLEAR: it_pos.
        ENDLOOP.
      ENDIF.
    i want to move that it-vertn to it_bseg loop ....how can i do it ....its bit confusing pls help
    LOOP AT IT_BSEG WHERE BELNR = IT_POS-BELNR.
    READ TABLE IT_POS  WITH KEY HKONT = IT_POS-HKONT AUGDT = IT_POS-AUGDT.
    IT_BSEG-MSG = IT_POS-VERTN.
    APPEND WA_BSEG TO IT_BSEG .
    ENDLOOP.
    thank u so much

    Better way...
    FIELD-SYMBOLS: <FS_BSEG> LIKE LINE OF IT_BSEG,
                   <FS_POS> LIKE LINE OF IT_POS.
    LOOP AT IT_BSEG ASSIGNING <FS_BSEG>.
    READ TABLE IT_POS ASSIGNING <FS_POS>
    WITH KEY BELNR = <FS_BSEG>-BELNR.
    IF SY_SUBRC EQ 0 AND <FS_POS> IS ASSIGNED.
    <FS_BSEG>-MSG = IT_POS-VERTN.
    ENDIF.
    ENDLOOP.
    Greetings,
    Blag.

  • Images I move from one folder into another are disappearing, at first it was occurring immediately if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location.

    Images I move from one folder into another are disappearing, at first it was occurring immediately and only if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location. A few of these images had copies in another folder that remained and the ones I couldn't find may or may not have ever had copies. I had backed up my system with time machine recently as well, so I went into the backup to retreive the lost images. When I searched and found the backup copies I got the error "the file alias cannot be opened because the original cannot be located". The crazy thing is that the images that remained on my computer did not give me the same error and opened like they should.
    In short images that I am creating, saving, and using are disapearing so epically that even time machine versions are affected when retrieval is attempted. Any suggestions as to what I could be doing wrong without realizing it? Or perhaps other people have had similar bugs that are software related and have a solution?

    Hi Kevin,
    I understand what you tried to do but it doesn't work that way. Swapping drive names will just mess things up.
    You should be able to reconnect the files though: in the Locate Referenced Files dialog make sure you click the Show Reconnect Options button — this will give you access to all the connected drives. Locate one of the files and hit Reconnect All. Should do the trick.
    Best

  • Transferring home movies from one computer to another

    What is the best way to do this? I have about 500 video clips that I want to move from one computer to another. I've tried using the export function in iPhoto but all I get upon transfer is a single frame of the movie. I keep the files on an external HD but I can't find where they are stored. I see the iPhoto app to open but not the original files. Additionally, whenever I do locate these files, how can I get them transferred with the keywords assigned to them? TIA! Going from a MBP running 10.6.8 to a MBA running 10.8.2

    I'm not sure you can assign keywords to a movie on export, as these are written to the exif metadata of a photo and most video has no such metadata.
    You say you've tried the export function in iPhoto, but what settings have you used? Exporting with the Kind set to Original should yield the videos.
    Regards
    TD

  • HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES

    HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES IN AN ADDRESS BAR

    Please check before posting that you have not accidentally turned on the CAPS LOCK feature of your keyboard.
    To answer your question. You can't do that. There are alterate ways to solve this sort of problem. What exactly is the nature of the problem you are seeking to solve?

  • HT1688 Messaging does not let me move from one conversation to another without going to the contact info of the person and choosing "send a message", then I can continue the conversation. I'm sure it's a setting I have made by mistake, but can't figure it

    Messaging does not let me move from one conversation to another without going to the contact info of the person and choosing "send a message", then I can continue the conversation. I'm sure it's a setting I have made by mistake, but can't figure it out

    Hi Elaine
    Here si what I do:
    Since I tend to message with teh same people I leave the messages available to me.  If you are in one conversation with "Karen"  and want to message with "Kathy" tap the message back arrow and select Kathy.
    As always just be careful to rememeber who you are messaging to!

  • How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    Try running Pandora in its own tab and leaving that tab open (Safari 7.1.5, OS 10.9.5).  I don't have Pandora to try this, but it works for me otherwise.
    Good luck
    srb

  • Why the menu to move from one page to another is not seen when the page is online?

    On my web, I have different pages like 'Homepage' or 'Contact' but when I publish my web I can not see the menu.
    why the menu to move from one page to another is not seen when the page is online?
    Thank you,
    Roger.

    Where are you publishing and how are you uploading the files?

  • Tutorial to Move from one iPhone to Another

    Would anyone happen to know of a good source to give a step-by-step tutorial of how to move from one iphone to another?  (move from iphone 4 to iphone 5).  Would like to get myself familiar with this process before I have to do it on Friday, Sept 21st.  Thanks for your help and suggestions.

    iPhone- Transferring information from your current iPhone to a new iPhone. Basically, sync your old phone with iTunes. Then sync the new phone.

  • Why the screen flickers and moves from one app to another by itself without being touch?

    Why the screen flickers and moves from one app to another by itself without being touch?

    Have you tried a reset to see if that fixes it ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • HT1657 how do i move movie from one device to another

    how do i move from one device to another

    Ahh, Ok. I actually had to go to Lynda.com to watch a training video of this highly bassackwards maneuver, but now I have it. In other words, while the intuitive thing is to make a new event to hold the clip you want and then open the old event and drag the clip into it's new event, the only way to accomplish this maneuver is to NOT create a new event, but rather, go to the clip AFTER the one you want to move, select it and then Right-Click on it and select SPLIT EVENT BEFORE SELECTED CLIP (or go to FILE>SPLIT EVENT BEFORE SELECTED CLIP). Then you wait a few seconds while the program thinks a bit (no feedback it is doing this - just a pause) and then it automatically creates a new event with the clip you wanted. Now just double-click the new event and name it something meaningful.
    Thanks for your help!

  • Can I transfer rented movies from one computer to another?

    I am posting this message as every time I try to transfer rented movies from my PowerBook to my iPod get the following message.
    Attempting to copy to the disk "Michael Graham's iPod" failed. The disk could not be read from or written to.
    I have gotten this message with an iPod Classic, as well as an iPod Touch, so don't think it is the iPod, but can not be sure of that. Also have posted a message about this in past, but none of the suggestions seemed to help. In addition Apple seems to be no help. In any event if I use my dad's Mac Mini to transfer the rented movie I do not get this message. In any event I just wonder if their is any way to transfer rented movies from one my laptop to his desktop, so I then came transfer to my iPod Touch.
    Thanks in advance
    Michael

    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
    Copy Photos (& Videos) Between iOS Devices
    http://tinyurl.com/cnz95bc
     Cheers, Tom

  • DCs to move from one tract to another track

    Hi,
                  We have two tracks one is in DC0 and the other is DC1.
                   We have done lot of developments in the DC0 track and now we need to move this code
                   from DC0 track to DC1 track.
    Please let me know how to do this.
    Thanks,
    Anilkumar

    Anilkumar
    Your request to export import single DC from one track to another is unusual.
    It is usually SCs that needs to be moved.
    Explanation:
    The SAP approach to the software development is that you create SCs and develop DCs inside these SCs. DCs stays within their SCs for good.
    If another DC(1) needs to use original DC(0) then:
    - if DC(1) is in the same SC and DC(0), than DC(1) uses DC(0) via pub parts
    - if DC(1) is in SC(1) and DC(0) is in SC(0) (same or different track - des not matter), SC(1) should declare SC(0) as required. SC(0) should be imported to the same track as SC(1).
    There is never a need for DC to jump between SCs, because it makes it impossible to make any sense of version tracking and dependencies after that.
    If you need an entire SC with all the DCs to come over to another track, there are two ways:
    - create a new track and import assembled SC;
    - copy old track to new track and import assembled SC
    It has been discussed several times in forum like this:
    Re: Copying a track in JDI
    Regards,
    Slava

  • Just bought and installed Elements 12.  How do I move from one photo to another once I'm done editing??

    Just bought and loaded Elements 12... How do I move from one photo to the next, once I'm done editing??  HELP!!

    If they're already open, just double click the one you want in the photo bin at the bottom of the screen.

  • Streaming Movie from one iMac to another

    I hope this is a quick issue.
    I have had a Mac Mini for several years connected in our family room to a Sony TV. We use iTunes to watch movies and it works very well.  I have a 2 terabit external drive (iomega) with Firewire, but at this point the Itunes library is on the Mac Mini's hard drive.
    I have another mac (27 inch) which has a larger hard drive and a Thunderbolt 6 TV Raid (3 tb mirror).  I curently have the itunes library on that mac located on my 256 gig SD drive (second hard drive is 2 TB disk). 
    I was planning on moving the itunes library to the RAID and running movies in the family room via home sharing.
    So last night we tried to watch a movie stored on my SD drive accross the wired network to the family room. It played fine for about 5 minutes and then just stopped.  When I tried to restart the movie the Mac Mini said I could not because home sharing was not on!  I checked it was.
    I then used the finder to log onto that mac again and the movie showed up in the shared section on iTunes but again would not play for more than a few minutes.
    So what am I doing wrong?
    I was considering getting an Apple TV for the bedroom, but if I cannot successfully stream a movied from one mac to another on the WIRED network, what chance will I have with a WIFI connected Apply TV??
    Mike

    Found the problem.
    D'ooh
    Had wifi and wired network connection running!
    I turned off wifi on the Mac mini and it works fine.
    Also tested wifi streaming with a Mac book and it works fine.
    Mike

Maybe you are looking for

  • Calendar date & net due date (FI) PAYMENT TERMS - OBB8 Vendor Invoice

    I read many posts on SDN forum about the topic. Anyway, I didn't find a simple solution for that. My aim is is to calculate a net due date based on working days. So, If I've got a 30 days document days payment term  ("Deafult for baseline date" = Doc

  • Infotype Creation in R/3

    Hello All While checking to see if any new infotypes need to be created or populated before going ahead with the configuration, since I am on R/3 4.7 , they do not have any infotypes pertaining to ECM. But since we would be using Comp Management in M

  • Bookmarks imported from IE has folders but are all empty (win7 64 bit)

    bookmarks imported from IE shows folders, but all folders are empty and there are no bookmarks at all. IE8.0.7600 to FFox3.6.3 on win7 64bit

  • Imac OSX 10.4.11 Not booting- Can't find a solution!

    Hello all! I am resigned to posting this question as after 4 days of scouring the forums I have still not found a solution for the problem. It started when Safari was always freezing up and slowing down the imac. We tried to run an update, and when w

  • Download the J2EE AVK for FREE

    Not again! What's that link doing on the "New To Java Technology Page"...Seesh...