What is the role of the RETURN clause in a pipelined function?

I wrote several pipelined functions and they work just fine without the return clause. However in the oracle's documentation there are returns in the pipelined functions:
CREATE FUNCTION StockPivot(p refcur_pkg.refcur_t) RETURN TickerTypeSet
PIPELINED IS
  out_rec TickerType := TickerType(NULL,NULL,NULL);
  in_rec p%ROWTYPE;
BEGIN
  LOOP
    FETCH p INTO in_rec;
    EXIT WHEN p%NOTFOUND;
    -- first row
    out_rec.ticker := in_rec.Ticker;
    out_rec.PriceType := 'O';
    out_rec.price := in_rec.OpenPrice;
    PIPE ROW(out_rec);
    -- second row
    out_rec.PriceType := 'C';  
    out_rec.Price := in_rec.ClosePrice;
    PIPE ROW(out_rec);
  END LOOP;
  CLOSE p;
  RETURN;
END;
/http://docs.oracle.com/cd/E11882_01/appdev.112/e10765/pipe_paral_tbl.htm#CHDJEGHC
Moreover, at least in PL/SQL developer I recieve hints that my pipelined functions return no values, though as I said the functions work smoothly. So is there a need in the return clause in pipelined functions or it is redundant?
My oracle version is 11.2.0.2.0

As already mentioned, in later versions of the database it doesn't appear to be necessary, however, it IS good programming practice (and necessary in non-pipelined functions) to always ensure a function has a RETURN statement in it. It could be a 'side effect' (read that as bug if you like) that it doesn't appear to be necessary, so you would be best to ensure you DO include a RETURN statement, as documented.

