Dynamic From statement in select query and/or outer join not working

Dear Experts, I have a select query where the select columns are dynamic, the where condition is also dynamic. It is of the below format:
Select (dynamic columns) INTO <wa>
FROM a inner join b on af1 = bf1
inner join c on af2 = cf2......
WHERE (dynamic conditios)
ORDER BY ( dynamic sort condition).
Now I have to include some tables (dynamically depending on the user input) in the inner join statement which will give description for the selected fields. And these database tables may or may no be empty. So in this case, my select query will not return any data if these tables are empty. And I dont want that.
I tried using outer join for the extra tables but it gave me a runtime error. I also tried forming the inner join statement dynamically but it was not supporting.
Kindly give me pointers.
Thanks

Hey thanks for the reply, but the problem is not solved.
I am already using  ( fileds, value) like table in my where condition and the select statement was working properly.
the problem is that now I have to include some tables in the join statement which can be empty and so i want to use Outer join.
But I am getting a runtime error as below:
Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SYNTAX', was not
     caught in
    procedure "ZATSCSNG_RFC_READ_TABLE" "(FUNCTION)", nor was it propagated by a
     RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    The running ABAP program wanted to execute a SELECT statement whose
    WHERE condition was (partly) specified dynamically. The part that is
    specified in an internal table at runtime is compared to a field of the
    right table of an LEFT OUTER JOIN. Such comparisons are not supported by
     all database systems and are therefore not allowed.

