Combine 2 internal tables into a single internal table

Hi
I need to replace the following join statement by splitting it into 2 select statements and then combine them into a single internal table
SELECT  vbak~waerk
vbapvbeln vbapposnr vbapnetwr vbapbrgew
vbap~erdat                         "IM152805
INTO CORRESPONDING FIELDS OF TABLE l_t_orders
FROM vbak INNER JOIN vbap ON vbakvbeln = vbapvbeln
FOR ALL entries IN t_mchb
WHERE vbap~vbeln = t_mchb-vbeln
AND vbap~posnr = t_mchb-posnr.
Need to replace the above with separate select statements and then combine the result into a single internal table...
could anyone please help me...
thanks in advance

Hi,
Check the code below,
select vbeln waerk
from vbak into table it_vbak for all entries in t_mchb  where vbeln = t_mchb-vbeln.
select posnr
     netwr
     brgew
     erdat "IM152805
INTO TABLE it_vbap
for all entries in t_mchb
where vbeln = t_mchb-vbeln
and posnr = t_mchb-posnr.
loop at it_vbap into wa_vbap.
read table it_vbak into wa_vbak where vbeln = wa_vbap-vbeln.
if sy-subrc = 0.
l_t_orders-waerk = wa_vbak-waerk.
l_t_orders-vbeln = wa_vbap-vbeln.
l_t_orders-posnr = wa_vbap-posnr
l_t_orders-netwr   = wa_vbap-netwr.
l_t_orders-brgew   = wa_vbap-brgew.
l_t_orders-erdat   = wa_vbap-erdat.
append l_t_orders.
endif.
endloop.
Reward if it is helpful.
Regards,
Bhanu

