Hey all!

can i populate one internal table by taking data from three different databse tables
...... because the internal table contains fields from different tables....???
what kind of sql query it will be.

Hi,
You can use JOIN statement. Check the below code.
DATA: BEGIN OF WA,
        CARRID TYPE SPFLI-CARRID,
        CONNID TYPE SPFLI-CONNID,
        FLDATE TYPE SFLIGHT-FLDATE,
        BOOKID TYPE SBOOK-BOOKID,
      END OF WA,
      ITAB LIKE SORTED TABLE OF WA
                WITH UNIQUE KEY CARRID CONNID FLDATE BOOKID.
SELECT PCARRID PCONNID FFLDATE BBOOKID
INTO   CORRESPONDING FIELDS OF TABLE ITAB
FROM   ( ( SPFLI AS P
           INNER JOIN SFLIGHT AS F ON PCARRID = FCARRID AND
                                      PCONNID = FCONNID      )
           INNER JOIN SBOOK   AS B ON BCARRID = FCARRID AND
                                      BCONNID = FCONNID AND
                                      BFLDATE = FFLDATE      )
WHERE P~CITYFROM = 'FRANKFURT' AND
      P~CITYTO   = 'NEW YORK'  AND
      FSEATSMAX > FSEATSOCC.
LOOP AT ITAB INTO WA.
  AT NEW FLDATE.
    WRITE: / WA-CARRID, WA-CONNID, WA-FLDATE.
  ENDAT.
  WRITE / WA-BOOKID.
ENDLOOP.

