How combine many Itabs into one final Itab

hi friends,
i want 2 combine 4 internal tables to 1 final table
which r it_vbak it_vbap it_vbuk it_vbep it_likp.
here each itab contains vbeln.
from it_vbak-vbeln  we are fetching values into other itabs
and remaining fields r different from one itab to another
so at last in it_final = it_vbak + it_vbap + it_vbuk + it_vbep + it_likp.
can any one guide me in this.
regards,
Anil kumar P

In addition to earlier reply also SORT the tables and use BINARY SEARCH and SY-SUBRC checks
SORT it_vbak BY VBELN.
SORT it_vbap BY VBELN.
SORT it_vbuk BY VBELN.
SORT it_vbep BY VBELN.
SORT it_likp BY VBELN.
LOOP AT it_vbak.
MOVE-CORRESPONDING it_vbak TO it_final.
READ TABLE it_vbap WITH KEY vbeln = it_vbak-vbeln BINARY SEARCH.
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING it_vbap TO it_final.
ENDIF.
READ TABLE it_vbuk WITH KEY vbeln = it_vbak-vbeln BINARY SEARCH.
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING it_vbuk TO it_final.
ENDIF.
READ TABLE it_vbep WITH KEY vbeln = it_vbak-vbeln BINARY SEARCH.
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING it_vbep TO it_final.
ENDIF.
READ TABLE it_likp WITH KEY vbeln = it_vbak-vbeln BINARY SEARCH.
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING it_likp TO it_final.
ENDIF.
APPEND it_final.
ENDLOOP.

