Function in select, little problem

select a.idik from table1 a
cross join (select * from table(funkcja(a.idik)))
It doesn't work, a.idik is not visible in this join select.
How can I put a.idik in funcka() ?
Edited by: Rozpalacz on Apr 23, 2010 3:51 AM

Rozpalacz wrote:
ok, but now I would like to get all data from table1 and if sht is in table(funkcja(a.idik) that has the same idik would like to get it for example.Then all you need is an outer join:
select  a.adik,
        a.name,
        b.last_name
  from  table1 a,
        table2 b
  where b.idik(+) = a.adik
/SY.

Similar Messages

  • Call function with select options problem

    Hi there dear SDN community members.
    I have got an strange ABAP problem wich function call.
    Code1
    CLEAR ls_selec .
    ls_selec-iobjnm = '9AMATNR' .
    ls_selec-sign   = 'I' .                                    
    ls_selec-option = 'EQ' .
    ls_selec-low    = '0000000000000000000000000000000000017714' .
    APPEND ls_selec TO lt_selec .
    CLEAR ls_selec .
    ls_selec-iobjnm = '9AMATNR' .
    ls_selec-sign   = 'I' .
    ls_selec-option = 'EQ' .
    ls_selec-low    = '0000000000000000000000000000000010079409' .
    APPEND ls_selec TO lt_selec .
    CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'
      EXPORTING
        iv_bas_plobid  = 'Z_DP_POS'
        it_selection   = lt_selec
        it_group_by    = lt_group
      IMPORTING
        et_plob_values = lt_plobs .
    Function returns data in lt_plobs itab only for the last product which was appended to the selection table lt_selec.
    Whilst
    Code2
    CLEAR ls_selec .
    ls_selec-iobjnm = '9AMATNR' .
    ls_selec-sign   = 'I' .
    ls_selec-option = 'BT' .
    ls_selec-low    = '0000000000000000000000000000000000017714' .
    ls_selec-high   = '0000000000000000000000000000000010079409' .
    APPEND ls_selec TO lt_selec .
    Returns data in lt_plobs for all products included in selection tab lt_selec.
    What am I doing wrong in case of Code1? Why function does not return data for both products included in selection tab lt_selec?
    Will be thankful for help. Regards. P.

    I am very sorry to take your time unnecessarily.
    The problem was caused by data inconsistency in our sandbox system I was developing in.
    Be understanding, please.
    Kind regards. P.
    Ps. 
    Vinod Nair
    The 'Loop' solution has slowed the performance down very much.

  • I have a 60G classic with a non-functioning center select button. Can I set a specific playlist and change settings by hooking up to my PC and then maintain those settings and that playlist once I go remote?

    I have a 60G classic with a non-functioning center select button. Can I set a specific playlist and change settings by hooking up to my PC and then maintain those settings and that playlist once I go remote?

    I'm having a little trouble understanding the part about your password having to be reset. Why is that happening??
    Let's start with Firefox's settings:
    (1) You can configure the password manager feature on this tab:
    orange Firefox button (or Tools menu) > Options > Security
    There is a checkbox to enable/disable the feature.
    There also is a "Saved Passwords" button to review and remove any passwords you do not want Firefox to keep.
    That tab also has a feature to set a Master Password so that no one can use your saved passwords without knowing the Master Password. You may need to exit Firefox in order for Firefox to ask for that again.
    Related articles:
    * [[Password manager - Remember, delete and change saved passwords in Firefox]]
    * [[Use a Master Password to protect stored logins and passwords]]
    (2) Site-specific permissions
    If you want to use the password manager for other sites but NOT a particular site, you can configure that in the Permissions Manager.
    In a new tab, type or paste '''about:permissions''' in the address bar and press Enter.
    After the page loads, use the search box in the upper left corner to narrow down the list to the site you want to configure. Highlight the site on the left side, and on the right side, choose Block under Store Passwords.
    (3) Form autocomplete suggestions
    Separate from passwords, Firefox remembers entries you've made into forms (in most cases) and lists the matching ones below the form field in a drop-down.
    To clear a suggestion, press the down arrow key to highlight it and press the Delete key.
    To turn off this feature, see this article: [[Control whether Firefox automatically fills in forms with your information]].
    To review and selectively edit or delete form history entries, you need an add-on. For example, you could try this one: https://addons.mozilla.org/firefox/addon/form-history-control/

  • 3D product rotation images sequence little problem

    Hi!
    I made a sequence of images and make the code the rotate around it but I have a little problem with the loop ( from frame 100 to 1 || 1 to 100 ).
    You can take a look to the link here : http://sebastienouellette.com/productview/test.html
    How can I avoid the little stick problem. I know what's the problem but I dont know how to solve it. It's with the frame tweening. Anyway, here's the code :
    import flash.events.Event;
    import com.greensock.*;
    import com.greensock.easing.*;
    import flash.events.MouseEvent;
    var direct:String = "forward";
    var objTotFrames:int = 490;
    var ease:int = 5;
    var targX:int = mouseX;
    var drag:Boolean = false;
    var ptX:int = 1;
    var frame:int = 1;
    var mousePos:int;
    stage.addEventListener(Event.ENTER_FRAME, dragHandler, false, 0, true);
    stage.addEventListener(MouseEvent.MOUSE_DOWN, downHandler, false, 0, true)
    stage.addEventListener(MouseEvent.MOUSE_UP, upHandler, false, 0, true)
    function dragHandler(e:Event):void
    mousePos = -mouseX * 100 / objTotFrames;
    if ( frame < 1 ) {
    loopForward();
    }else
    if ( frame > 101 ) {
    loopBackward();
    }else
      if (drag)
            initAnim();
    function initAnim():void {
    targX = mousePos+ptX;
    frame += (targX-frame);
    TweenMax.to(mc, .3, {frame:frame});
    //mc.gotoAndStop(frame);
    function loopForward():void {
    //TweenMax.killTweensOf(mc);
    frame = 101;
    ptX = frame - mousePos;
    mc.gotoAndStop(101);
    trace("off 1");
    function loopBackward():void {
    //TweenMax.killTweensOf(mc);
    frame = 1;
    ptX = frame - mousePos;
    mc.gotoAndStop(1);
    trace("over 1");
    trace(frame);
    function upHandler(event:MouseEvent):void
        drag = false;
    function downHandler(e:MouseEvent):void
          ptX = frame - mousePos;
          drag = true;
    Thanks for your help!

    It doesnt work but I think think this is the problem because if you take a look to this example :
    http://sebastienouellette.com/productview/test2.html
    It works pretty well without the "easing" effect and the only think I change in the code is that I removed the line : TweenMax.to(mc, .3, {frame:frame}); and change it to a basic mc.gotoAndStop(frame);

  • Call function with select arguments

    Hi Gurus,
    I have problem to call function inside select statements as follow:
    select a.ID_ELE2, a.ID_ELE3, a.DT_FIS_YR, c.NU_FIS_PER, c.dt,
    (case
    when c.ld is null then
    GET_LD_CHECK (a.DT_FIS_YR,c.NU_FIS_PER, a.ID_ELE3, a.ID_ELE2) -- 1
    -- GET_LD_CHECK ('2009',7, '8010', '7493') --- 2
    else
    c.ld
    end ) description
    from ACCOUNT a, TRANSACTION c
    where a.DT_FIS_YR ='2009'
    and a.ID_ELE3 <> '0000'
    and c.TY_SRC not in ('CL', 'CN')
    and a.DT_FIS_YR = c.nu_fis_yr
    and a.AK = c.AK_FGCHAR
    and trim(a.ID_ELE3) ='8010'
    and c.NU_FIS_PER <> 14
    order by 1,4,5,6
    the 1 doesn't output result but the 2 it does! How can pass the select result to the function?
    Thanks in advance for your help.
    Ben

    The statement / function call seems to be ok. So there are not much chances left for your call to return different (=non) values.
    1) It could be that you have different values in the column then during your test call.
    2) Maybe your function raises an error and that error is supressed in some ugly WHEN OTHERS EXCEPTION => Solution: Get rid of the error handler.
    3) datatype conversion. For example if a.dt_fis_yr is a number value, then you should test with number values and not with strings. GET_LD_CHECK (2009,7, '8010', '7493'). Same logic goes for the other paramters, make sure the datatype is correct and matches the function parameter.

  • Seeing all these little problems, I think I might just return my new MacBook...

    I'm a heavy PC user switching over to Mac because of all the hype and positive comments I've heard from others, but seeing all these little problems everyone is having doesn't motivate me to continue.
    Few days after I got my MacBook (somewhere else) I took it with me to a Mac Store in the mall. I was excited until I was basically told I wasn't worthy because I got it somewhere else. That made me feel really good. I think I'd rather my PC; I'm just not seeing the real benefits to sinking two grand down on something I could easily get for a fifth of that.
    Anyone want to help with my baptism into the world of Mac?

    I am being careful not to stub my toes since this is only my sixth day with my newly-entered Mac experience. I like the MacBook so far. I suppose most of my issues are geared towards being a new Mac user, but I am sure functional issues are yet to arise and surprise. I haven't seen many, if any, functional problems yet, probably because I don't know what to look for and Mac is new to me.
    I have everything up and running, i.e. emails, internet, etc. I upgraded to Lion (was told I wouldn't have to pay for the upgrade, but I did because I couldn't find the way around the payment button).
    I have been through many a PC over the past 15 years and know what I know in terms of programs and their tools, at least the ones I use. Familiar story, perhaps? With Mac it seems I have to relearn everything, as I will explain a little more below. I like having a number pad and both delete and backspace keys. Many of the programs, applications, downloads and software I run on my PC are either not compatible with Mac (and a wheel-less mouse) or they are just not the same in terms of set up and use. For instance, in PC, Firefox allows me to close the program and reopen all my tabs when I come back. Not so in Firefox with Mac, or at least I didn't find that option.
    The most improtant factors for my dicision to Mac-Up were primarily
    1. The security
    2. The speed
    3. Creative aid programs
    Example- With the PC programs I have used, I was able to simply play and learn. Not so thus far with some of the I-stuff. The tools I know and use everyday with PC programs are there, I just don't know where to look to find them or what they are called.
    Example- How do I shutdown a program that doesn't want to shutdown? Searching help to "force shutdown" doesn't produce any solid results.  
    I went to the store where I purchased my MacBook. While there, another customer was asking about features. I rested my attention over the Mac instructor's shoulder to listen and learn (and a lot I did learn), but I realized that of all the things I was doing with my PC programs, despite having the ability to do the same with Mac programs, they were all called something different and/or used a little bit differently. For example, in MS Pub, its a Transparency tool; in Pages its an alpha tool. Stuff like that. For me, little stuff like that can really eat up a lot of time. It would be different if I was just starting my computer journey, but such is not the case.

  • Using function in select statement

    Hi,
    CREATE FUNCTION [dbo].[udf_testFunction] 
    @value int
    RETURNS int
    AS
    BEGIN
    -- Declare the return variable here
    declare @returnValue int
    set @returnValue = @value*2;
    return @returnValue;
    END
    GO
    create table #Temp
        EmpID int, 
        EmpName Varchar(50)
    insert into #Temp(EmpID,EmpName) values(1,'Name1');
    insert into #Temp(EmpID,EmpName) values(2,'Name2');
    insert into #Temp(EmpID,EmpName) values(3,'Name3');
    insert into #Temp(EmpID,EmpName) values(4,'Name4');
    insert into #Temp(EmpID,EmpName) values(5,'Name5');
    select EmpID,EmpName, [dbo].[udf_testFunction](EmpID), [dbo].[udf_testFunction](EmpID)*EmpID,[dbo].[udf_testFunction](EmpID)+2 from #Temp
    In the above select statement i used [dbo].[udf_testFunction]() function 3 times. But i want to use only once and reuse it.
    Something like 
    select EmpID,EmpName, testfunctionvalue,testfunctionvalue*EmpID,testfunctionvalue+2 from #Temp
    Please advise me.... Thanks in Advance...

    You can use this code: 
    WITH cte
    AS ( SELECT EmpID ,
    EmpName ,
    [dbo].[udf_testFunction](EmpID) AS testfunctionvalue
    FROM #Temp
    SELECT EmpID ,
    EmpName ,
    testfunctionvalue ,
    testfunctionvalue * EmpID ,
    testfunctionvalue + 2
    FROM cte
    But using scalar functions in select clause can hurt the performance. Please see this link: 
    SQL Server Scalar User Defined Function Performance
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • PL/SQL Function in Select statement

    Hi
    I am calling a function in select statement. The query works in Toad and PL/SQL developer except SQL plus and disconnecting Oracle connection.
    The error is “ERROR at line 1: ORA-03113: end-of-file on communication channel”.
    When I called the same query from BC4J View Object the error message is “java.sql.SQLException: No more data to read from socket”.
    Can any one advise me please?
    Thanks
    Srini

    Srini
    I've seen similar cases in the past with 9.2.0.x (x <= 5). What Oracle version are you using? It's worth checking the bug database (I can't just now - I don't have a valid support id in my current contract). And as Warren says, post your SQL query.
    HTH
    Regards nigel

  • I got this warning when i open a specific page on my website in IE : MuseJSAssert: Error calling selector function:Error: A security problem occurred.

    Hi,
    I found out when i'm in IE and go to the page 'Artists'
    and i click on a name, for example: 'Abel Equipe ELA/I Gomes'
    I get this warning :
    MuseJSAssert: Error calling selector function:Error: A security problem occurred.
    This is only in IE, not when i use Safari or Chrome
    this is the website link
    Any ideas how to solve this problem?

    There's an invalid hyperlink on the Abel Equipe ELA/I Gomes page on a bit of text that reads "with your input." You need to find this text within Muse, clear the hyperlink and enter a valid one.

  • Hii i m frm BGD. I m using iphone 5. My carrier BGD ROBI AXIATA. When it was ios 6 it works better . But i recently upgrade to ios 7 and i facing the little problem. One of the ussd call. Plz help or suggest ir doing better about itz as soon as possible.

    Hii i m frm BGD. I m using iphone 5. My carrier BGD ROBI AXIATA. When it was ios 6 it works better . But i recently upgrade to ios 7 and i facing the little problem. One of the ussd call. Plz help or suggest ir doing better about itz as soon as possible.

    I'm not trying to minimize your issues, but I have an iPhone 5S and find that I have not had these types of problems on AT&T. I'm wonding if something has gotten stuck in a loop that is continually trying to use data. If you make a good backup of your phone, try restoring it as new, and do not add anything to the phone right away. Let the device run like this for a little while and see what kind of usage you have. You report you phone is showing usage of 21GB. Did you rese this setting on the phone to begin at your billing period? The reason I ask this is some people believe this setting resets on its own with your billing period, it does not. This has to be manually reset by the user, so it might not be that accurate depending on the last time that you reset it.
    If the phone seems to not use so much extra data during the period the device does not have extra apps on it, then try restoring from your backup and see what happens. If this increases your data usage quite fast again, then there is probably something corrupt in the backup that is causing this issue.

  • Functionality for Select and Save layout in a report output

    Hi,
    I had developed a report program containing several fields in the output and requires the Functionality for Select layout and Save layout in a report output.
    Please suggest.
    Thanks,
    Shariq.

    While calling the FM for List Display ( "REUSE_ALV_LIST_DISPLAY" or "REUSE_ALV_GRID_DISPLAY" ) set the Parameter I_SAVE for Setting the Layout and Selecting a different Layouts.
    The possible values for I_SAVE are "A", "U", "X" or others. Depending on the requiement you can set different values for the Parameter I_SAVE.
    ' ' = display variants cannot be saved
    Defined display variants (e.g. delivered display variants) can be selected for presentation independently of this flag.
    Changes can not be saved.
    'X' = standard save
    Display variants can be saved as standard display variants.
    User-specific saving is not possible.
    'U' = only user-specific saving
    The user can only save display variants user-specifically
    'A' = standard and user-specific saving
    The user can save a display variant user-specifically and
    as standard display variant. The user chooses in the display variant
    save popup.
    Reward points if helpful.

  • Little problem with Photoshop ....

    Hi. I have a little problem with photoshop CS 4. I use a color replacement tool to change a color in some details... but when i set new color, on pictures entries only or grey or black colors and nothing other... i dont known why.... please help . Thanks. Sorry for bad english

    Usually the Color mode is the one you want for the color replacement tool, you
    might have it set to luminosity or your trying replace black or white colors.
    MTSTUNER

  • Little problem with Strings.

              I have an little problem with Strings, i make one comparision like this.
              String nombre="Javier";
              if( nombre.equalsIgnoreCase(output.getStringValue("CN_NOMBRESf",null)) )
              Wich output.getStringValue("CN_NOMBRESf",null) is "Javier" too, because I display
              this before and are equals.
              What I do wrong?.
              

    You are actually making your users key in things like
    "\026"? Not very user-friendly, I would say. But
    assuming that is the best way for you to get your
    input, or if it's just you doing the input, the way to
    change that 4-character string into the single
    character that Java represents by '\026', you would
    use a bit of code like this:char encoded =
    (char)Integer.parseInt(substring(inputString, 1),
    16);
    DrClap has the right idea, except '\026' is octal, not hex. So change the radix from 16 to 8. Unicode is usually represented like '\u002A'. So it looks like you want:String s = "\\077";
    System.out.println((char)Integer.parseInt(s.substring(1), 8));Now all you have to do is parse through the String and replace them, which I think shouldn't be too hard for you now :)

  • Little problem  ALV - Download to Excel

    Hi Friends !
    I have a little problem, when the user download the data which are in ALV, the positions of columns change .
    Example:
    In ALV. 
    1 - Column A
    2 - Column B
    3 - Column C
    In Excel
    1 - Column B
    2 - Column A
    3 - Column C
    Regards !!!

    This sounds pretty weird.  Are they just running ALV and then they do a download on the ALV screen using the Excel icon?  Are they running it with some type of Excel template?  Is it using a special layout - if so are they sure they saved the layout before they download?  Never heard of or saw this one before.  Also are you the Cesar I worked with a few years ago in Memphis?  Just wondering - don't think this will help much but let me know.

  • I have a little problem with iphoto

    Hi, i have a little problem when i used my iphoto.
    First, i'm so sorry because my english is not fluent, but i hope that you understand me.
    The problem is that, i can't see the photos when they are vertical, i mean, when i change my photos horizontal view to vertical view, i can't see the vertical photos.
    Can you help me??? i dont understand what is the problem.
    Thanks so much.
    Lorena from Colombia

    Try rebuild the library:
    Hold down the apple and option (or alt) keys and launch iPhoto. Use the resulting dialogue to rebuild.
    Regards
    TD

Maybe you are looking for