Similar Messages

  • Hey all just trying to set up my ipad synced up with itunes but now if i try to download any apps i put my password in then comes up with unknown error and wont download any help would be great

    hey all just trying to set up my ipad synced up with itunes but now if i try to download any apps i put my password in then comes up with unknown error and wont download any help would be great

    Reset your iPad and see if that helps.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Hey all - just found out my hard drive controller is gone for my macbook pro how do i go about replacing - can i buy the part online etc?

    hey all - i need to replace my macbook pro hard drive controller - not sure exactly what to ask for or where to find it..
    help please.

    adrianfromfort lauderdale wrote:
    hey all - i need to replace my macbook pro hard drive controller - not sure exactly what to ask for or where to find it..
    help please.
    Take a photo of the losing parts and send it to  ifixit.com
    They will advise you what to get replaced.
    or you can bring it to Apple store (you need a booking slot) and get a quote.
    Regards,

  • Hey all.  I have two 22" Acer monitors that I picked up pretty cheap from A

    Hey all. I have two 22" Acer monitors that I picked up pretty cheap from Amazon. Currently I run on my laptop with one of the monitors off to the right. Works pretty well but I'd like to do the following:
    I wanted to set it up so that when I'm at my desk I can use an external keyboard and mouse and both of the monitors side-by-side. Basically I want to be able to just close the lid on the MacBook and use it as a CPU only when I'm at my desk.
    I'm wondering what the best way is to accomplish this. I think I'd need one of those "splitters" perhaps (I think Matrox makes them, maybe others). However I'm also wondering how that would work with MBP and how easy it would be to dock and un-dock the laptop in that sort of arrangement.
    Maybe this is just too difficult to get working properly but I'm thinking there has to an option.

    Also, it's crazy to me that the Matrox devices are so expensive. Costs more to buy those then the actual monitors...
    I suspect that most of the people using the Matrox devices are also using pretty good monitors, and are used to paying more for quality. Look at it this way: by buying cheapo monitors instead, you've saved yourself enough money to buy the matrox box you need to use them (assuming, of course, that it's compatible — about which there does seem to be some question).

  • Hey all ,  my apple ipad 16gb wifi only  is showing a blue screen !! please help ! how do i fix this . what does it mean ? thanks in advance .

    hey all ,  my apple ipad 16gb wifi only  is showing a blue screen !! please help ! how do i fix this . what does it mean ? thanks in advance .

    Thank u verrrrrrrrrrry much FoxFifth u save my life thank u.

  • Hey All, My IPhone is not reconizing phone numbers!! Like the Caller ID is broke!! Help??

    Hey All, My IPhone is not reconizing phone numbers!! Like the Caller ID is broke!! Help??

    DavidBenJeshuah wrote:
    apple wont give me a new phone cause I broke the screen and I replaced it my self.
    Correct. When you did that, you voided all warranty/support, & forfeited the right to an out of warranty replacement.
    There was nothing wrong with the screen I bought,
    And, exactly, how do you know that? Since Apple DOES NOT sell iPhone parts, there is no official source for genuine parts. Thus, many on the market are counterfeit & produce nothing but problems.
    Good luck.

  • Hey All, what is the best file compression app to compress large video file on my Mac Book Pro?

    Hey All, do you recommend compressor 4 or what is the best file compression app to compress large video file on my Mac Book Pro?

    X,
    Thanks for checking in.  The anwser to your questions are below.
    Where is the material coming from?
    These are MP4 files from my Canon vixia HFR40
    What software are you using to edit the material?
    I am using iMOVIE 9.0.9
    What do you want to do with the files after compression? I want to email I need to have the file be smaller than 100MB to send.
    I am an actor and I video tape my auditions and send them to my agent so I need Highest Quality HD files that have small file sizes, no more than 100MB.  The scenes are like 1-5 Mins long in most cases. Thanks for your help.

  • Hey all..i hv problm .. i cant connect wifi properly ..its stucking itself after evry 5 mints and reconnect after evry 5 mints ..plz helpe...sorry for bad english but hope u will understand

    hey all..i hv problm .. i cant connect wifi properly ..its disconnect itself after evry 5 mints and reconnect after evry 5 mints.. signal showing but there is no avail internet ..plz helpe...sorry for bad english but hope u will understand..

    If your connection won't 'stick', check for interference in that area from other devices on competing channels, etc.
    Configure your choice of band/channel with interference robustness, but mainly reduce the sources to be sure it's not just a too noisy environement.
    Still no joy, be sure your software is up to date and then walk it into the nearest Apple store for a professional opinion
    Good luck in any case.

  • Hey all, my iphone 4 contacts keep disappearing.  I do not use MobileMe.

    Hey all,
    As above, I do not use MobileMe as I know it could be related from viewing other articles...
    I can get them back by resyncing to my mac, however, as soon as I view my contacts, its seems the phone does a process and they all disappear again.
    I tried, erasing all content and data on my phone and re-setting up as a new phone.
    I tried, simply restoring from itunes completley.
    I tried, importing from sim card, but nothing really appears.
    Any help would be greatly appriciated....suggestions, anything.
    Thanks

    See -> What is "Other" and what can I do about it? by Kappy.
    Clinton

  • Hey all i think im back ! LOL

    last time i talked to you my baby was back and thank you for your kind words ( ~Bee )
    but guess what !
    booted up next morning and display was funky
    so to recap
    2 logic boards
    1 LVDS vid cable
    1 Temp sensor
    2 Sensor cables
    1 LCD screen
    i have been putting my baby through all that i can and i believe she is FIXED ! LOL
    2 days now all is well !
    just wanted to give an update since my ranting post LOL
    well im so happy i have applecare (which is up in march)
    Castle Mac Services of Lathem NY ( local apple place ) were awsome !
    im hoping for a few more years of a trouble free mac
    while i decide next computer (24" imac maybe) or pehaps really splurge and a Mac Pro with at least 2 processors LOL
    well good luck all ( especially if you have a 17" imac core duo ) LOL
    im still loving my mac
    up untill these problems i had NO problems at all !
    later
    Bryan......................

    hey Bee~
    im still knocking on wood for ya ! LOL
    we are still good here
    i cant tear myself away from this forum anymore !!!!!!!!!!!!! LOL
    such a good group of people here with such GREAT advice
    i love having a question answered from someone else's post
    although i wish i could give POINTS
    well i have a couple of questions about CONSOLE stuff which i will post ( im getting anal now always checking whats going on with my baby ! ) LOL
    still SO MUCH TO LEARN
    have a great HOLIDAY ALL !!!!!
    Bryan...........................

  • Hey All, Commons file upload getname bug fix  gives errors

    Hey im trying to implement this bug fix i found in the forum, but i get errors at the (pos+1) line of code.
    here is an extract of my code
    if (fileItemTemp.getSize() > 0)
    out.println("its a file");
    File filename = new File(fileItemTemp.getName());
    int pos=(fileItemTemp.getName()).lastIndexOf("\\");
    if (pos!=-1)
    File filename=new File(fileItemTemp.getName()).substring(pos+1);
    else
    File filename=new File(fileItemTemp.getName());
    String temp = filename.getName();
    File saveTo = new File(newDir +"/"+ temp);
    fileItemTemp.write(saveTo);
    any help would be appreciated, thanks all, keep developing
    Mark

    I think u can find the solution from this site
    [http://fileuploadanddownload.blogspot.com/]
    or
    [http://fileuploadanddownload.blogspot.com/]

  • Hey all you pros, question for you...

    I am a new convert, and I and trying to learn all the ins and outs of mac worship. With the one-button mouse (i got myself a cute little wireless one here...), are there shortcut keys to do more with the mouse? I wasn't particularly fond of the mighty mouse, but I am already missing scrolling and the such. I assume there is something to alleviate this, as so much is keyboard driven anyways...
    Thanks for you help...!

    You can get the equivalent of a right-click a couple of ways. One way is to hold down the control key when you click. Another way is to click and wait a second before releasing the click. This is my preferred way for activating context menus, etc.
    15 1.67 GHz PowerBook   Mac OS X (10.4.3)   2 GB RAM

  • Hey All ... Request for some suggestions .....

    Well I would like to know if there is any pre-requisite to learn XMII also is there anyone who is teaching the same in bangalore.
    Awaiting responses ......
    Thanks,
    Regards,
    Sunil.

    Hi Sunil,
    As all pre-requisite for XMII  has addressed by Chris Johnstone and for learning purpose technically you can pick up xMII if you have knowledge of core Java and some database.
    Java needed to create dashboard (HTML JavaScriptApplet) and database knowledge for query purpose (SQL, ORACLE).
    At MES and plant side you need functional knowledge.
    Well , you can put your all doubt over here and will help you out from situation
    Brst Regards
    Ramshanker

  • Hey all, new here, some bootup issues.

    I am running Windows 7 with 2 hard drives, one is just an extra one that I use to store pictures on, and one is my main.  Neither are SSD.  I installed Ubuntu alongside my 7, then later I deleted the partition with Ubuntu on it and want to just use Windows 7 again.  I went through with my install disc and repaired my bootloader, and it works, but now it is hanging on 99 for about 3 or 4 minutes before it finally goes on through to A2 where it boots no problem at all.  I have not been able to get into the BIOS.  How can I circumvent this 99 and get it to boot in about 10 seconds again instead of 10 minutes?  Thanks in advance. 
    Z77A-G43 with I3-2120.

    Quote
    do you need to remove the on-board jumpers to overclock if you are trying to achieve over 1600 Mhz FSB?  I currently have the jumpers off.
    Removing the jumpers will set the FSB Frequency to 400 MHz and force the system into a default-400 MHz Strap.  You should also be able to overclock manually in BIOS starting from other jumper position.  Just test and see which one works best for you.  It may be the default position or the 400 MHz position (jumper removal). 
    Quote
    2.  I've notice that the GTLREF voltage is not within 63% of the CPU VTT using the latest beta bios A7512IMS.153 [v1.5b3].  Is that right?
    How did you notice that?  What percentage does the BIOS set in your case?
    Quote
    3.  Anyone have any experience using the RAM modules I have?  See sig for details.
    That is more or less standard DDR2-800 memory which should not make any problems.  In terms of overclocking it, you have to see what can be achieved.  Memory OC Results usually vary from system to system.
    Quote
    4.  Green Power Center crashes in Vista when making changes.  Is there a unknown compatibility issue?  I've have installed fresh copy of Vista.
    Are you using the latest version?

  • Hey all,  i have an old iphone 3G and would like to get it up and running for my wife...  thoughts/suggestions about which iOS will work best/at all?

    help

    OK, try this: First make sure that all anti-virus software & any firewalls are completely turned off...nothing running. Then do the following:
    Turn your phone off...in your case, it's already off, so proceed: Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.

  • Hey all! I can't delete my photos off of iphoto! i've already put them into folders, but they WON'T LEAVE! any ideas?

    I need to delete photos from iPhoto! please help!!!

    What version of iPhoto? How many are you trying to delete?

Maybe you are looking for

  • Error while executing WAD template and publishing it to Portal

    I get an error message when i try to execute WAD template and publish in portal //start of error message Error while loading query metadata check the query and portal settings RSBOL   018    Java system error:Exception in method process Function. //e

  • BFG 8800GTX NOT working for me in my mac pro.

    Well Da**it guys. I can NOT get the BFG 8800GTX to work in my mac pro. The machine will boot but you do not hear the apple chime. After that it just sits there and makes the cd rom drive click and the hard drives click and spinup as well. It is NOT a

  • OVM 3.1.1 iSCSI multipathing

    I am setting up an OVM 3.1.1 environment at a customer site who is presenting iSCSI LUNs from an EMC Filer. I have a few questions: * what is the proper way to discover a set of iSCSI LUNs when the storage unit has 4 unique IP addresses on 2 differen

  • Dialog Programing: Output screen layout is different from actaul layout

    Hi, I have developed screen layout in SE51 and same is used in my program.Program is working fine but the problem is in column order.I designed layout in SE51 by copying structure from ABAP dictionary and same has been used in my program but output l

  • Clearing items upon hitting "Enter Query"

    I have a detail block with 5 fields in each record. There are five non-database items on the form to display the current record in this detail block. Upon moving the cursor to a different record in the block, the new record's fields are displayed in