Similar Messages

  • Acrobat XI PRO: Create a Table of Contents (TOC) automatically in top, after I have combined several pdf.files into a single pdf.file

    Hey
    I have now tried for hours, but now I give up!
    MY WISH -
    Create a Table of Contents (TOC) automatically after I have combined several pdf.files into a single pdf.file.
    I have already bookmarks, shown on the screen (see screenshot below) but I want those bookmark to be visualised in a separate TOC in the top of the combined files.
    This new TOC (which I have inserted) shall be printable and serve as a cover page in a binder.
    I have seen other cheap pdf.programs in the market (e.g. PDF Converter Professional 7.3) which are able to make the above things, easy, fast and nice.
    Regards
    Ole Bünger, Kristianstad Sweden

    Somewhat roundabout way but this should work:
    Is there easy way to print bookmarks Acrobat Pro 9.5

  • How do I combine several pdf files into a single file (MAC OS)?

    How do I combine several pdf files into a single file ?
    MAC OS 10.6.8
    Adobe Reader 11.0.10
    Signed: Ken, in Utah

    Not possible with Reader. You need Acrobat or a subscription to something like PDF Pack to do it.

  • How do you combine 2 mono tracks into a single stereo track?

    Question here:
    How do I combine 2 mono tracks into a single stereo track in Logic?
    I recorded using my left and right out of my keyboard to a hard-disk recorder (Korg d888). The files are made as two separate wav files. Is there way to combine these in Logic so I can treat it as one stereo track?
    I have several files to do and am hoping Logic has something like a "combine tracks to stereo track" tool or something.

    Solo both tracks and bounce them with no effects and faders at 0 dB.

  • How do i combine multiple pdf file into a single pdf file?

    how do i combine multiple pdf files into a single pdf file?

    The thread was started in early March and it's Mid-April, I know this very well. The OP of this thread posted a very common and simple question or maybe he/she would have resolved this. For an Adobe Acrobat user it's not at all difficult to combine multiple PDF files into one. But to combine PDF files full version of Adobe Acrobat is mainly required, otherwise PDF files can't be combined. For example, I'm using Adobe Acrobat 9 Pro. These simple steps are mainly required to combine PDF files:
    Open Adobe Acrobat.
    Click on Combine and click on Merge files into a single PDF.
    A window will be appearing, click on Add Files and select the PDF files you want to combine.
    Arrange the selected files in any order with the help of Move Up and Move Down button.
    Now click on Combine File and the selected PDF files will be combined within a few seconds.
    A new PDF file will be created. Click on Save As and name this new PDF file. Then, click on Save.
    A new PDF file will be created and all the selected PDF files are combined in it. The steps shown above might be different in other versions of Adobe Acrobat. Other than this, some third-party PDF merge software are also available. Most of them are available with a demo version for free evaluation. I've heard much about SysInfoTools PDF Merge software on other forums and directories and it's demo version is freely available. One may check its demo version if Adobe Acrobat (full version) is not available.
    Regards

  • Is there a way to combine their query results into a single function

    say I have a bunch of functions that return a query:
    <cffunction name="getDeals" access="remote"
    returntype="query">
    <cffunction name="getDeals2" access="remote"
    returntype="query">
    is there a way to combine their query results into a single
    function that returns a struct of the various results?

    Umm, it's probably more suited to an array - effectively
    making it into a list of queries. You'd then loop the array and
    output each.
    I use a similar approach when creating system messages to the
    user. Most of my functions that are called do their bit, then at
    the end call another function I call "messages". This function
    grabs whatever my function sends and appends it to a messages
    array.
    This way enables me to output a long list of messages -
    because I could be calling several functions at the same time. If I
    just output a message from each function, each one would overwrite
    the other. So I'd get one message at a time.
    Immediately after it's output, I then destroy the message
    array so that old messages aren't kept inside of it.
    Mikey.

  • How to combine 2 spool id into a single PDF file

    Hi,
    I need to combine 2 or more spool id into a single PDF file.
    i.e the downloaded PDF file should contain the data of all the specified spoll ids
    Thank U
    Narendra

    Hi,
    Use FM "RSPO_RETURN_ABAP_SPOOLJOB" to get the spool into internal table.
    Append the internal table with data of another spool & then pass the internal table to the FM mentioned in above reply.
    Best regards,
    Prashant

  • How can I combine multiple icloud calendars into a single published calendar?

    I have several calendars in Ical where I map my activities and schedules. Like many I need several calendars to categorise events.
    Now, I'd like others to see when I'm free and when I'm unavailable. For this, I'd need to find a way to copy multiple Icloud calendars into a single one for publishing - and the published calendar would also have to sync to any update I make in the original calendar.
    Any way to make this happen? Any third party app? Tried a couple - they were outdated and / or cumbersome.
    If only there was a "smart calendar" tool in Ical …

    It worked - up to the crucial point: after combining icloud calendars into one "on the machine" calendar, the latter is ready for going public. But of course - this public calendar will only contain the .ics files and will not sync for updates from the icloud calendars.
    And that's what I want.
    If this problem is not possible to solve with the software available in the Mac - is there any known third party solution for this?
    (Apple: "smart calendars" please!)

  • Can you combine multiple itunes accounts into a single one?

    I set up separate itunes accounts for my (2) sons (8 & 10) because one had an iPod and the other had an iTouch. 
    They just got an iPad for X-mas (that they'll share) ... I want to set up the iCloud and create a "joint" account. 
    Is it possible to combine their multiple itunes acounts into a single account?

    This is all i know but all you can do is just creat a new one for them both and send all the stuff to the one think u can do that i hope it helps

  • Combine multiple CSV files into a single multi-column CSV file

    Hey Scripting Guy!
    I have what is probably a simple issue, but I haven't been able to find the right answer.
    I have 18 CSV files that each contain the same header and a single value as shown below:
    "Sum"
    "90"
    These files are the results of SMTP traffic by domain.
    All I want to do is to combine the 18 CSV files into a single file with the content of each file in a separate column, using the file name as the column header.
    For example:
    file1.csv
      "Sum"
      "90"
    file2.csv
      "Sum"
      "325"
    file2.csv
      "Sum"
      "3534"
    The desired ouput is:
    "file1.csv","file2.csv","file3.csv"
    "Sum","Sum","Sum"
    "90","325","3534"
    I don't need to row of Sum's if it is easy to leave out.  It would be even better if this could be put into an Excel spreadsheet.
    Thanks for your help!

    Can you post your script?
    If you are not a technician and do not want to write a script then you should try hiring a consultant.
    If you want to learn how to write a script then start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    By the way...your request makes no logical or technical sense.  What is the point of doing this?  There is no relationship between these files.
    ¯\_(ツ)_/¯

  • How to combine  two user prompts into 1 single prompt from two Webi Queries

    Hi All,
    I developed a single webi report from two different queries on top of 2 BW OLAP universe .
    Here I have one user input prompt for each query so I want to combine them into one single user input promt which  should pass the user input value to both the Webi queries feeding data to the  single webi report.
    I found that the webi doc has auto checked merge dimensions enabled but it is not providing combined resluts from both the queries .
    Any inputs are greatlt appreciated.
    Thanks

    Stratos
    Firstly ,I appreciate your responses for my two questions.
    Both the prompts I am using are from the masterdata and they are similar.data types.I think the transactional data is not available in BW for one of the prompt ,hence I am not getting consistent data.
    Anyway will do further investigation in finding similarities and let you know.
    Thanks a lot

  • Combining two mono clips into a single mono clip

    I have two mono clips (two different takes of the same vocal part) that I want to combine into a single mono clip in Multitrack.  I tried the Bounce feature, but it produced a stereo file (which I don't want) and I think there isn't a mono option in Bounce.  So then I tried Mixdown to New File, and that produced a stereo file too.   So, what's the way to get the mono file I want, and which is better for the job - Bounce, or Mixdown?

    I recently filed two bug reports around bouncing tracks.  I noted that bounces were always created to match the Master track channelization, not the source track, and that they appeared to be passing through the Master when they should be the raw track output. 

  • Combining 2+ WAV Files into a single WAV file

    Hello there,
    I am trying to combine at least 2 WAV files (my example uses 3) into a single file. I have tried several examples (http://www.jsresources.org/examples/AudioConcat.html and http://stackoverflow.com/questions/653861/join-two-wav-files-from-java) but both have the same problem: the output file is an exact copy of the last file to have been joined.
    Here is the code for the simpler of the 2 examples which I have altered to meet my needs.
            File outputFile = new File("concat.wav");
            for (int i = 0; i < files.length - 1; i++) {
                try {
                    AudioInputStream clip1 = AudioSystem.getAudioInputStream(files);
    AudioInputStream clip2 = AudioSystem.getAudioInputStream(files[i + 1]);
    AudioInputStream appendedFiles =
    new AudioInputStream(
    new SequenceInputStream(clip1, clip2),
    clip1.getFormat(),
    clip1.getFrameLength() + clip2.getFrameLength());
    AudioSystem.write(appendedFiles,
    AudioFileFormat.Type.WAVE,
    outputFile);
    files[i + 1] = outputFile;//first file read in next loop, will contain joined file so far
    } catch (Exception e) {
    e.printStackTrace();
    return outputFile;
    I am unsure as where the problem lies, so would be grateful for anyone to point out the (no doubt obvious) mistake i've made :p

    I don't see any problem with your actual code in terms of JavaSound, but...
    The first run through, you'd be concating "file1.wav" and "file2.wav" to a file called "concat.wav". The second time through, you'd be concating "concat.wav" and "file3.wav" to a file called "concat.wav"...
    On the second iteration, "concat.wav" will have a read-lock put on it until such time as the sequence input stream releases it... which will occur as soon as it's done reading it. At that point, the read lock is released and you can obtain a write-lock on it, but, you've already dumped all of the data from concat.wav into the bit bucket...so the only thing that gets to go in there now is "file3.wav".
    So, don't try to read from and write to the same file at the same time...

  • Combining multiple pdf pages into a single document

    I realize this is probably an inappropriate request -- probably? almost certainly -- for this forum, but perhaps someone can refer me to another source for a solution.
    I would like to combine several pages individually scanned to pdf format into a single pdf document. How do I do that? (I have only Adobe Reader. I do not have any applications for creating and editing pdf pages.)
    Hope you'll forgive the inappropriate request, and thanks to anyone who can refer me to a more appropriate source.
    Sincerely,
    Eric Weir

    I would like to combine several pages individually scanned to pdf format into a single pdf document. How do I do that?
    You already have the application installed -- Preview. Whether the source files are single page or multipage documents, whether they are all on size/orientation or come in multiple dimensions/orientations, simply ...
    1) Open each in a separate Preview window,
    2) Open the "sidebar" for each window,
    3) Drag one or more icon pages from any of the source Preview sidebar windows to your target Preview sidebar window,
    4) Arrange the order of the pages in the target sidebar window as desired, and
    5) Save resulting document under a new name using the "Save As..." File menu option.
    ADDED: Oops! Too slow. Someone else beat me to it...

  • How to combine Submit and Commit into a single operation?

    JDev 11.1.1.6
    Is there a simple way to combine Submit and Commit or Create and Commit or Delete and Commit into a single operation without creating a custom Operation class?
    Thanks,
    PeeVee

    Have a button and in the action listener event..you should drag and drop both create & commit onto your page so that it will have the required bindings in the pagedef.
    OperationBinding createOperationBinding = ADFUtils.getOperationBindingForMethod("Create");
    createOperationBinding.execute();
    OperationBinding commitOperationBinding = ADFUtils.getOperationBindingForMethod("Commit");
    commitOperationBinding.execute();

  • How to combine 20 identical shots into a single composite image

    I want to shoot a moving water scene with a tripod mounted Canon DLSR and take +/- 20 images from the exact location and then combine them into a single composite shot in photoshop CS6.  How do I go about this?

    It sounds like you want to do image stacking. See Photoshop Help | Image Stacks (Photoshop Extended).

