Why do we need function if values can be retrieved from the procedures

My question is why do we need functions in Oracle when I cen retrieve the values from procedures using in out arguments ?? Anyone any comments ...

Languages usually provide more than one way of doing the same thing. This encourages different styles of coding.
I have found functions returning Boolean values useful in telling me whether the functionality in the code encapsulated in a function has worked successfully or not, in addition to returning OUT parameters that I need to use in the rest of the program. This way I can include the call to the function in IF ... Then ... end if; logic. By using this contstruct the code reads logically and is able to document the flow of control also. It helps in "killing two birds with one stone".
As one becomes more adept at using a language, one appreciates the facility of doing something more than one way, to suit one's style, I guess ...
Narayan.
null

Similar Messages

  • How can I add apple loops into Garageband on the iPad so that they can be retrieved from the loops section of the app (and not via 'import')?

    The issue with using the import function in the track is that you cant preview the sample and check it's suitability before you bring it in to the selected track.
    If samples can be added to the Garageband 'Loop Library' - that would be graet. Can anyone help?

    I think the Pearson people gave you the right advice. There is no way you can run a program that requires a Mac computer on an iDevice.

  • Why does my I-Phone 4 calendar only show apptmnts from the last 90 days?  How can I see appointments prior to then?

    Why does my I-Phone 4 calendar only show apptmnts from the last 90 days?  How can I see appointments from prior to then?

    The Sync setting only appears if you are syncing your calendar with iCloud.  If you are syncing them to another service (such as Google) you would need to go your account with that service and see if you can change the setting there.
    If you are syncing your calendar with iCloud, you should see the Sync setting, and be able to tap and change it.

  • I need to wipe my computer can i reboot from the app store

    Hi,
    I need to wipe my computer iMac 3.06 Ghz Intel Core 2 Duo and start fresh. How do I reboot? Can I reboot from the App Store (Mavericks)?
    Any help would be appreciated
    Chhers
    Bill

    You would reboot from the recovery partition. Hold cmd-R as you reboot (hold the keys down when the screen goes black and keep them held until you see the Apple logo). From there, run Disk Utility to wipe the drive, and follow the "Install OS X" prompts to reinstall the system.
    Matt

  • I am trying to pass the value of a field from the seeded page /oracle/apps/

    I am trying to pass the value of a field from the seeded page /oracle/apps/asn/opportunity/webui/OpptyDetPG. The value I want is in the VO oracle.apps.asn.opportunity.server.OpportunityDetailsVO and the field PartyName.
    I have created a button on the page whose destination URL is
    OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName={#PartyName}
    It opens the correct page, but in the URL it shows this
    http://aa.com:8005/OA_HTML/OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName=&_ti=1897289736&oapc=177&oas=x5E2TIfP1Y0FykBt1ek4ug..
    You can see that &CustName is not getting the proper value. Do I need to do something different?

    You cannot call the form with OA.jsp . This is applicable only for OAF based pages registered as a function.
    For calling a Form, use the below example:
    You have to change the application responsibility key and form function name .
    "form:PN:PN:STANDARD:XXPNTLEASE:QUERY_LEASE_ID={@QueryLeaseNumber}"
    Regards,
    Sudhakar Mani
    http://www.oraclearea51.com

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • Why do I get this error when specifying a parameter from the URL?

    Hello,
    I am trying to "install" a parameter in a page, so that it's value can be specified in the URL and a VO updated according to this value.
    Here's is the page definition file, with an executable and a binding to a method call:
    <executables>
    <invokeAction Binds="prepareMainMenuView1" id="invokeQuery"
    Refresh="prepareModel"/>
    </executables>
    <methodAction id="prepareMainMenuView1"
    InstanceName="AppModuleDataControl.dataProvider"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="prepareMainMenuView1"
    IsViewObjectMethod="true">
    <NamedData NDName="param" NDValue="#{param.root_menu}"
    NDType="java.lang.String"/>
    </methodAction>
    if I run the MyMenu application with:
    http://127.0.0.1:7101/MyMenu-ViewController-context-root/faces/menu?root_menu=anything
    then I get this exception:
    ADF: Adding the following JSF error message: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Do you know why? Where do I fail?
    I followed the isntruction here:
    http://www.jasonsdevelopercorner.com/?p=65
    So far I have not been able to read a parameter in a way, do you have any example on how can I use parameters from URL from within a single page in an unbounded task flow?
    I worked all the day on this, but with no luck.
    Thanks

    I solved the problem. The invoked method was not part of the VO, but was part of the AM.

  • Can I use stored procedures to improve data retrieval from the database?

    I have been requested to get multiple pieces of data from multiple tables and return the output in an array for use in a Java program.
    Eliminating multiple calls to the database. Currently, the data is retrieved from the database in multiple steps but to eliminate
    possible bottlenecks in the future, I created several complex sql statements.
    For instance,
    In the first table there are 20 columns of data. has a column named type which can have the one of these values: line, inn, or bsc
    In the second table there are 6 columns of data. has the additional data for type line
    In the third table there are 7 columns of data. has the additional data for type inn
    In the fourth table there are 2 columns of data. has data regardless of type
    etc...
    Depending on a specific column value retrieved (inn) from the first table:
    I need to collect all 20 columns in the first table and get all the columns in third table and the columns in the fourth table, etc.
    Question: How can I remove the duplicate primary key columns without specifying for each table the column names to be returned?
    I used the wildcard SELECT * because I didn't want to have to update the retrieval methods if additional columns are added to these
    secondary tables.
    example of my sql for type inn data:
    select * from first_table f, third_table s, fourth_table t
    where (f.column1='xxxx' and f.column2='xxxx') (the 'xxxx' are passed into the sql statement)
    and
    ((s.column1=f.column1 and s.column2=f.column2)
    and
    (f.column3=t.column1));
    Currently, I've duplicated the separate sqls for each valid type found in the first table (at least a dozen types). The only difference is
    the table name. Instead of the third table I use the second table, etc.
    The MAIN Question: How can I set this up to have one sql to handle each type? I want to eliminate having over a dozen duplicated sqls. Can I
    incorporate this into a stored procedure or something? If so, how? Can anyone provide sample coding?
    Your help is very much appreciated. Thank you.
    GD

    Hi, Salah.
    Use "Exec" in your query to run procedures.
    SAPbobsCOM.Recordset     oRS;
    oRS = (SAPbobsCOM.Recordset)pCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    oRS.DoQuery ("EXEC YourStoredProcName");
    Triggers are not supported in SDK.
    Regards,
    Aleksey

  • When I ran the bootcamp assistance for software update I get an error that it can't download from the server

    Install Mac OS X lion fine without any issue
    I'm trying to dual boot Lion and Wind 7 on different HD but when I ran the bootcamp assistance for software update I get an error that it can't download from the server.
    I also try without downloading the software and do the installation but it fail. It seem that this bootcamp is giving problem so I revert back to SN leopard and it does the same. Why can't the bootcamp assistance update the software, is it something that I did wrong or my system is not supporting dual booting.
    Here is my spec
    Apple Mac Pro "Quad Core" 2.66
    Identifiers: Mac Pro - MA356LL/A - MacPro1,1* - A1186

    MacPro1,1 has EFI32 and does not support Windows 7 very well, can't boot 64-bit, can't use all your RAM.
    There have always been trouble and issues, ways around those, but a big PITA too.
    Select CD-ROM Boot
    Select CD-ROM Boot Error Apple
    Nothing to do with Lion actually. Other than downloading drivers from Apple servers has been mostly hit or miss, with miss being 90%.
    I have rebuned the DVD (make a new ISO image using Imgburn etc) but now I just install Windows on PC then move the drive to the Mac. A lot easier.
    Without 64-bit you can't use more than 1.9GB RAM. And you need Windows 7 Pro to use both processors.

  • Need to use a Digital Camera remotely from the PC

    Hi I need to build an app that gives the user the power to control all the settings as posible of his digital camera.
    I read that I need to use TWAIN or JTWAIN but this api, uses the interface of the digital camera. For example when I want to take a picture, I select my Canon Device, and then it open the canon UI to take the photo. I don't want it. I want to build an app to control the camera with my app, no with other 3rd part soft.
    So Please if someone help me, please answer this thread.
    I know this app which make all the functions that I need to do in my app, but I don't know in which language is developed.
    This is the web site:
    http://www.breezesys.com/PSRemote/index.htm
    Maybe I need to develop this app in another language, so If someone consider this, tell me, because I don't know how to do it.
    Sorry for my english...
    Thaks a lot... I hope someone help me...

    You can download a fully functional version of Lightroom 2.3 from the links I show below. Once installed, you can use it for 30 days without a serial number, but after that you will need to purchase it otherwise it will stop functioning.
    Windows downlaod: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4360
    Mac download: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4359
    Note that the 30 day trial palces no restrictions on use (i.e. you can edit, export, create web galleries or slideshow and even make prints).

  • My imac takes about eight minutes to be fully functional after a cold start or from the sleep mode. The hard drive sounds like it has to go through a number of gyrations before being fully loaded. When I first bought the imac start up was much faster

    My Imac takes about 8 minutes to be fully functional after a restart or awakened from the sleep mode. I can hear the hard drive making a number of gyrations before it's ready to let me do stuff. This is a 5 year old machine and was much faster in the beginning. Any suggestions?

    Impossible to say however it may need more RAM, or if you have been turning it off every day it isn't given the opportunity to run it's daily, weekly and monthly maintenance. This is all done in the background in the middle of the night. I would recommend following the steps in 25 Ways to Speed Up Your Mac until you find the cause of your slowdown.

  • Windows Easy Transfer (WET) Issues with External Hard Drive - "Can't read from the source file or disk"

    I work for Office Depot, in the tech department. Basically, one of our associates was supposed to do a data backup, and re-install Windows 7, then transfer the files back. He used Windows Easy Transfer and compacted everything into a 163 GB file. 
    Now comes the hard part. When we try to put it back on his computer ((drag-and-drop to the desktop) which has been wiped back to factory settings using the recovery partition), it stops at 79.5 GB remaining (you know how it doesn't give you a % of completion,
    it just shows how many GB are remaining) and then says "Can't read from the source file or disk" and gives you an option to try again, or cancel. It gets hung up on the same point each time.
    Normally, this wouldn't be a huge issue, but the contents on the drive are his wife's architect blueprints and interior design stuff, along with wedding photos, etc, which are the only copies they have. On top of those, they have court documents and other
    important files that we are unable to access now.
    I wasn't involved with this transfer, so I'm trying to clean up the mess as best I can. I remembered that the customer's wife was Russian, and had some files typed with a Russian keyboard, so on and so forth. I wonder if that's the issue? If not, I really
    have no idea how to manually extract things from a ".mig" file, or how to diagnose what area is potentially corrupted.
    In light of this situation, we tried using "Recuva" to recover the files post-wipe, but everything was corrupted or unable to be opened, and it also extracted and recovered all of the "useless" photos, such as the skype logos, up and
    down arrows for browsers, etc (it was 160,000+ photos).
    Trying to avoid a potential lawsuit, unhappy customer, and costing the company lots of money to see if professionals can get into this external hard drive.
    Other relevant information:
    We used a Toshiba 500 GB (465 GB) external hard drive.
    Customer's computer is an HP Pavilion P6000 Series (Model No. p6520y) running Windows 7 Home Premium 64-bit Service Pack 1.
    Any other information that is needed can be provided, thanks in advance, and hopefully we can find a solution to this issue quickly!
    -John

    I think there's a lack of understanding somewhere.
    "If you even can't start the process, please unplug it from your new PC. Then head back to your new computer and plug
    the external drive back in to your new computer. "
    Unplug from new, head back to new, plug it back in? That doesn't make much sense! Haha.
    I knew what you meant though, somewhat. When I search through the drives after clicking yes (Has windows easy transfer
    already saved your files blah blah blah) I click on the transfer file and it says "Windows Easy Transfer could not open the file".
    Rather than drag-and-drop the file to the desktop, I now tried to double-click on the file itself while it was plugged
    into the computer. It opened, and it started transferring until it was about 70% completed, and then an error popped up saying "WET can't open the easy transfer file, make sure your USB device is plugged in or check your internet connection". 
    I checked, and the USB hard drive's light wasn't on. Now, I unplug it and plug it back in, and the light comes back on,
    so I click Retry, and it resets the bar back to nothing and says "Transfer time: 1 minute".
    Rather than continue trying, I clicked "Cancel" instead of Retry, and it says "Your transfer did not complete successfully."
    It says to click "view report" for more information, but there's no "view report button".
    At the moment, I am scanning the External Drive for bad sectors using the check disk tool in properties. It's frozen
    at "0 USN bytes processed".

  • Abort Could not determine a value for variable 0DAT from the authorizations

    Hi All,
    I encountered an error '/ Abort Could not determine a value for variable 0DAT from the authorizations\' when executing my query on a multiprovider in BW 3.5.
    Can anyone help me in finding a solutionn to this issue.
    Thanks,
    Kartik.

    Hi Kartik,
    I am sorry as that note is for NW2004s. Please check if 0DAT variable installed from a business content? if not then I think thats the cause of the problem.
    Hope this helps,
    Bye...

  • I can not purchase from the iTunes store because of the security question I am I do not know your security question and alternative mail has been hacked

    I can not purchase from the iTunes store because of the security question I am I do not know your security question and alternative mail has been hacked

    You need to contact Apple. Click here, phone them, and ask for the Account Security team.
    (87808)

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

Maybe you are looking for

  • How do i get rid of malware on my macbook pro

    I am not computer savvy, I tried to watch NFL live through safari and ultimately came down with a bad case of malware where I am constantly getting pop ups and my internet is extremely slow now. How can I get rid of this malware?

  • Cluster to dynamic conversion problem

    I would like to do a FFT for a sine waveform using TDS 3054B. I get the sine from the osilliscope, which privider the Amp. of 10000 points and X, deltaX step values. I want to draw its power spectrum. How can I connect them? The data type Cluster and

  • Can't find $ character for wifi password

    Hello! I have Nokia N8 Symbian Belle.I found $ by tap  insert symbols for messaging but when I tried to connect wifi at my office (password containing $) I can't find where is $. Insert symbols is disabled for that.Please help me to solve this.... Th

  • What is the syntax for a CASE statement in Crystal XI

    I'm having difficulty locating documentation for the use of CASE statements in Crystal syntax. My database administrator does not allow me to write SQL expressions so I need to covert the SQL below to Crystal Syntax. Can anyone help me? Thank you ver

  • I cannot receive text from anyone that is not on an iPhone...

    i cannot receive text from anyone that is not on an iPhone...