Similar Messages

  • How to combine many rows into one row

    Hi all,
    I have a question regarding to how to combine many rows into one row?
    My result set is like that:
    ITEM_NO NAME1
    11 abc
    11 cde
    11 fg
    Want to combine them into
    ITEM_NO NAME1
    11 abc;cde;fg
    would anybody can tell me how to do that? Thanks
    Ray

    You can check this --
    satyaki>
    satyaki>
    satyaki>create table t
      2  as
      3      select 11 ITEM_NO, 'abc' NAME1 from dual
      4      union all
      5      select 11 ITEM_NO, 'cde' NAME1 from dual
      6      union all
      7      select 11 ITEM_NO, 'fg' NAME1 from dual;
    Table created.
    satyaki>
    satyaki>
    satyaki>
    satyaki>set lin 10
    satyaki>
    satyaki>desc t;
    Name              Null?    Type
    ITEM_NO                    NUMBER
    NAME1                      VARCHAR2(3)
    satyaki>
    satyaki>
    satyaki>set lin 1000
    satyaki>
    satyaki>
    satyaki>
    satyaki>SELECT ITEM_NO,
      2         LTRIM(MAX(SYS_CONNECT_BY_PATH(NAME1,';'))
      3         KEEP (DENSE_RANK LAST ORDER BY curr),';') AS NAME1_DET
      4  FROM   (SELECT ITEM_NO,
      5                 NAME1,
      6                 ROW_NUMBER() OVER (PARTITION BY ITEM_NO ORDER BY NAME1) AS curr,
      7                 ROW_NUMBER() OVER (PARTITION BY ITEM_NO ORDER BY NAME1) -1 AS prev
      8          FROM   t)
      9  GROUP BY ITEM_NO
    10  CONNECT BY prev = PRIOR curr AND ITEM_NO = PRIOR ITEM_NO
    11  START WITH curr = 1;
       ITEM_NO  NAME1_DET
            11  abc;cde;fgRegards.
    Satyaki De.

  • How combine book cds into one fi

    I use my zen primarily for audio books. When I rip them from cds, and upload them to my zen, it shows each cd as a separate album. Long books will show up as 5-20 separate albums. This is a pain when I have 0 books on my player -- I have to scroll through so many "albums" to find the one I want to play.
    When I download books from the net, they combine and show up on the zen as one album, so they are much easier to deal with.
    I have tried changing the ripping software settings -- trying various combinations of file names and playlist names, but nothing seems to work.
    Does anyone have a method of ripping multiple cds and having them show up on a zen's"albums" file as one album?
    thanks.

    I tried the playlist idea, but on my zen "albums" it still showed one album per disc, rather than combining them into one "album" , and within "playlist" it only brings up one cd's tracks.
    The second idea, changing the album name using properties:? if I change to one single album name, then the tracks are all mixed up - track from disc - track from disc 2 - track from disc 3, etc.
    I thought if I used the same album name, but tried to play around with the track name, maybe I could get the sequence right. That is, if I could get the track name to include the disc # first, then the track number, they would line up correctly:? 0 0, 0 02, 0 03. (with?the first?number?being the disc #, and the second # being the track #.).
    If I could do that, then all the tracks would have the same album name so there would only be one listing in "albums".
    All the tracks from all the discs would show up in that single album listing, but the software used on the?zen would arrange the tracks first by disc # then by track # -- in the correct order to play them all.
    The track names are created when you rip the cds -- and I think I have tried all the various combinations, but cannot get the software to create the right "track name" to make this work.
    Does anyone have any idea how to do that within the ripping software?

  • Combining multiple layers into one "final image" then working on each layer's opacity to affect what the final image looks like

    Ideally the "final" image would be displayed.  I'd go over to the layers panel and work on each layer, dialing up and down the opacity and see the effects on the "final" image.  This is in regards to interior real estate.  Normally I combine my images in Photomatix (different exposures) and have that method down.  But what I'd like to be able to do is to, say, strobe different areas of the scene while shooting maybe six images (same exposure), load those six into CS5 (File>Scripts>Load Files Into Stack) then proceed.
    I've looked at a ton of videos on Youtube and searched CS5 Help and just can't find the answer to what exactly what I'm trying to do.  I can choose Edit>Auto-Blend Layers and that does indeed give me a final image (like in Enfuse or Photomatix) but I haven't found a way to then adjust each individual layer to affect that final image.  And I know there's a way, maybe coming at this from a completely different direction.  Thanks.

    Ok I will take the last question first, since that is probably the easiest.end
    A merged file or a flattened file is the same thing as a composite.
    A merged file still has its transparency and data that is outside the canvas area.
    A flattened file is a merged file that is converted to a background layer that does not support transparency or data outside the canvas.
    A composite can be a merged copy of the existing layers if you use the multiple key strokes I mentioned above. Whereas a merged file is a composite of the original layers. So I personally use the term composite to mean a copy as merged and flatten already explain that process, no need to give them an additional term to mean the same thing.
    Generally blend modes work by selecting individual layers before changing the blend mode. However you can group the layers or convert them to a smart object and apply a blend to that group or object.
    Normally you set the blend mode as you work on each layer. But you could set all of them to overlay or reduce the opacity to 30 or 50 percent to see through all the layers, then adjust them later on.
    I am not sure how it works on the mac, but on windows you can select the blend text box then use the up and down arrow keys to change the blend mode to see how it looks.
    I recommend that you go through the free videos on layers, masks, opacity, and layer styles. This will help you dramatically. Also a few books on the subject will help has well.
    (free)
    http://creativesuitepodcast.com/
    http://kelbytv.com/
    http://tv.adobe.com/
    http://www.youtube.com/
    (pay)
    http://kelbyone.com/
    http://Lynda.com

  • How to combine many rows into 1 rows in 1 column?

    Hi all,
    I have a question regarding to how to combine many rows into one row?
    My result set is like that:
    ITEM_NO NAME1
    11 abc
    11 cde
    11 fg
    Want to combine them into
    ITEM_NO NAME1
    11 abc;cde;fg
    would anybody can tell me how to do that? Thanks
    Ray

    Hi,
    select * from x2;
    INO NAME
    13 PQR
    11 ABC
    11 DEF
    12 JKL
    12 MNO
    11 GHI
    select p.ino as ITEMNO,
           substr(max(substr(sys_connect_by_path (p.name,';'),2)),1,60) as ITEMNAME
    from (select ino,name,
          row_number()over (partition by ino order by ino, name) rn
    from x2) p
    start with p.rn = 1
    connect by p.rn = prior p.rn + 1
    and prior p.ino = p.ino
    group by ino;
    OP
    ITEMNO ITEMNAME
    11 ABC;DEF;GHI
    12 JKL;MNO
    13 PQR cheers
    Nirmal

  • I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album?

    I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album? I was trying to move several albums onto a USB drive and it stated all other files exist at this location.  They are pictures taken at different times and have the same number I guess.

    In iPhoto albums may contain photos with the same file name - iPhoto handles that just fine
    If you are exporting them to move somewhere else use the sequential file name feature of export to give each file a unique name
    LN

  • How Do I Combine Several Images Into One Image Which Contains Links To A Series Of Web Sites?

    How do I combine several images into one such that the combined image contains a series of web links? In particular, I’d like to create such an image and put it into my Outlook email signature. At present, as per the image below, I have at least six separate images in my email signature with each image containing a web link. Is Photoshop the best tool for this job? Or would it be easier to do this in some other package? I have three packages at my disposal: Photoshop, Ilustrator and Dreamweaver. Can someone please explain in detail how I would do this? Or perhaps someone could direct me to a link that explains how to do this. Thank you.

    Thank you for that correction, Hobotor. I admit I hadn't thought about an image map, in the context of someone who doesn't seem to know HTML very well...  My thinking was running along the use of the Photoshop Slice Tool to get most of the way there...
    To expand on the above, if you were to slice up your image using the Slice Tool, say like this:
    Save for Web & Devices will create the HTML and save all the sub-images.
    Then you edit the HTML and add a (hypertext link) elements surrounding the various images.  Only thing is you'll have to set the border-style of the images to none.
    For example:
    <!-- Save for Web Slices () -->
    <table id="Table_01" width="554" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="10">
       <img id="Sig_01" style="border-style:none" src="images/Sig_01.jpg" width="554" height="56" alt="" /></td>
    </tr>
    <tr>
      <td colspan="10">
       <a href="http://www.GrahamsWebSite.com"><img id="Sig_02" style="border-style:none" src="images/Sig_02.jpg"
            width="554" height="43" alt="" /></a></td>
    </tr>
    etc.
    A full copy of the HTML and images can be found here...  View Source to see it as an example:
    http://Noel.ProDigitalSoftware.com/temp/Graham/Sig.html
    -Noel

  • How to combine .wmv files into one file???

    Hello Apple World,
    Can someone tell me a software that will allow me to combine ".wmv" files into one? I have several files that I need to combine then add music to. VERY simple with several software packages frow Windows pc's, but I'm struggling with this since getting my first mac! PLEASE help.

    Hi:
    How can I edit MPEG or convert DVD or MPEG to DV
    http://www.sjoki.uta.fi/%7Eshmhav/SVCDon_a_Macintosh.html#edit_convertMPEG
    Matti says it better than any of us:
    how/where you can join clips with Streamclip
    Also MPEG Streamclip guide explains it.
    MPEG Streamclip can join similar MPEG files: The joined files must have the same PIDs, the same start codes, and the same audio/video properties (that is, they must come from the same source or channel).
    Using "Convert to MPEG" before joining the files can be helpful, because it changes PIDs and start codes to a default value. The preferred method to join streams is to Copy one stream in MPEG Streamclip, open another stream and Paste it there. This method checks that the joined streams indeed are compatible. Another method is to put the MPEGs in the same folder, and rename them so that they sort as desired in list view. Then select them via MPEG Streamclip's "File/Open Files..." dialog box (Shift- or Command-click to select multiple MPEGs). Then choose "Edit/Fix Timecode Breaks". After this MPEG Streamclip should report the combined length of all MPEGs (check the Log Window if you want to know whether any timecode breaks were found). Then choose "File/Convert to MPEG... or /Save As..." to save them in a single file. If the video transition between two files looks bad, you can use the Cut command to improve it. You can join very different and incompatible MPEGs with this latter method so the end result is not guaranteed to work.
    MPEG Streamclip can also edit MPEG files. Just set In/Out points (with I/O keys), Cut unwanted material off and choose "File/Convert to MPEG...". You can also Cut/Copy selections to other parts of the same stream or open another compatible stream and Paste it there. Shift-dragging the playhead can also be used to define a selection. Option + arrow keys jump to the beginning/end or In/Out points. You can use the Trim-command to more closely see a part of the video before cutting, then choose Revert Trimming to see all material. JKL-keys can be used to enable fast forward or reverse playing. The scroll wheel works also; with the Option key it scrolls 1 second per click. See the manual for more details on how to jump in single frame, GOP, 1 second, 10 second or 1 minute chunks when searching a specific spot in the video.
    Editing and trimming can be accurate only if In and Out are both on keyframes because MPEG Streamclip edits to the GOP, not to the frame. For DVD and (XS)VCD the maximum GOP size is PAL 15 and NTSC 18 frames, so the editing accuracy can be up to about 0.6 seconds. You can advance to the previous or next keyframe (i.e. I-frame, the beginning of each GOP or Group Of Pictures) with the Up/Down arrow keys -- you can also use the Edit/Go to Keyframe command to see where the In and Out points really are when editing (the In point is included in the selection, the Out point is not included). Shift + Up/Down arrow keys allow fine-tuning the selection to the GOP.
    Sue

  • How do I combine two regents into one in Logic Pro Arrange?

    how do I combine two regents into one in Logic Pro Arrange?

    Thanks for your input kcstudio. I would still be left with 2 regions although one after the other, on one track.
    I am trying to save steps of the way I am combining the info of 2 seperate regions into one: bouncing the 2 tracks then re-importing that audio back into the project. It would save a lot of time if you could just drag one region on top of the other
                                W.W.

  • How do I combine several pdfs into one document?

    I just switched to Yosemite, and now I cannot figure out how to combine several pdfs into one document. I rarely need to do this, so I looked at past tutorials, but nothing seems to work. Help!

    I don't understand - I've just tried it and it worked. I had 2 multi-page pdfs, opened both in Preview, followed my earlier post and saved the new pdf. The saved file is multi-page
    Odd

  • How to combine mutiple tracks into one album in itunes 12

    How to combine mutiple tracks into one album in itunes 12

    Make sure they all have the same Album Artist and Album Name.

  • HT4059 I'm trying to organize my PDFs in iBooks on my ipad2 and I can't figure out how to combine multiple PDFs into one. Any thoughts?

    I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?

    I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?

  • How to coalesce many rows into one?

    I am using SSMS 2008 R2 and am simply trying to coalesce many rows into one. This should be simple I think, but it is currently repeating data in each row. Consider:
    create table test
    Name varchar(30)
    insert test values('A'),('B'),('C')
    select * from test
    select distinct Name, coalesce(Name + ', ', '')
    from test
    How can I rewrite this to achieve one row like: A,B,C
    Ryan D

    Or as a variation
    Declare @S varchar(MAX)
    set @S = ''
    select @S = @S + ', ' +Name
    from test
    Select substring(@s, 2, length(@s))
    Would be interested to know performance difference between this style and the XMLPath used by Naomi though. The XMLPath technique certainly looks cleaner
    A samll correction for RyanAB's solution:
    Select substring(@s, 2, len(@s))
    For more information about Len(), please see:
    http://technet.microsoft.com/en-us/library/ms190329.aspx
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • How to combine video clips into one video clip using FCPX

    I typed this into the search engine but could not come up with anything. How do you combine Video clips into one Video clip using FCPX? Thanks in advance.
    Gar

    The simple answer is to put the clips together in a project in the desired order and export (oops, the new word is share [YUK!]) a master file.
    But maybe you should say a little more about the clips to determine whether the answer I've given is relevant to yor situation.

  • HT4759 How do I combine two accounts into one

    How can I combine two accounts into one account

    If you are talking about iCloud accounts, you can't.
    Or you could tell us what type of accounts these are?

Maybe you are looking for