Function 'function name' may not used in sql

Hi Guys,
How to call a function in a form level trigger?
i created a function in program unit.In timer expired trigger i tried to call a function as
select sf1('a') from dual;Im getting below error
function sf1 may not use in sqlAdvance thanks

Hi,
If you want to assign the return value of the function to a variable then you can try
<variable_name> := sf1('a');Else, you can write
select sf1('a') into <variable_name> from dual;Hope this helps.
Regards,
Manu.

Similar Messages

  • Function 'myfunc' may not be used in SQL Options

    <p>
    Hello,
    I have created a simple function in a packege for use in an update statement. The function is
    FUNCTION myfnc(p1 IN t1.c1%TYPE)
    RETURN VARCHAR2
    IS
    BEGIN
    IF p1 = 3 THEN
    RETURN 'A';
    ELSE
    RETURN 'B';
    END IF;
    END myfnc;
    I use it in a procedure which exists in the same package as the function as follows
    Update t1
    set c1 = myfnc(c2);
    I am getting the compliation error Function 'myfunc' may not be used in SQL.
    There is no db manipulation going on and I have tried using
    PRAGMA RESTRICT_REFERENCES (myfnc, WNDS, WNPS, RNDS, RNPS);
    but to no avail.
    One other thing is that I thought this was compiling OK but then I decided to put the function in the package specification so I could unit test it using a db call. Now if I drop and recreate the package without the declaration in the specification the compile error still occurs. Perhaps that's my mind playing tricks but maybe there is something here I am not aware of.
    Any suggestions?
    </p>

    Hi,
    You found the solution.
    Although it's allowed to say
    Update     t1
    set     c1 = local_var;in a package, where local_var is not defined outside of the procedure, let alone the package, and
    although it's legal to say:
    local_var = myfnc (some_other_var); inside the package where myfnc is a private function (included in the package body, but not in the package header), still
    it is not legal to say:
    Update     t1
    set     c1 = myfnc (c2); If there is a problem with putting myfnc in the package header (for example, you don't want people calling it directly, for some reason), you can make it a stand-alone function, like Someoneelse did, or put in a different package, and give the owner of your first package (and no one else) EXECUTE privileges on it.
    As William pointed out, if myfnc is really this simple, you might not need a function at all.

  • Function name_function may not be used in SQL

    Dear forums,
    when i compiled my form that contain the function package, i got the error "Function <name_function> may not be used in SQL". But when i execute the function from sql plus, it works smoothly.
    What's the solution ?
    with great thanks,

    Hi Salim,
    as far as I understand you you try to use a function that is stored in the form. The select statement is worked on the database where your function is not known. You have to create this function on the database as you did it for using in SQLPlus.
    Regards,
    Werner

  • Customer for function SP may not have account group in sap

    Dear All,
    Not open the sales order and error show in SAP
    Customer for function SP may not have account group.

    In IMG > SD > Basic Function > Set up Partner Determination
    Check the assignment of Partner Function with the Account Group in Account Groups - Function Assignment.
    Best Regards,
    Ankur

  • Create timer function that does not use start-sleep

    Hey all I would like to create a timer function that does not use the start-sleep command because this freezes my GUI. I've wrote the start of a function but it seems to move on before the specified time has finished.
    Here's what I have:
    $Global:timerCounter=0
    $Global:timer = new-object System.Windows.Threading.DispatcherTimer
    Function Timer{
    param(
    [parameter(Mandatory=$true)]
    [int]$time
    $timer.Interval = [TimeSpan]"0:0:$($time)"
    $timer.Add_Tick({
    $Global:timerCounter++
    if($Global:timerCounter -ge 1) {
    $Global:timer.Stop()
    $timer.Start()
    Then in my script i would like to call Timer -time #of seconds. It seems that when I call it the add_tick is registered and then started but it continues on with the rest of my script. Is there a better way of doing this without using start-sleep?
    Thanks!

    Okay the issue I'm having is that I have code after the $timer.start that I don't wan't to run till a powershell job is done. In all the examples I've seen it has to come to the end of the code then it starts the tick. So in your example it comes to the
    end of of your code and showsDialog() then starts ticking.
    So:
    add-type -AssemblyName system.windows.forms
    $form=New-Object System.Windows.Forms.Form
    $btn=New-Object System.Windows.Forms.Button
    $form.Controls.Add($btn)
    $btn.add_Click({$form.Close()})
    $btn.Dock='Fill'
    $btn.Font='Lucida Console, 20.25pt, style=Bold'
    $btn.Text=[DateTime]::Now
    $timer=New-Object System.Windows.Forms.Timer
    $timer.Interval=1000
    $timer.add_Tick({$btn.Text=[DateTime]::Now})
    $timer.Start()
    $form.ShowDialog()
    #I want to do other things here but only after the ps job has finished
    Thanks I really am trying to figure this out. 
    Here is the code I'm working with I guess I'm unclear on how to order the timer and the rest of my code:
    if($syncHash.mainCopy){
    $syncHash.mainJobDone = $false
    $syncHash.writeHost = $false
    while(-not $syncHash.mainJobDone){
    [System.Windows.Forms.Application]::DoEvents()
    if($syncHash.writeHost -eq $false){
    Write-OutputBox -Message "Copying"
    $syncHash.writeHost = $true
    $syncHash.inProgress = $syncHash.mainCopy | Where-Object {$_.State -match 'running'}
    $syncHash.currentCopyTime++
    }elseif($syncHash.currentCopyTime -ge ($syncHash.averageCopyTime * 2) -and $syncHash.collectionCopyTime.Count -ne 0){
    $syncHash.Unusable += $syncHash.currentMainCopyMachine
    $syncHash.computersNotForInstall += $syncHash.currentMainCopyMachine
    $syncHash.inProgress = $null
    $syncHash.mainCopyTimedOut = $True
    Write-OutputBox -Type WARNING: -Message "$($syncHash.currentMainCopyMachine) is taking too long. Removing Job.."
    Add-Content -Path $log_path -Value "$($syncHash.currentMainCopyMachine) taking to long to copy to"
    Stop-Job $syncHash.mainCopy
    }else{
    $syncHash.inProgress = $syncHash.mainCopy | Where-Object {$_.State -match 'running'}
    Write-OutputBox -Message "." -NoNewLine
    ############################# ############# So I need it to wait right here I have other code other than in this block ############# that needs to run $syncHash.currentCopyTime++
    if(-not $syncHash.inProgress){
    $syncHash.mainJobDone = $true

  • Connection Failed: The server "name" may not exist or it is unavailable...

    So I think I know what caused this problem, but I can't figure out how to make it stop...
    When I go to print, if I try to click on the pop-up to change the default printer setting, there's a LONG delay, then I get a dialog that says:
    Connection Failed
    The server "name" may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, then try again.
    Then there's another delay and I get the message a second time. I can then select any of my printer settings and print fine, it's just an annoying delay if I click on that pop-up accidentally or need to change it.
    I have a new iMac and I migrated from my old G5. The "name" of the server it is seeking is my old G5, so that must be in the settings somewhere, but I can't find it. I tried going into the Print & Fax settings in System Preferences, deleting the printer there, and then re-adding, but that didn't clear it up.
    Thanks for any insight you can provide!
    --John

    Hmm, well, this stopped working again for me. I tried swapping ethernet and re-installing the Airport client update - to no avail. I could always see my Mac shares from PCs though. However, I have (for now) managed to connect to the PC using ip address rather than name even though finder quite clearly sees the name. Does your printer connection work by ip rather than name ? I'm going to play name lookup detective for a bit now - it's some kind of Netbios name lookup issue I guess as I've no local DNS service. resolv.conf is apparently not used so a bit of learning to do! ...
    ... nmblookup seems to work but nslookup doesn't. Looks like SL connect via Finder isn't using nmblookup properly and I can't see how to make that work. When this gets reported enough it should get a publicised work-round or a fix. If only I can get dig/nslookup to slave out to nmblookup ...must be something I can configure for that ??

  • Function name when you use NameSpace

    We must migrate our functions module in our namespace (/ITESOFT/).
    I create a function group /ITESOFT/BALANCE.
    Which name must I give to my function modules ?
       Must it begin with NameSpace:
             Function Name = /ITESOFT/Function_1 ?
       Must it begin with Any character :
             Function Name = Function_1 ?
       Must it begin with Z or Y character :
             Function Name = Z_Function_1 ?
    Thanks for your help,
    Regards,
    Charlotte Bragard

    hi Charlotte Bragard,
      We can create a function module with any name ( Not only starting with Y or Z ). No probs if you want to change the name you can change it by using the RENAME button.
    Give the actual name in SE37 and press Ctrl+F6 then give the new name.
    Nore: see where used list just before changing of the function  module.
    Regards,
    Mahi.

  • Is functionality lost by not using 'contract', but instead info records?

    My company is going through a data cleansing, and we would like to prioritize info records. What's the benefit of using "contract" over "info record" and vice versa? Do we lose functionality by dismissing contract completely? (Certainly, we would have contracts, but the legal agreement would be handled externally.)

    Hi,
    PIR Serves as a source of information for Purchasing. It contains information on a specific material and a vendor supplying the material. For example, the vendor's current pricing is stored in the info record.
    The info record allows buyers to quickly determine:
    Which materials have been previously offered or supplied by a specific vendor
    Which vendors have offered or supplied a specific material
    A contract is a type of outline purchase agreement against which release orders (releases) can be issued for agreed materials or services as and when required during a certain overall time-frame.
    Contracts are of two types:
    1. Quantity contracts - Use this type of contract if the total quantity to be ordered during the validity period of the contract is
    known in advance.
    2. Value contracts - Use this type of contract if the total value of all release orders issued against the contract is not to exceed a certain predefined value.
    Thanks
    Chandru

  • How to get table and column names thats being used in SQL , that's generating all my reports on SSRS.

    Good day,
    I searched through the forum and cant find anything.
    I have around 300 published reports on SSRS and we are busy migrating to a new system.
    They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
    We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
    Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
    Your assistance is greatly appreciated.
    I thank you.
    Andre.

    There's no straightforward method for that I guess. There are couple of things you can use to get these details
    1. query the ReportServer.dbo.Catalog table
    for getting details
    you may use script below for that
    http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
    2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
    But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Limitations of SRM-MDM by NOT using Windows + SQL Server

    Hi all,
    our consultants told us, that there are some sort of "limitations" if we install SRM-MDM other platforms than Windows + SQL Server; as example we were told, that e. g. the upload of BMECat files is not possible.
    Is that true? If yes, where can I get a full list of "platform dependent" limitations?
    We don't want to go for Windows nor SQL-Server if possible at all...
    Thanx!
    Regards,
    Markus

    Hi
    <u>Incase you are using SRM 6.0, then -></u>
    SAP SRM 6.0 is a big step forward for SRM: SRM 6.0 is the first SAP software to rely on the new user interface technology WebDynpro and the Web Application Server, rather than the previous ITS. It is also based on the completely new business rule framework (BRF) to define approval workflows. These changes are intended to improve usability and simplify workflow administration / customization, leading to better acceptance and lower TCO for our customers. However, the move to these new technologies is also a complex change and as a result, the product has experienced delays.
    With our most recent development milestone - service pack 2 in mid-July 2007 - we have made lots of progress towards completion; however, we estimated that the product was still not yet ready for Ramp-Up. As a result, we decided to release the product only in beta shipment and to a very limited set of customers (14 in total) who are being closely monitored by our development organization. Seven of these customers are actually planning to go live on the current beta shipment.
    Based on the progress made so far with Service Pack 2, we feel that we should be able to start the official Ramp-Up process on December 10th, 2007 - the target ship date for Service Pack 03. By that time, we should already have 3+ live customers, so new customers starting their projects will benefit from the experiences acquired from previous implementations.
    <u>Time plan and Recommendations</u>
    1. Ideally, we recommend that new and upgrade SRM customers wait for the start of Ramp-Up for SRM 6.0 SP03 (Dec 10th, 2007) rather than starting a project with the previous release SRM 5.0. SRM 6.0 offers many benefits compared to SRM 5.0 and should be easier to use + maintain. An Online scoping questionnaire will be available from mid October in the SAP Service Marketplace as usual.
    2. The number of Beta shipment customers is strictly limited and therefore we do not intend to ship Service Pack 2 to any additional customers besides the 14 customers currently in Beta.
    3. Implementation partners can request a demo license of the current support package 2 in the partner portal. They can set up their sandbox systems and familiarize with the new technology upfront before they enter into customer projects from Dec. 10.
    "Should you have any further questions please contact your local SAP account executive"
    <u><b>Also Please have a look at:</b></u>
    <b>https://websmp102.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000692229&</b>
    <u>Target Release to customer: Q4, 2007
    Target Completion date Ramp-Up: Q1, 2008</u>
    Re: What is MDM?
    https://forums.sdn.sap.com/click.jspa?searchID=4313192&messageID=3226958
    Getting Started with SAP NetWeaver Master Data Management [original link is broken]
    https://forums.sdn.sap.com/click.jspa?searchID=4313192&messageID=1757063
    https://forums.sdn.sap.com/click.jspa?searchID=4313133&messageID=3408029
    https://forums.sdn.sap.com/click.jspa?searchID=4313192&messageID=2857409
    https://forums.sdn.sap.com/click.jspa?searchID=4313133&messageID=3442957
    https://forums.sdn.sap.com/click.jspa?searchID=4313133&messageID=3687977
    Re: Is SRM 6.0 (SRM 2007) released for non-ramp up customers?
    Config UI not change
    Do let me know.
    Regards
    - Atul

  • File not well formed: Process instruction name (may not be 'xml') expected

    I am a WBI developer whose end result is to produce one XML file. This file will receive a number of events that will constantly append to XML file. Each appendage will contain same structure but diff data than one before. Also I have created a WBI business object to mirror the XML structure.
    However, below is my XML in a Not well formed state. My error happens at first appendage ( see second tag of ><?xml version='1.0' encoding='utf-8'?>)
    My question: Can I actually produce a correct XML file? if so how do I do this, is it a change needed in my Busines Object? And if I cannot then what are my other options.
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE BATCH_AUTO>
    <BATCH_AUTO><POLICY><POL_TRANCODE>CHKS</POL_TRANCODE><POL_EXTRACTDTE>20050602</POL_EXTRACTDTE><POL_POLICYNO>PAA-123456789</POL_POLICYNO><POL_EFFDATE>20050101</POL_EFFDATE><POL_DUEDATE>20051201</POL_DUEDATE><POL_TOTALPREMIUM>1</POL_TOTALPREMIUM><POL_ACCTBALANCE>2.00</POL_ACCTBALANCE><POL_MAILNAME1>John Doe</POL_MAILNAME1><POL_MAILNAME2>Jane Doe2</POL_MAILNAME2><POL_MAILNAME3>Mark Doe3</POL_MAILNAME3><POL_MAILADDR1>1234567891 W1 MAIN St. A ST A WA APTAPTAPTAPT 12345678 APTAPTAPTAPT 12345678</POL_MAILADDR1><POL_CANCELDATE>20050901</POL_CANCELDATE><POL_CANCELREASON>REASON</POL_CANCELREASON><POL_SUBTOTAL>7.00</POL_SUBTOTAL><POL_TOTALFEE>1</POL_TOTALFEE><POL_TOTALADJS>4.00</POL_TOTALADJS><POL_CHECKDATE>020050525</POL_CHECKDATE><POL_CHECKNO>000001</POL_CHECKNO><POL_CHKEXPLANATION>Cancelled</POL_CHKEXPLANATION><POL_CHECKAMOUNT>5</POL_CHECKAMOUNT><POL_BANKACCTNO>8765015692</POL_BANKACCTNO><POL_BANKROUTNO>719232845</POL_BANKROUTNO><POL_TOTAMTPAID>1</POL_TOTAMTPAID></POLICY></BATCH_AUTO><?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE BATCH_AUTO>
    <BATCH_AUTO><POLICY><POL_TRANCODE>CHKS</POL_TRANCODE><POL_EXTRACTDTE>20050602</POL_EXTRACTDTE><POL_POLICYNO>PAA-123456789</POL_POLICYNO><POL_EFFDATE>20050101</POL_EFFDATE><POL_DUEDATE>20051201</POL_DUEDATE><POL_TOTALPREMIUM>1</POL_TOTALPREMIUM><POL_ACCTBALANCE>2.00</POL_ACCTBALANCE><POL_MAILNAME1>John Doe</POL_MAILNAME1><POL_MAILNAME2>Jane Doe2</POL_MAILNAME2><POL_MAILNAME3>Mark Doe3</POL_MAILNAME3><POL_MAILADDR1>1234567891 W1 MAIN St. A ST A WA APTAPTAPTAPT 12345678 APTAPTAPTAPT 12345678</POL_MAILADDR1><POL_CANCELDATE>20050901</POL_CANCELDATE><POL_CANCELREASON>REASON</POL_CANCELREASON><POL_SUBTOTAL>7.00</POL_SUBTOTAL><POL_TOTALFEE>1</POL_TOTALFEE><POL_TOTALADJS>4.00</POL_TOTALADJS><POL_CHECKDATE>020050525</POL_CHECKDATE><POL_CHECKNO>000001</POL_CHECKNO><POL_CHKEXPLANATION>Cancelled</POL_CHKEXPLANATION><POL_CHECKAMOUNT>5</POL_CHECKAMOUNT><POL_BANKACCTNO>8765015692</POL_BANKACCTNO><POL_BANKROUTNO>719232845</POL_BANKROUTNO><POL_TOTAMTPAID>1</POL_TOTAMTPAID></POLICY></BATCH_AUTO>

    Hi,
    The <?xml version='1.0' encoding='utf-8'?>) xml declaration can occur only once and that too at the very top of the xml file before everything else. I think your best bet would be to strip the xml declaration and the doctype declaration before appending. You might want to check the API documentation of the API you are using to serialize the xml to see if it supports suppressing xml and doctype declarations.
    With apache xerces, you can do
    OutputFormat.setOmitXMLDeclaration(true);
    where OutputFormat dictates what underlying serialized is used to serialize the document based on the specified method.
    Hope this helps.
    Cheers,
    vidyut

  • How to set column names when not using object of row data in  constructer

    hello i am using JTable constructer as
    public JTable(int numRows,
    int numColumns)
    can i set column names for the columns .How?

    hi,
    sure you can: Create a subclass of DefaultTableModel and overwrite the method public String getColumnName(int) which returns the column name of a specific column. Then use this subclass as the data model for the table.
    best regards, Michael

  • SQL ERROR of "CONCAT is not a recognized built-in function name in SQL"

    Normally the function of "CONCAT( )" is used in SQL to combine two strings together. 
    In SAP B1, however, you get the error message in the Subject line above when you try to use it and there is not much help there as to what to do.  The solution is so simple you are going to fall over. I have had so many questions about this one function and several folks have asked me to post this, as they spent hours going through various permutations with no success. 
    If you have had experience with some other SQL than what is in SAP B1, the following puts the city name and state name from the CRD1 table into one string in the final results:
    <b>CONCAT(T0.City, '  ', T0.State) AS ‘Combined City and State’,</b>
    BUT in SAP B1, the above will error out...so what do you do?
    Get down to the real basics and use the plus sign.  Go ahead, try it:
    <b>(T0.City + ' ' + T0.State) AS 'Combined City and State',</b>
    Note that the single quotation marks have a space between them to give you space between the city name and the state name...you could put a comma and a space between the single quotation marks, if you want to.
    Can you believe what a simple solution that is? I have pages full of this stuff from where the SQL gives you a message and no resolution...
    OK - Huy, Krisha, John, and Charles - I have no idea if it will help anyone or not, but I promised you I would post...so there it is...pass it on to your compatriots!
    Thanks all - Zal

    OK Suda - maybe I was not too clear...sorry.  Now to your points...
    WHY:
    "CONCAT ( )" is a very common operation command in other SQL I have used and studied. Most folks having experience in SQL would think this is a "standard" operative.  When folks are new to SAP B1 and they try to use "CONCAT ( )", they get the error message as shown in the Subject line.
    WHERE YOU GET MESSAGE:
    You get the error message in the Query Window where you type in/change SQL  and after you have executed the query.  Error messages appear at the very bottom of the Query Window in red.  The words in the Subject line are part of an exact copy from that line.
    APPLYING THE QUERY:
    When I hold instruction on SQL, I give exercises for folks to do.  This was nothing more than part of an exercise to demonstrate how one can combine two fields in one column in a query and how it comes out on a report (we combine other fields in the same "address" exercise to create "labels" using the Print Layout Designer).  I know, nothing very earth shattering, but each training script I create has ONE specific objective since the scripts I write are for users and some might have experience from other packages.
    WITH OR WITHOUT PARENTHESIS:
    Thanks - yes, it also works without parenthesis.
    But when someone is new to SQL, the lengthy "one-liner" created by the SAP B1 Query Generator can be a bit difficult to read so I have developed a writing and format standard to make reading the SQL easier by breaking it up. The format standard also makes it easier to draw attention to one particular line on an overhead and for the student to write comments or notes on the page.  But one writing standard is that the students use parenthesis after a particular command [for example, SUM( ), MIN ( ), MAX( ), AVG( ), etc].  It might be seen as useless for experienced persons, but I have found that folks can "get it" better when you give them small rules like this one.  If you want to see a bit more of that standard, there is another item (titled Reconciliation by a person named Shwu?) somewhere on the forum where I laid out an entire SQL for pre-upgrade reconciliation.  I tend to document A LOT since I am writing SQL for several clients and sometimes refer back to old ones.  The standard might be funky, and maybe someone else has a better way, but heck - it works for me!
    Thanks for pointing out where I was a bit confusing in the original message.  I don't know how these Reward Points work, but consider yourself getting a "Z" point for those "S" points in your message.
    Take care - Zal

  • Custom Authentication in 4.2 will not save Authentication Function Name

    Upgrade from 4.0 to 4.2.
    When creating a new Custom Authentication the Authentication Function Name will not save in the Apex Create\Edit screen. After the Apply Changes button is clicked and the authentication scheme reopened - the Authentication Function Name will be cleared. If PL/SQL code was populated in the source field - it will still be present.
    Looking in the WWV_FLOW_AUTHENTICATIONS table - a new record is created but attribute_03 (this seems be where the Function Name is stored) attribute_05 and attribute_15 are null. The PL/SQL entered in Apex is there in the PLSQL_CODE field.
    All preexisting Custom Authentications that existed - there fields are populated and still work correctly. However, if you edit the Authentication Scheme in Apex it nulls out those fields in the WWV_FLOW_AUTHENTICATIONS table and the scheme no longer works.
    I can manually set attribute_03 to my function name, and attribute_05 to 'N' in the WWV_FLOW_AUTHENTICATIONS table and the Authentication scheme will work as long as you never try to edit it and save inside APEX( these fields are nulled out if you do this).
    Also - Authorizations schemes are behaving similarly.
    Checking the WWV_FLOW_SECURITY_SCHEMES table - attribute_01 is always NULL.
    No error is ever given inside the Apex designer.
    Any ideas how I can debug this?
    10.2.0.4.0 DB.
    Edited by: Bill14 on Nov 27, 2012 7:32 AM

    That's what happens when you don't pay attention to what you are typing (me that is). Edited original post.
    DB version is 10.2.0.4.0 (11.5.10 is our ebiz version)
    The PL_SQL column in WWV_FLOW_AUTHENTICATIONS is a CLOB. Looking at a a data view in Toad it abbreviates the field to say(HUGECLOB).
    This does not occur on apex.oracle.com and all of our 4.0 installs still behave as expected. The DBA said that he checked the install logs and did not see anyting out of order. I've never done an APEX install, is there a specific log file (or naming convention for a logfile) that I can tell him to look in or look for?

  • Print message in function name not present

    I have to execute a function from a table . It is like
    cursor c1 is select fun_name from config_Table loop
    v_format_sql := 'select '||c1.fun_name|| ' from dual ';
    execute immediate v_format_sql into format_count;
    end loop;
    But if the function in the config_Table is not there or the function name is wrong it exits from the program
    Please help me to print the text "function name wrong" if the function name does not exists in the database.

    Hi,
    You can do it like this:
    SELECT COUNT(*) INTO v_func_count FROM user_objects
    WHERE OBJECT_TYPE='FUNCTION' AND STATUS='VALID'
    AND object_name = TO_UPPER(c1.fun_name);
    IF v_func_count = 0 THEN
    -- Function does not exist or not in valid state.
    END IF;
    Regards

Maybe you are looking for

  • 3000 J115 7387 - Current BIOS 2NKT31A doesn't support 4gb RAM

    I have a Lenovo 3000 Desktop J115 7387-26u and the current BIOS, just downloaded and tested from Lenovo's "support" site, doesn't support 4gb of RAM properly.  I have dual 2gb DIMMs, for a total of 4gb, and both Lenovo's PC-Doctor diagnostics and ano

  • Link between SD MM FI HR PP

    Hi All,    Can anybody tell me the links between SD, MM, FI, HR, PP modules with Table name and Field Name. It will be of immensly helpfull. Thanks in Advance. Ajoy

  • Ichat/internet disconnecting when lid is closed

    Hello, Whenever i'm online using ichat or I doing anything internet-related, when i shut the cover of the computer everything signs off....i get disconnected from the internet completely and kicked off of ichat/aim. how can i shut this off? Thank you

  • Where can I modify my custom brushes in Photoshop CS2?

    HI all, So I'm trying to make a custom brush. I have my brush defined from a Photoshop document. But I cannot find the settings for that brush. How can I adjust the scatter and spacing? Am I missing a menu or Settings pane? by the way, I'm running Ad

  • Price group

    Hello, I need to assign price group to all of my customers who currently don't have price group. How do i figure out which customers who don't have price group assigned to them. Is there any tabel from where I can fetch this information. Thank you in