SQL Concat function seem not to work properly in SQL query data model. BIP 11g

I try to use this function to show entire name CONCAT(name, ' ', surname) and it doesnt show the surname. it looks like it only tooks 2 arguments. I use it with the option "Add element by expression" within a SQL Query - Data set.
Lucia

i don't believe you
please post more info, may be screen or sql or some more useful statement
CONCAT(name, ' ', surname) and it doesnt show the surname
may be because for some case "surname" is empty  or may be you incorrect use concat function
one way mentioned by BluShadow is " || " operator  - http://docs.oracle.com/cd/B28359_01/server.111/b28286/operators003.htm#SQLRF51156
and another is concat function http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions026.htm#SQLRF00619
so for your case it can be like
CONCAT(CONCAT(name, ' '), surname)

Similar Messages

  • My select select statement seems not to work...

    Hello experts,
    I am having trouble with my select statement below. Here is what I need to do:
    1. loop at itab it_equz.
    2. get single asset number(ANLNR) and description(SHTXT) from table ITOB where EQUNR =_equz-equnr.
    3. get single asset number(ANLN1), asset subclass(ANLN2 and subnumber(ORD42 from table ANLA where its asset(anln1) equals to the asset fetched by ITOB. (no. 2 step) and DEAKT eq '00000000'
    4. Now, I would get all fields(select single) in table ANLC where ANLN1 equals to asset fetched by ANLA and ANLN2 equals to ANLN2 fetched by ANLA and AFABE eq '01'.
    5.endloop.
    Now, the problem is that I can't seem to get the right values in table ANLC. Now, my boss said that the values that I must get in ANLC must not be deactivated. So I did that by getting the required fields(no 3 step) in table ANLA where its DEAKT is equal to '00000000'.
    Now, my select statement for ANLC seems not to work properly since I have the proper where conditions. Anyway, below is my select statement that I did:
    LOOP AT it_equz.  "no 1 step
    SELECT SINGLE anlnr shtxt FROM itob   "no 2 step
              INTO (it_itob-anlnr, it_itob-shtxt)
              WHERE equnr = it_equz_dum1-hequi.
    MOVE it_itob-anlnr TO it_finaltab-asset_dum.
                MOVE it_itob-anlnr TO it_finaltab-asset.
                MOVE it_itob-shtxt TO it_finaltab-description.
    SELECT SINGLE bukrs anln1 anln2 ord42   "no 3 step
                FROM anla                                  
                INTO (it_anla-bukrs, it_anla-anln1, it_anla-anln2,
                      it_anla-ord42)
                WHERE anln1 = it_finaltab-asset
                  AND bukrs IN r_iwerk
                  AND deakt = '00000000'.
    MOVE it_anla-ord42 TO it_finaltab-asset_sub.
                  WRITE it_finaltab-asset TO v_asset.
                  CONCATENATE v_asset '-' it_anla-anln2
                  INTO it_finaltab-asset_subnum.
    SELECT SINGLE bukrs anln1 gjahr afabe knafa kansw  "no 4 step
                              answl kaafa nafal aafav aafag
                              nafap aafap nafav nafag FROM anlc
                          INTO (it_anlc-bukrs, it_anlc-anln1, it_anlc-gjahr,
                                it_anlc-afabe, it_anlc-knafa, it_anlc-kansw,
                               it_anlc-answl, it_anlc-kaafa, it_anlc-nafal,
                               it_anlc-aafav, it_anlc-aafag, it_anlc-nafap,
                               it_anlc-aafap, it_anlc-nafav, it_anlc-nafag)
                            WHERE anln1 EQ it_finaltab-asset
                              AND anln2 EQ it_anla-anln2
                              AND bukrs EQ it_anla-bukrs
                              AND afabe EQ '01'.
    it_finaltab-accq_cost = it_anlc-kansw + it_anlc-answl.
                IF p_posdep = 'X'.
                  it_finaltab-acc_dep = it_anlc-knafa +
                                        it_anlc-nafav +
                                        it_anlc-nafag +
                                        it_anlc-kaafa +
                                        it_anlc-aafav +
                                        it_anlc-aafag.
                ELSE.
                  it_finaltab-acc_dep = it_anlc-knafa +
                                        it_anlc-nafav +
                                        it_anlc-nafag +
                                        it_anlc-kaafa +
                                        it_anlc-aafav +
                                        it_anlc-aafag +
                                        it_anlc-nafap +
                                        it_anlc-aafap.
                ENDIF.
    APPEND it_finaltab. CLEAR it_finaltab.
              APPEND it_equz_dum2. CLEAR it_equz_dum2.
              CLEAR it_itob. CLEAR it_anla. CLEAR it_anlc.
    endloop.

    Hi,
      Please avoid selection in loop. it will lead to major performance issue.
    avoid move statements ; instead use assignment.
    1st :- select the entire data into internal table
    eg:-
    SELECT anlnr shtxt FROM itob
    INTO table it_itob
    for all entries in it_equz
    WHERE equnr = it_equz-hequi.
    1st select
    2nd select.
    2nd :- now loop on ur internal table to get the desired result.
    it is good to work with internal table rather than select statements in loop.
    Regards

  • The function AirDrop on my Mac BookAir seems not to work, not detect my iPad. How to fix this?

    The function AirDrop on my Mac BookAir seems not to work, not detect my iPad. How to fix this?

    AirDrop on iOS devices (iPads, iPhones, iPod touches) can only AirDrop things with other iOS devices. AirDrop on Mac can only AirDrop things with other Macs.
    I hope this solves your question.
    Austin

  • My IPAD 2 is freezing on the principal internet explorer page.  It presents the google home page with a grey filter over it and does not respond to any touch or key.  All other internet dependent functions seem to be working (i.e. mail, various APPs etc.)

    My IPAD 2 is freezing on the principal internet access page.  It comes up through a light grey filter and does not respond to any touch or keys.  All other internet dependent functions seem to be working fine (mail, various APPs).  How do I "unfreeze"?
    thanks
    geoff1949

    Geoff-
    Go to Settings-Safari and Clear History and Clear Cookies and Data.
    Another thing you can try is to double-click the Home button.  A row of recent Apps will line up along the bottom of the screen.  Scroll across and find the Safari icon.  Press on it for a couple of seconds until it starts to wiggle.  A red minus sign will appear on each icon.  Press on Safari's minus sign to remove it.  This may clear its memory of the bad Google page.
    If this does not help, try resetting (rebooting) the iPad.  Hold both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  The iPad will restart after a couple of minutes.  Resetting this way will not hurt anything, and sometimes clears up mysterious problems.
    Fred
    Message was edited by: Fred*M.

  • Go To setting doesn't seem to be working properly

    The "Go To" setting in Slide Manager does not seem to be working properly. On a slide, I set "Go To" to go to a previous slide, but when you click the Next button for that slide on the Presenter playbar it continues to be linear and just advances to the next slide instead of going to the previous slide I set it to "Go To". Is the "Go To" setting controlling the Next button on the playbar? Anyone have this issue or know how to get this functionality to work properly?

    Hi,
    'Go to slide' will automatically play the slide, you have set for a particular slide, when that slide ends. If you have set advanced by user option as yes, then at the end of slide, you have to click on play to traverse to the slide you have set at 'Go to slide'.
    Next and previous buttons which are to the right of play button have no role in it, they will get you forward/backward as normal.
    Thanks,
    Vikram
    Adobe Presenter Engg. Team

  • Since updating my iPad and iPhone to the new software iOS6, my wifi has not been working properly I'm either getting a very week signal or the signal is dropping completely,

    Since updating my iPad and iPhone to the new software iOS6, my wifi has not been working properly I'm either getting a very week signal or the signal is dropping completely. Has anyone noticed this?

    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting
    http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet
    http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    Try This - Renew IP Address:
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I downloaded iMovie 11 butit seems not to work with IDVD6. Do I need to get the Newest IDVD? Which IDVD is the latest and where do i download it from?

    I downloaded iMovie11 but it seems not to work with iDVD6. Do I need to down load the latest IDVD?

    Where do I download it from?
    You need to use iDVD 09 or iDVD 11.  These are only available on disk.
    IDVD is a wonderful piece of software and well worth the low cost of $40.
    http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?ie=U
    If you live in a state where Amazon collects sales tax you may prefer the link below.
    http://dealmac.com/lw/artclick.html?1,527850,1872219

  • Can the new garageband open files from the previous garageband? in my case it seems not to work and I would like to know if it is possible at all...

    Can the new garageband open files from the previous garageband? in my case it seems not to work and I would like to know if it is possible at all...

    No.
    I find it extremely frustrating that Apple does not care for such an obvious bug affecting one of the basic funcionalities of AirPlay. Unless, of course, if there's something I don't know - but I've done some research and it seems that plenty of people have same issue and no solution is settled.

  • TS3899 Since I updated to iOS 8.0.2 my iPad has not been working properly. It freezes in the middle of things. It cuts out when I'm browsing. It's slow when I. Typing and more how do I sort it

    Since I updated to iOS 8.0.2 my iPad has not been working properly. It freezes in the middle of things. It cuts out when I'm browsing. It's slow when I. Typing and more how do I sort it

    Hello Jm23ur,
    After reading your post, it sounds like you are experiencing performance issues with your device. You may want to consider restarting the device first, and then resetting if that does not work. This article provides detailed instructions for Restarting, and Reseting:
    Turn your iOS device off and on (restart) and reset
    How to restart
    Press and hold the Sleep/Wake button on the top of your device until the red slider appears. Then drag the slider to turn your device completely off.
    After the device turns off, press and hold the Sleep/Wake button again until you see the Apple logo.
    How to reset
    You should reset your device as a last resort and only if you can't restart it.
    To reset, press and hold both the Sleep/Wake and Home buttons for at least 10 seconds, until you see the Apple logo.
    Thank you for contributing to Apple Support Communities,
    BobbyD

  • "Arrange by" doesn't seem to be working properly. What to do?

    "Arrange by" doesn't seem to be working properly. What to do?

    Properly conveys nothing. Details if you want help.

  • HT4437 Is it possible to zoom in photos when using airplay? It seems not to work at all. I can only zoom in if i use mirroring and even then i have to reconnect mirroring each time I chage an albumor even go from the photo to the album level.

    Is it possible to zoom in photos when using airplay? It seems not to work at all. I can only zoom in if i use mirroring and even then i have to reconnect mirroring each time I chage an albumor even go from the photo to the album level.

    No.
    I find it extremely frustrating that Apple does not care for such an obvious bug affecting one of the basic funcionalities of AirPlay. Unless, of course, if there's something I don't know - but I've done some research and it seems that plenty of people have same issue and no solution is settled.

  • Dropped my iphone and now home button doesnt work and will not charge.lower third of it seems not to work.i assume it's had it.what will i lose off it?

    dropped my iphone and now home button doesnt work and will not charge.lower third of it seems not to work.i assume it's had it.what will i lose off it?

    rbrook0113 wrote:
    I know any device could malfucntion but if it costs $40,000 to buy you could at least warn someone of the possible malfuctions. It makes the company look bad when a large amount of your devices act up and you "cant help them" if they dont pay extra. Im just saying.
    Sorry but that makes no sense at all.  How can they possible know what things will possible malfunction on your device?  Anything that they think is highly likely to malfunction they would have addressed in desiging and manufacturing the device in the first place, during development.  They've made and sold many millions of iPhones, and many of them have lasted years without any problems (I know, I've owned such iPhones personally).  So how could they possible know if yours was any more likely to develop any issues than any of those other trouble free ones?
    It's hardware - stuff sometimes breaks randomly.  No amout of money ever guarantees or even reduces the likelyhood of random product failures.
    Take it in to Apple and see about getting it fixed.

  • With clause in SQL query data model

    Hello!
    isn't it possible to use the with clause in sql query data models?
    for example following query:
    WITH
    a_test as (
    select dummy from dual
    select *
    from a_test
    brings up a "XML Parsing Error: no element found"-error...
    BR Paul

    I tried a slightly different query (see below) and the query worked fine and retrieved data.. I did not get any errors.
    WITH
    a_test as (
    select 'dummy' from dual
    select *
    from a_test
    This works as well.. retrieving the value of the parameter
    WITH
    a_test as (
    select :Test_ID from dual
    select *
    from a_test
    thanks,
    BIPuser

  • Different LOV behavior between SQL query data model and data template

    I have noticed different behavior when using parameters linked to list of values (LOV) of type menu with the multiple selection option enabled and a SQL query data model vs a data template. Here's the example because that first sentence was probably really confusing.
    SQL Query:
    select
    plmc.MonthCode, plmc.ModalityDim, plmc.ModalityName,plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(:modalityDim,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (:modalityDim)
    then 1
    else 0
    end
    end
    Putting BI Publisher into debug mode, defining a data model of type SQL Query, defining a parameter called :modalityDim linked to a LOV that allows multiple selections, and selecting a couple of values from the LOV the output of the prepared statement is:
    [081607_122647956][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?,?)
    then 1
    else 0
    end
    end
    [081607_122647956][][STATEMENT] 1:6
    [081607_122647956][][STATEMENT] 2:7
    [081607_122647956][][STATEMENT] 3:6
    [081607_122647956][][STATEMENT] 4:7
    [081607_122654713][][EVENT] Data Generation Completed...
    [081607_122654713][][EVENT] Total Data Generation Time 7.0 seconds
    Note how the bind variable :modalityDim was changed into two parameters in the prepared statement.
    When I use this same SQL Query in a data template the output is:
    [081607_012113018][][STATEMENT] Sql Query : select
    plmc.MonthCode,
    plmc.ModalityDim,
    plmc.ModalityName,
    plmc.RegionDim
    from
    DataOut.dbo.PatientLabMonthlyCross plmc
    where
    plmc.MonthCode = 200202
    and plmc.RegionDim = 1209
    and 1 =
    case
    when coalesce(?,null) is null
    then 1
    else
    case
    when plmc.ModalityDim in (?)
    then 1
    else 0
    end
    end
    [081607_012113018][][STATEMENT] 1:'6','7'
    [081607_012113018][][STATEMENT] 2:'6','7'
    [081607_012113574][][EXCEPTION] java.sql.SQLException: Syntax error converting the nvarchar value ''6','7'' to a column of data type int.
    Note the exception because it is trying to convert the multiple parameter values.
    Am I doing something completely wrong here? I really need to use a data template because I will need to link a couple of queries together from different database vendors.
    -mark

    This is for 10.1.3.4 - because in 11g every SQL query is automatially part of a data model.
    In 10g SQL query is for simple unrelated SQL queries.
    If you need to use advance features such as:
    a) multiple SQL queries that are joined in master-detail relation ships
    b) before/after report triggers
    Then you will need to use the data template, which is an XML description
    of the queries, links, and PL/SQL calls.
    hope that helps,
    Klaus

  • The latest iMovie do not seem to be working properly.  the photos and videos become distorted whenever i attach them to the templates.  in one case (Blockbuster Trailer), the video skips thereby making it not in-synch with the music.  what should i do?

    the latest iMovie do not seem to work properly.  the photos and videos become distorted when i attach them to the templates.  in one case (Blockbuster Trailer), the video skips thereby making it not in synch with the music. what should i do?

    bnjr86 wrote:  There have been times when I've walked in there, that I really don't want to deal with VZW anymore and just take my business elsewhere.
    I  wonder if another provider would really be much different?  Read some of the other carrier forums - seems to be the same story everywhere.
    I'm not disagreeing with you - I've found that I am usually more informed about Verizon policies and procedures than some of the reps in our local store.

Maybe you are looking for