Maybe you are looking for

  • How to replace multiple files in same location Indesign CS6

    Hi everyone please help me with this challenge if you are avialable it will be greatly appreciated! Ok I have a spread of about 60 pages in indesign.  I created a template where I have differnt PDFs in each section.  I have 3 different PDFs per page

  • Freight Charges Break up in PLD

    Dear all, Can any one help me in showing the freight charges break up in PLD. My client is putting Packing and Forwarding charges along with the freight charges in the freight for example, freight = 100 P&F = 20 but in document it will display as fre

  • Apple TV and movies

    Hi folks. I'm new here. I don't have an AppleTV box. I did some researh and I couldn't find any information about purchase of HighDef movies. I only see HighDef movie rentals. Can we purchase HD movies? And also, I noticed from Apple's website that t

  • EC-CS - FS Items that are not assigned to Consol Chart of Accounts

    There are many redundant FS Items that not assigned to Consol Chart of Accounts. Instead of identifying and deleting one by one, what is the fastest and best way to clean up? Thanks and Regards, B Lim

  • Script for exporting the Delegated List from Exchange 2007

    We are Planing to Migrate the Exchange 2007 Mailbox to O365 by Hybrid deployment. So i would like to generate the List of delegated access rights on Mailboxes, could you help the script for genetating the delegated list.