Similar Messages

  • How to delete video from iTunes library? del and shift+del are not working - no any reaction

    how to delete video from iTunes library? del and shift+del are not working - no any reaction.

    seb963 wrote:
    Hi
    Currently, iMatch is turned off on my computer, as I do not want to upload any more songs. If I turn it on, will it upload all songs that are currently in my library? Is there another way that deleting them one by one?
    You must enable iTunes Match on the new computer. The best way to accomplish what you want to do is to create a new, empty library by launching iTunes while holding down the Option key (Shift on Windows) and choosing "new library." Do not let iTunes scan for new content, but do enable iTunes Match on the empty library. Once the scan is finished you may delete tracks from the cloud. When you are done switch back to the main iTunes library.

  • Outer join not working when filters are applied from Prompts

    Hi,
    Without values being selected from the dashboard prompts, my outer join is working fine with all the rows and all the columns showing up( as per requirement). But as soon as I select values in the prompts, only certain rows and columns show up.
    BTW, I have 2 prompts Year and Quarter. I put Year is Prompted or is null in the criteria. It works. BUT as soon as I also put in quarter numbers, it does not work.
    Is there a workaround for this?
    Thanks,
    Dan
    Edited by: Danny on Apr 26, 2013 12:10 PM

    I just experimented by adding is null to not only the year and quarter but to the row and column too and it worked!
    Thanks,
    Dan

  • Audio in and audio out is not working in imac after i install lion 10.7

    i have a imac i update my mac to lion 10.7
    after that i open grageband and it sayes no adieo in and out are found
    and i also loke in the grageband preference  and i loke in Audio /MIDI
    and audio output say no drive found and in is same thing
    but on MIDI Status it sayes 1 midi input found
    enebody know what will be the problem

    Hi gusto,
    I checked the above mentioned KB and the fix that worked for you is in the KB: https://help-internal.adobe.com/content/help/en/creative-suite/kb/acrobat-failed-launch-30 -days.html
    Try running the patch again and see if that helps.
    Regards,
    Rave

  • Union among multiple select queries with full outer join

    Hello everyone,
    I have 3 different select queries (used FULL Outer Join) which work fine. Now I want to add Union to the results among them and pick the selected columns from each query in the final result. while doing so, I am getting an error as "right parenthesis missing". I am quite sure, it is not the real cause. I guess might be issue with the query structure.
    select j.pod, j.hostname, portal.hostname,saasc.hostname,a3s.hostname from -- * from
    Select J.Pod,J.Hostname, P.Pod Portal_Pod,P.Hostname Portal_Hostname
    From Total_Pod J
    full outer join Portal_Tmp P On (J.Pod = P.Pod And J.Hostname = P.Hostname) as portal
    Union
    Select J.Pod,J.Hostname, s.Pod saasc_Pod,s.Hostname saasc_Hostname
    From Total_Pod J
    full outer join Saasc_Tmp S  On (J.Pod = s.Pod And J.Hostname = s.Hostname) as saasc
    Union
    Select J.Pod,J.Hostname, a.Pod a3s_Pod,a.Hostname a3s_Hostname
    From Total_Pod J
    Full Outer Join A3s_Tmp A  On (J.Pod = A.Pod And J.Hostname = A.Hostname) as a3s
    )p.s: select * from (INNER QUERY); also does not work.
    Any help appreciated.
    Thanks in advance.

    With T as
    (Select J.Pod,J.Hostname, P.Pod Portal_Pod,P.Hostname Portal_Hostname
    From Total_Pod J
    full outer join Portal_Tmp P On (J.Pod = P.Pod And J.Hostname = P.Hostname) ),
    U as
    (Select J.Pod,J.Hostname, s.Pod saasc_Pod,s.Hostname saasc_Hostname
    From Total_Pod J
    full outer join Saasc_Tmp S  On (J.Pod = s.Pod And J.Hostname = s.Hostname) ),
    V as
    (Select J.Pod,J.Hostname, a.Pod a3s_Pod,a.Hostname a3s_Hostname
    From Total_Pod J
    Full Outer Join A3s_Tmp A  On (J.Pod = A.Pod And J.Hostname = A.Hostname) )
    Select T.Pod,T.Hostname,nvl(T.Portal_Hostname,'Not Available') portal,nvl(U.Saasc_Hostname,'Not Available') saasc,NVL(V.A3s_Hostname,'Not Available') a3s From T,U,V
    Where T.Pod = U.Pod
    And U.Pod = V.Pod
    And T.Hostname = U.Hostname
    And U.Hostname = V.Hostname

  • Creating Crystal Reports Dynamically from an incoming SQL query

    Hi,
    I have a requirement where a sql query will be entered by the user in a text box and in the back end java code, i have to create a crystal report dynamically based on that sql query and show it in the crystalviewer object.
    For example if the user writes "select x,y from xtable ", i should be able to create a report with 2 fields, and if the user says "select x,y,z from xtable" then i should be able create and show a report with 3 fileds...thsi report creation should be done in the click event.
    Is this possible in java? I have found something similar in .NET... pls have a look at this 
    http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm
    Thanks,
    Preethi

    Hi Preethi,
    Can you please share the steps with me? I am also looking for dynamic SQL being applied to the crystal report.
    Thank you so much for your help in advance.
    Regards,
    Janakiram D.

  • In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    The query is re-issued as a flashback query and the client process can continue to fetch from the cursor. This is described in the Net Services Administrators Guide, the section on Transparent Application Failover.

  • I bought an IPAD air from state and the screen is not working correctly and right now i'm in Egypt ,can i send my ipad to service in Egypt and the warranty will work in Egypt or what?

    i bought an IPAD air (32 gb wifi only) from USA just one month ago and the screen is not working correctly(picture attached) and right now i'm in Egypt ,can i send my ipad to service in Egypt and the warranty will work in Egypt or what?

    Have you tried a soft-reset to see if that fixes it ? You might be able to get warranty service in Egypt for your iPad, but the warranty includes :
    IMPORTANT RESTRICTION FOR iPHONE AND iPAD SERVICE.
    Apple may restrict warranty service for iPhone and iPad to the country where Apple or its Authorized Distributors originally sold the device.
    As it's wifi-only you should have a better chance of it being serviced under warranty, but there are no guarantees, it might depend upon the repairer.
    Egypt authorised service providers : https://locate.apple.com/eg/en/

  • IPhoto says it won't import photos from my Fujifilm Finepix S1000 camera because it's the wrong format (jpeg).  It always has before... but I upgraded to Lion then went back to Snow Leopard and now it's not working.  Suggestions?  Thanks!

    iPhoto says it won't import photos from my Fujifilm Finepix S1000 camera because it's the wrong format (jpeg).  It always has before... but I upgraded to Lion then went back to Snow Leopard and now it's not working.  Suggestions?  Thanks!

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Airplay on ATV and AX from Lion and ML: ML does not work...

    Hi all,
    I am having a problem with Airplay under Mountain Lion...but not under Lion.
    On a MBP 13 (Summer 2009), I can use iTunes Airplay under Lion to stream music to both an Apple TV and to a Airport Express.  In fact, I can play iTunes music on the MBP, the Apple TV, and the Airport Express simultaneously (all 3 or any 2 or any 1, individually). [Of course, Airplay display mirroring does not work under Lion, but iTunes Airplay does.]
    On a MBP 15 (Early 2011), I can use Airplay under Mountain Lion to mirror the MBP's display on the Apple TV and thus through mirroring I can stream the music from iTunes to the Apple TV.  I cannot stream from iTunes to the Airport Express, whether or not I an mirroring to the Apple TV.  In other words, even when the mirroring to the Apple TV mirroring is Off and the Apple TV is off, I still cannot use iTunes to stream music to the Airport Express.  Now the Airport Express speakers shows up as an option in the iTunes Airplay menu, but when I select it in the menu it does not do anything.
    In summary, using Lion I can stream iTunes music to both an Apple TV and to an Airport Express speakers, individually or simulaneously.  Using Mountain Lion, I can stream iTunes music to the Apple TV, but only through the use of Airplay display mirroring.  I cannot stream music to the Airport Express speakers even though the AX shows up as an item in the iTunes Airplay menu.
    Any ideas how to fix this for ML so that it works as in Lion?  I checked and have the same Preferences set for both the Lion iTunes and ML iTunes.
    Thanks,
    Switon

    ...a little more experimentation...
    I booted the MBP 15 (Spring 2011) from an external backup of Lion (made immediately prior to switching to ML).  When I turn off the Server Firewall then I can iTunes Airplay to both the Apple TV as well as to the Airport Express.  But when I turn on the Server Firewall, even after allowing ports 3689, 42000-42999 both TCP and UDP, the Airplay does not work.  I could not determine which ports were needed for iTunes Airplay, all I could figure out is that when the Server Firewall is off then iTunes Airplay works but when the Server Firewall is on then iTunes Airplay does not work.  I tried logging all denied packets, but to no avail, I still could not determine which ones were being denied.
    Interestingly, when I turn off the Server Firewall and switch on the System Preference Security pane Firewall, I can still iTunes Airplay to both the ATV and AX.  It makes me wonder if when I switched to ML from Lion that some ipfw rules were not left over from the Lion Server Firewall that then keeps ML from allowing iTunes Airplay to work.  (I wonder if I restore my Lion Server, then switch off the Lion Server Firewall, then download and install ML once again, then download and install OS X Server once again, whether the iTunes Airplay would then work?  Maybe when I have some more time I'll try this, in the meantime I'm going to try a little harder to figure out why the Lion Server Firewall stops iTunes Airplay from working.  Dang nabbit, even "ipfw show" does not tell me which packets are being denied when the Server Firewall is ON and iTunes Airplay does not work...does anyone have any suggestions on how to figure out why the Server Firewall is stopping iTunes Airplay from working?)
    Thanks,
    Switon

  • Selected audio and video devices may not match

    Hello - I was able to Print to Video w/no problem, from my Mac Book Pro, to my Panasonic PV-GS320 w/no problem. Now, all of a sudden, when trying to do this, I get this msg.:
    'The selected audio and video devices may not match. Please verify that the a/v outputs are externally routed to the intended device(s).'
    Not sure what happened, or what changed, but here is my setup:
    Sequence & Capture Presets are both: DV NTSC 48 kHz
    Device control preset: FireWire Basic
    Video Playback: Apple Firewire NYSC (720 x 480)
    Audio Playback: Default
    Like I said, I don't know what got changed, but, it was working before - hope someone can help, thanks so much!!
    Kristina

    I think I found the problem...I had forgotten to switch my Device Control Preset back to FireWire, from the previous non-controllable - thanks so much!
    Message was edited by: Kristina Latour
    Message was edited by: Kristina Latour

  • A very good friend of mine dropped her iphone into water and now it is not working.Her husband recently passed away and text messages from him and from well wishers after his decease are feared lost. Is there any way to retrieve them?

    A very good friend of mine dropped her iphone into water and now it is not working.Her husband recently passed away and text messages from him and from well wishers after his decease are feared lost. Is there any way to retrieve them?
    I suggested contacting Compub in Nassau St as the info is priceless and worth the trouble of trying to regain?
    Any thoughts? The poor lady is very distress

    If she has backed up her iPhone she can replace that iPhone and set up the new iPhone from her backup.
    You can put the iPhone that went into water into a plastic baggie with either new silica gel packets (preferred) or raw rice and let it sit for  4 - 5 days. After that time remove the phone and connect it to power for at least a half hour. While it is still connected to power reset it by holding down the power and hold button, wait for the Apple logo then let go of the buttons. Might take several tries. If it revives immediately back it up.

  • Why does right clinking on link and selecting open in new tab does not work?

    Why does right clinking on link and selecting open in new tab does not work?
    It opens up a blank page. The only way to make the link work is to click on the navigation bar in the new tab and press enter to reload the link.

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • I m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me. thanks ravi

    i m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me.
    thanks
    ravi
    <Email removed by Host>                                                                                                                                                                                                                                       

    sounds more like Bluetooth rather than moue, but w/o knowing w/o posting mac model type/year we... will... not... know... what you have
    All computers are personal computers, a PC though is also "non-Apple" in common usage.
    Mac also is platform and OS.
    Very confused reading what you are trying to tell us.

  • Accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    I'm going to assume that since you deleted your hard drive and all its files, you had a backup, yes? If the backup has an OS (bootable clone), then you can boot into it by holding down the option key when you start up you iMac and choose the backup drive. Then use Carbon Copy Cloner or Super Duper to copy the files back to your iMac.

Maybe you are looking for