Similar Messages

  • What BAPI's use the ERM of the SAP GRC AC 5.3 to create the roles in the R/

    Hello,
    Does somebody knows what BAPI's use the ERM of the SAP GRC AC 5.3 to create the roles in the R/3?
    Thank you in advance.
    Pablo Mortera.

    Pablo,
       I don't have access to the system right now. Go to SE38 and search for 'Virsa' BAPIs...it will list all the ERM BAPIs under RE. The naming convention is pretty straightforward so you will be able to find a create role BAPI. If you open this BAPI, you will be able to find the SAP delivered BAPI which is being used in PFCG.
    Alpesh

  • HT3819 what is the role of the internet connection in home sharing. is home sharing using up my limited internet download allowance.n

    What is the role of the internet in using Home Sharing. Does using home sharing use up my limited amount of available internet download ?
    Thanks Mike Anderson

    Home sharing allows you to play music across devices via wifi, so it shouldn't impact your limited amount. Think of it as streaming as opposed to downloading.

  • What is the role of the Email Def field in 'Password Warning Task'?

    I created a custom Email Def in DC and provided its name in 'Email Definition Name' field under Parameters. But when I ran the job, that email def was not picked for sending email. Instead a notification template 'Password Warning Notification' was used.
    Not understanding the role of the 'Email Definition Name' field.
    Thanks

    The Notification framework has taken over the OOTB Email functionality and Email Definition from The Design Console is not used OOTB...
    However, it is still provided for the sake of back-ward compatibility..
    Also, you can still use the Email Definition from DC in your custom java code to send Emails... We still do it in some projects...
    To leasrn more about Notification services follow this link:-
    If it is OIM 11G R2
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/notpart.htm#sthref1373
    And if it is OIM 11G R1:-
    http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/notification.htm#OMADM4443

  • Error in "Configure the Role of the Integration Service",pls,help me :-(

    Hi Guru:
    When i run the Template Installer,I got the following error in the step 19:"Configure the Role of the Integration Service"
    ===================================================
    Element 'SXMB_SET_ROLE_TO_IS':ONLY_ONE_CENTRAL_XMB
    Element 'SAPDEMO.E01.Backend.Unclassified':!AbapConfigurationWriter.FM_CALL!SXMB_SET_ROLE_TO_IS!AbapConfigurationWriter.FAILED!
    ===================================================
    What can i do whit this error?are there anyone who encountered this problem so far?
    Best regards
    alex zhang

    Hi,
    Are you installing temp. Installer with Admin user id, make sure this user should have all necessary roles for installations. Check and try to login in SDM.
    THanks
    Amit lal
    Reward points if answer suits your requirement.

  • You can get Roles but can you get the Role of the user

    Can you display or hide items dependant on the roles of the logged in user is assigned too.
    I know you can do this for the menu using menu.json
    "visible": true,
            "applyIf": {
                "userHasRoles": ["Administrators"]
    But what about for other elements inside the app. Is there a way to get the roles of the user logged in.
    Is this missing as a feature or am I missing some pieces.

    I just want to hide or remove a page element ie if(adminUserRole != 'Admin') {$('#element').remove}. Just some way to see the roles of the admin user that is logged. But yes early days.
    On a side note BC are looking to launch the project and advertise the store on the 17th is this not a bit ahead of themselves if there is a potential that apps functionality may be reduced because of new policies, restrictions etc even if only temporarily. Once apps hit the masses this may cause some tension when people loose functions they once had.
    Edit :Ok BC have already changed the date of the launch. I jumped the gun in saying this as they have it all under control.

  • How to capture the role of the user logged in  CRM

    Hi
    How to capture the role of the user logged in  CRM so as to restrict the Account group selection ; While creating a sales Order .
    Can we deternine the profile in the related view .If so how , and what tables can we use to do so.

    hi,
    I think you should check CRM table AGR_USERS.
    Regards
    Michael

  • Error of "Configure the Role of the Integration Service"

    Hi Guru:
    When i run the Template Installer,I got the following error in the step 19:"Configure the Role of the Integration Service"
    ===================================================
    Element 'SXMB_SET_ROLE_TO_IS':ONLY_ONE_CENTRAL_XMB
    Element 'SAPDEMO.E01.Backend.Unclassified':!AbapConfigurationWriter.FM_CALL!SXMB_SET_ROLE_TO_IS!AbapConfigurationWriter.FAILED!
    ===================================================
    What can i do whit this error?are there anyone who encountered this problem so far?
    Best regards
    alex zhang

    Hello Alex,
    To avoid problems while using the template installer please check prerequisites for post-installation in SAP documentation. That information can be found in SAP Help Portal (http://help.sap.com --> SAP Netweaver --> Installation and Upgrade guide --> Installation --> 2 - Installation - SAP Netweaver 2004s --> SAP NetWeaver 2004s Installation Documentation).
    Select your Operating System and Database and look for 'Post-Installation Steps for Usage Type *' in the dedicated document.
    Important: You cannot use the template installer after
      Upgrade
      Add-In installation (Exception: Configuration of Usage Type BI-Java can be
                                 executed after Add-In Installation)
      Additional usage type enablement
      System copy
    Check this Note it may help you :
      Note 923359 - Collective Note: Template Installer (CTC)
    regards
    Prasad

  • From which table we can get the Role of the User in SRM

    Hi  All,
        I need to prepare a report which displays the user and his role in srm. So from which table i can get  the role of the user if i have the Userid.
    Thanks
    Channappa Sajjanar

    Hi
    t- code
    SUIM->rOLES->BY USER ASSIGNMENT
    SELECT WITHASSIGNMENT OF USER = username
    AS A OUTPUT YOU MAY GET ROLE ASSIGNED TO THAT USER.
    if you want which FM - you debug while executing this report.
    regards
    Muthu

  • I would like to know the role of the each thread on coherence

    Help me.
    I would like to know the role of the each thread on coherence.
    There are too many kind of threads.
    Example ~
    GC Slave     GC Slave     RUNNABLE
    RMI TCP Accept-1972     RMI TCP Accept-1972     RUNNABLE
    Health Center trace subscriber     Health Center trace subscriber     RUNNABLE
    LT=0:P=342534:O=0:port=55170     LT=0:P=342534:O=0:port=55170     RUNNABLE
    Attach API wait loop     Attach API wait loop     RUNNABLE
    PacketListener1     PacketListener1     RUNNABLE
    PacketListener1P     PacketListener1P     RUNNABLE
    PacketListenerN     PacketListenerN     RUNNABLE
    Cluster|Member(Id=1, Timestamp=2013-04-05 10:45:44.655, Address=192.168.240.157:8088, MachineId=50044, Location=site:,machine:TMTEST-PC,process:5316, Role=CoherenceServer)     Cluster|Member(Id=1, Timestamp=2013-04-05 10:45:44.655, Address=192.168.240.157:8088, MachineId=50044, Location=site:,machine:TMTEST-PC,process:5316, Role=CoherenceServer)     RUNNABLE
    RT=0:P=342534:O=0:TCPTransportConnection[addr=192.168.240.157,port=55178,local=55170]     RT=0:P=342534:O=0:TCPTransportConnection[addr=192.168.240.157,port=55178,local=55170]     RUNNABLE
    Finalizer thread     Finalizer thread     RUNNABLE
    WT=10     WT=10     RUNNABLE
    main     main     TIMED_WAITING
    IpMonitor     IpMonitor     TIMED_WAITING
    Invocation:Management:EventDispatcher     Invocation:Management:EventDispatcher     TIMED_WAITING
    Invocation:Management     Invocation:Management     TIMED_WAITING
    DistributedCache     DistributedCache     TIMED_WAITING
    JMX server connection timeout 52     JMX server connection timeout 52     TIMED_WAITING
    RMI Scheduler(0)     RMI Scheduler(0)     WAITING
    Thread-6     Thread-6     WAITING
    stop JMX Server on shutdown     stop JMX Server on shutdown     WAITING
    Logger@9228429 3.7.1.7     Logger@9228429 3.7.1.7     WAITING
    PacketReceiver     PacketReceiver     WAITING
    PacketPublisher     PacketPublisher     WAITING
    PacketSpeaker     PacketSpeaker     WAITING
    WT=7     WT=7     WAITING
    WT=9     WT=9     WAITING
    -----------------------------------------------------------------------------------------------------------------------------------------------

    Briefly
    PacketListener1 PacketListener1P PacketListenerN - listening IO threads for TCMP transport protocol
    Cluster|Member(Id=1, Timestamp=2013-04-05 10:45:44.655, Address=192.168.240.157:8088, MachineId=50044, Location=site:,machine:TMTEST-PC,process:5316, Role=CoherenceServer) - main thread for cluster service (discovery, node joing / leave, etc)
    IpMonitor - IP monitor, participates in death detection scheme
    Invocation:Management:EventDispatcher - Event dispatch thread for distributed JMX service in Coherence
    Invocation:Management - main thread for distributed JMX service in Coherence
    DistributedCache - main thread for DistributedCache cache service
    Logger@9228429 3.7.1.7 - Coherence async logging thread
    PacketReceiver - Thread dispatching incomming network packets
    PacketPublisher - Thread sending out packets via TCMP
    PacketSpeaker - Thread sending out packets via TCMP (offloads some work from PacketPublisher for better core utilization)

  • Assigning the role to the group using MAXL

    Hi,
    We are using Essbase 11.1.1.3 and Hyperion Financial Reports 11.1.13.
    I have created a role called "Standard_user_HFR" in shared Services and assgined Explorer and viewer to the role and i need to assign the role to the groups and i have around 1600 groups to which i have assign the role. Is there any Maxl Script to assign the role to the groups. As of now i am manually adding the role to the group.
    Regards,
    VJ

    Also look into Aggregated Roles to possibly reduce the number of Groups.
    Oracle states:
    Aggregated roles, also known as custom roles, aggregate multiple predefined application roles. An aggregated role can contain other aggregated roles. For example, a Shared Services Administrator or Provisioning Manager can create an aggregated role that combines the Planner and View User roles of a Oracle Hyperion Planning, Fusion Edition, application. Aggregating roles can simplify the administration of applications that have several granular roles. Global Shared Services roles can be included in aggregated roles. You cannot create an aggregated role that spans applications or products.
    Thank you,
    Todd Rebner

  • Getting the role of the user running the report?

    Hello,
    I'm doing a report with Answers and need to recover the role of the user running the report. Is it possible?
    Thanks

    You can use any of the below Session Variables, click the Fx and enter the below
    VALUEOF(NQ_SESSION.displayname) - Displays the Full Name of the User that is logged in and running the report for that session
    VALUEOF(NQ_SESSION.user_alias) - Display's Alias Name of the User that is logged in and running the report for that session
    For the role, I don't think there is a Session Variable.
    Cheers!
    Royston
    Edited by: Royston Goveia on May 24, 2012 12:50 AM

  • How to get the Role of the logged in User?

    Hi All,
    Enclosed below is the code am trying to use to get the role for a logged in portal user. But it fails
    1. Due to class path errors although I have imported the necessary jar files.
    2. Am unable to invoke/find getSAPUser() method or invoke the UMFactory.
    Iterator rit = null;
    IWDClientUser clientUser = WDClientUser.getCurrentUser();
    IUser user = clientUser.getSAPUser();
    rit = user.getRoles(true);
    IRoleFactory rfact = UMFactory.getRoleFactory();
    while (rit.hasNext()) {
    String roleName = (String) rit.next();
    IRole role = rfact.getRole(roleName);
    wdContext.currentContextElement().setRole(role);
    What could be the problem and what are the jars that need to imported as I am using EP7.0
    Thanks for all your help in advance.
    Best regards,
    Divya

    Hi Divya,
    Add WD_RUNTIME/com.sap.security/lib/com.sap.security.api.jar to your project`s java build path.
    Best regards, Maksim Rashchynski.

  • Error while assigning the role to the user

    Hi,
    error : CJS-30196. SAPBC JSF Communication role is not assigned to the user SAPJSF.
    i am getting the fallowing error in installation with NW04S. while trying to assign the above role to the user.any body help me with the solution.
    Thanks & Regards
        kiran.B

    Duplicate Post

  • Problem while assigining the role to the user

    Hi,
    I have creadted one new user and role. then add some worksets which exists in another folder.
    when logged to the new user i can able o see the worksets with error message.(which is working fine with old user)
    Please help me how to add the worksets to the new role.
    Error Message
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)
         at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:455)
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:989)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:3193)
         at com.sap.mw.jco.JCO$Pool.initPool(JCO.java:4662)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:6060)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:6015)
         at com.sap.mw.jco.JCO.getClient(JCO.java:8663)
         at com.sap.mw.jco.webas.WebDynproExtension.addClientPool(WebDynproExtension.java:133)
    Please tell me how to solve this problem.
    Edited by: Srinivas Reddy K on Feb 13, 2008 8:49 AM

    Hello Srinivas,
    The issue is not with the user, the problem is with the JCo connection user,
    navigate to Content Administration-> Web Dynpro-> Maintain JCo connections.
    and Test all the JCo connections which are green and make if there is any error click on edit and check whether the user and password you gave for the connections are working or not.
    If the test fails, go to SU01 t.code and change the password or unlock the user. it will resolve the issue.
    Most of the cases the user used is locked.
    Hope this helps,
    Cheers-
    Pramod
    Reward Points if Helpful.

Maybe you are looking for

  • Hard Drive Replacement Option(s)..?

    Will the following hard drive properly replace my WD5000BEVT-60A0RT0 500GB inside of my HP Pavilion g7-1070us : Western Digital Scorpio Black wd5000bpkt 500GB 7200 RPM 16MB Cache 2.5" SATA 3.0Gb/s Internal Notebook Hard Drive -Bare Drive (http://www.

  • Video plays on Root folder but not in Cgi-bin folder...Help!

    Hello- I just transfered my entire website content form one domain to another and for some reson my videos will not play on the new domain whereas they played correctly in the cg-bin folder of the old domain.  I do not understand why and need your he

  • Error in Incoming payments

    Hi Gurus, When doing  Incoming payments T.C F-28 i found an error 'Only input tax is allowed for account 889000 BR01, B1 is not allowed'. B1 is the tax code. Plz tel me how to rectify this... Regards, Manoja

  • PhotoShop CS6 date on saving a jpeg

    When I am editing  document and save it as a JPEG the date and the time of the jpeg are not the current date/time.  What do I need to do to change this behavior? I would rather that the new image have the current date/time on the file. Thanks, Mike

  • Sql sorting question

    Hello, I have a table "XXDUMMY" with a column "F1". Right now, When I do a "select * from XXDUMMY", I get the following... F1 4444089014 DGV3142004 5JN430151I 7JN430151I 9JN430151I JN430151ID I want to order by (sort) the results so that I get rows w