How to replace/create the changes made in plsql function that is in package

My problem here is that,
There is a sql file , contains package,In that package there are more functions .I had made changes in one function body.I want it to be created with changes made in that package without effecting remaining functions.
Here is my file
CREATE OR REPLACE PACKAGE i2_pack_match IS
-- Function to check whether date conditions are met or not
FUNCTION fn_check_date(pd_sn_earliest_start_dt IN i2_sn_details.earliest_start_date%TYPE,
pd_sn_latest_end_dt IN i2_sn_details.latest_end_date%TYPE,
pn_sn_min_duration IN i2_sn_details.minimum_duration_weeks%TYPE,
pd_tn_earliest_start_dt IN i2_tn_details.earliest_start_date%TYPE,
pd_tn_latest_end_dt IN i2_tn_details.latest_end_date%TYPE,
pn_tn_min_duration IN i2_tn_details.minimum_duration_weeks%TYPE,
pn_date_margin IN NUMBER)
RETURN BOOLEAN;
FUNCTION fn_check_degree(ps_sn_degree IN i2_sn_details.degree%TYPE,
ps_tn_degree IN i2_tn_details.degree%TYPE)
RETURN BOOLEAN;/
show errors
PROMPT Creating Package Body PACK_MATCH ...
CREATE OR REPLACE PACKAGE BODY i2_pack_match IS
FUNCTION fn_check_date(pd_sn_earliest_start_dt IN i2_sn_details.earliest_start_date%TYPE,
pd_sn_latest_end_dt IN i2_sn_details.latest_end_date%TYPE,
pn_sn_min_duration IN i2_sn_details.minimum_duration_weeks%TYPE,
pd_tn_earliest_start_dt IN i2_tn_details.earliest_start_date%TYPE,
pd_tn_latest_end_dt IN i2_tn_details.latest_end_date%TYPE,
pn_tn_min_duration IN i2_tn_details.minimum_duration_weeks%TYPE,
pn_date_margin IN NUMBER)
RETURN BOOLEAN IS
lb_ok BOOLEAN := TRUE;
ld_sn_latest_start_date DATE;
ld_tn_latest_start_date DATE;
BEGIN
ld_sn_latest_start_date := pd_sn_latest_end_dt - (pn_sn_min_duration * 7) +
pn_date_margin;
ld_tn_latest_start_date := pd_tn_latest_end_dt - (pn_tn_min_duration * 7) +
pn_date_margin;
IF (pd_tn_earliest_start_dt > ld_sn_latest_start_date) OR
(ld_tn_latest_start_date < pd_sn_earliest_start_dt) THEN
--dbms_output.put_line('Date condition failed');
lb_ok := FALSE;
END IF;
RETURN lb_ok;
END;
FUNCTION fn_check_degree(ps_sn_degree IN i2_sn_details.degree%TYPE,
ps_tn_degree IN i2_tn_details.degree%TYPE)
RETURN BOOLEAN IS
lb_ok BOOLEAN := TRUE;
BEGIN
Vijaya-341-----Get the ALL count data equal to sum of Undergraduate,Bachelor and Masters count----------------------
IF ps_tn_degree != -1 THEN
IF ps_sn_degree = 75 THEN
IF ps_tn_degree > 0 AND ps_sn_degree > 0 AND ps_tn_degree = ps_sn_degree THEN
--dbms_output.put_line('Degree condition failed');
lb_ok := TRUE;
END IF;
ELSIF ps_sn_degree = 50 THEN
IF ps_tn_degree > 0 AND ps_sn_degree > 0 AND ps_tn_degree = ps_sn_degree THEN
lb_ok := TRUE;
END IF;
ELSIF ps_sn_degree = 25 THEN
IF ps_tn_degree > 0 AND ps_sn_degree > 0 AND ps_tn_degree = ps_sn_degree THEN
lb_ok := TRUE;
END IF;
END IF;
ELSIF (ps_tn_degree = -1) AND (ps_sn_degree = 50 OR ps_sn_degree = 25 OR ps_sn_degree = 75) THEN
lb_ok := TRUE;
END IF;
Vijaya-341---------------------------------------END-------------------------
RETURN lb_ok;
END;
END;
show errors
i made changes in function fn_check_degree.
How can i create in oracle ?Plz any one help me.

You need to get that revised code into the database - what you are doing with the 'alter package' command is simply recompiling what is already in the database (not your new code).
In SQL*Plus:
sql>@c:\myfile.sqlwhere c:\myfile.sql is the name of the file.
Running this script will then replace the code stored in the database with the new code from your file.

Similar Messages

  • How to find out the changes made to a photo in numbers rather than in graphs..

    How to find out the changes made to a photo in numbers rather than in graphs..

    We need to know a lot more to help you. Please provide answers to the questions listed here: "FAQ: What information should I provide when asking a question on this forum?"

  • How to find out the changes made to the customized table entries

    Hi Team
    i want to know the changes made to the customized table. i have a 'Z' table in my production system, in that table i would like to know whether any table entry is deleted or not. if at all there is any deletion happened, i want to know who had done it.
    So i request you to please let me know the procedure for the same.
    Thanks
    Raj

    Hi Nagaraju,
                       Go to Table Maintenance (SM30)- Display mode-- Utilities-- change Logs. Give the Date range. before giving the date range click on display status , this will show you If the display is active or not. Kindly please let me know If you need any more information on this.
    Regards
    Ram Pedarla

  • How to figure out the changes made to seeded forms

    Hi,
    I was asked to figure out changes made in 11i seeded form.They took seeded form and customized it.In that form as soon as I click on one DFF it opens another form but I'm unable to use diagnostics->examine when the new form popped up.I would like to know how to identify form name,block name and item name.Is there any other option I can use to get those details?
    Thanks,
    Kiran

    This forum is for general Oracle Forms questions. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig...

  • How to find out the changes made during posting the invoice in MIRO

    Hi Friends,
    During posting an invoice in MIRO somebody changed the invoicing party which differs from the vendor which was in PO. Is there any way out to see the record of changes, like who has changed & at what time.
    Replies will be highly appreciated.
    Regards
    Rutabhadra Panda

    Hi Rutabhadra
    you can see the Document change in the Table CDHDR
    t code : SE 16
    table CDHDR
    object : IncomingInvoice
    execute this
    see the change time and name
    Regards
    Vikrant

  • How do I see the changes made in the settlement rule?

    Dear Experts,
    I would like to see the changes that was done in the settlement rule. I have perform the following:
    In the 'maintain settlement rule' screen in project builder (CJ20N) - Goto > Change Document > All Rules.
    The system gives message that 'no change documents found - message no KD128'.
    Q: Is there any difference between settlement rule and distribution rule?
    Q: Is there anywhere else that I need to do to get the change document in settlement rule or distribution rule?
    FYI - I have change the project profiles to include(tick) change document in the Basic Data and Status Management. I believe this is not relevant to change in settlement rule.
    I appreciate your help. Thanks.
    Regards

    Hi,
    Abt your first question,
    You need a settlement rule to carry out settlement. You define the settlement rule in the sender object. The settlement rule contains the distribution rules and the settlement parameters for a sender object.
    You can maintain the settlement rule for WBS elements or networks/activities in an overview screen. You use distribution rules to stipulate which proportions of the costs are to be settled to which receiver. Costs can be distributed on the basis of:
    1. Percentages
    2. Equivalence numbers
    3. Fixed amounts
    To check changes done , you can also check t code CN60.
    Regards
    Tushar

  • How to see the changes made in tx code MN05

    Hi all,
    Do you know how can I see the changes made in tx code MN05?
    I need to know when was The output condition updated? Do you have a change record on this change?
    Thanks and regards

    Hi,
    There is a Transaction code SCU3 to display the change logs
    Goto the Transaction code and enter the  Table for MN05 and execute, it will display all the logs for MN05.
    If you didnt find any change logs here, then you have to activate the Change logs for this table.
    To activate the change logs , goto SE11 and give the table and clcik on the technical settings and you will find the Check box with CHANGE LOGS.
    Check whether it was activated or not, if not activate it.
    Thanks,
    santosh

  • How to know the changes done in one function module??

    Hi All,
    Could you please let me know how can I know the changes done in one function module?
    I am not a technical expert..I can just jump into SE37 to access the function module.. but would like to know if there are any logs for the function module screen which tells us about the versions and changes done from time to time?
    Thanks,
    Ramya

    Hi Ramya,
    There are ways to look at the modification overview for a function module
    1) In se37, after selecting the function module, click on Ctrl + Shift + F2
    2) Other way is the menupath ie Edit > Modification operations > Modification overview.
    Hope this helps you.
    Please confirm
    Regards
    R. Senthil Mareeswaran.

  • What were the changes made in Firefox 28 regarding the loading of javascript files as i am facing the issue of loading of javascript files in a wrong order??

    The javascript files are getting loaded in the reverse order in Firefox 28 but it works fine on IE, Chrome and Firefox 27 as well. So what exactly are the changes made in firefox 28 that causes this??

    The usual place to start looking for "what was changed" in a particular new version release is the Release Notes for that version. <br />
    https://www.mozilla.org/en-US/firefox/28.0/releasenotes/
    From that page you can use the hyperlink for the [https://bugzilla.mozilla.org/buglist.cgi?bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&f1=target_milestone&f2=cf_status_firefox28&f3=target_milestone&j_top=OR&o1=anywords&o2=anywords&o3=equals&query_format=advanced&resolution=FIXED&v1=mozilla28&v2=fixed%2Cverified&v3=Firefox%2028&order=bug_id&limit=0&list_id=9960032 complete list of changes in this release], which displays the '''RESOLVED, VERIFIED, CLOSED''' Bugs reports for that version. 3934 Bugs are listed there for the Firefox 28.0 Release version.

  • Swing .............how to undo the changes made by user

    Hi,
    i have created a form in swing asking for the related information from user whose value i m taking in jformetted textfield.
    now i have placed two buttons there.
    one is Apply and second is Cancel.
    when user pressed Apply button all the changes made by the user must be set where as if user clicks cancel button all the changes made by user should be undo to previously set value.
    can anybody help me how this can be done and what code should i write in action performed method
    thanks in advance
    plz reply

    thanx.
    one more thing
    In my application,there is one Button called Option when u clicked on it.It opens up one internal frame where user is asked to asked to fill some parameters.
    1) Now how can i restrict user to create one more internal frame unless first one is closed.
    2) suppose i clicked option button and it opens up internal frame where i can set the parameters and closed it.If i again click on option then i want the parameter to have wht i just set.
    3) and how can pass those parameters value to my main frame from where i m calling internal frame
    Plz reply
    Edited by: neel007 on Mar 11, 2009 8:02 PM

  • How to know the changes made to Quotations & Sales orders?

    Hi all
    I want to know how we can have the records of changes and alterations that are made in quotations and Sales orders. For example, once the quotation is created and saved, there must have been many alterations either on pricing or in terms & conditions based on the final negotiations with the customer. Please let me know how do we record the changes.

    Hi,
    what ashish told is exactly correct.You just go to the Environment-changes and execute,it will shows all the changes made for that order like pricing,payment terms etc.
    Regards,
    Hari.

  • How to Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

  • How to find the changes made in spro configuration?

    Dear Friends,
    From my client side, some configuration changes were happened directly to production client not by the consultants. How to trace this that what changes have been made through log or table. We found that in spro->utilities->change log is in switched off mode. We came to know that through this log we can find the changes happened or not. Is it so? or is there any other solution to trace it?
    Please advise.
    thanks & regards
    sankar.

    thanks friends for your prompt replies.
    But, as i said clear, the changes made to production client directly and not by any request. How can we detect who has changed the log settings.
    ****Default account assignment configuration was changed.
    Please advise.
    thanks & regards
    Sankar.

  • How to see the changes made for iPad in iTunes on my iPad?

    How to see the changes made for iPad in iTunes on my iPad? I've been transferring some pdf-files and changed the name on them in iTunes under the index books for my iPad device, but the changes do not show in iBooks-PDF. What to do?

    Yes I tried syncing a lot of times, but the changes still wouldn't show, so I did as you said by beginning from the start by adding the PDF's once again.
    Thanks for your help, it works now :-)

  • How to create the change document functionality for a dependent objects?

    May I please know how to create the change document functionality for a dependent objects?
    I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER". It seems the change hasn't been recorded.
    If the way I did to create change document for dependent object is correct, please also kindly advise the possibilities for why there is no record during testing.
    thanks in advance.

    I also have some doubts about the business object.In this case,one abstract BO hase a subnode wihich is root extended.I added the change document for this node under the category "root_extended" and then tested the function in BOBT.I got some error message "can't find the root key".Shall i redefine the method /BOFU/IF_CDO_CREATION~IS_CDO_CREATION_ACTIVE so as to solve the problem?
    Thx.

Maybe you are looking for

  • Multiple billing documents into one PDF for email

    We have a business requirement to email invoices to customers with one email, one pdf.  Our current email solution utilizes the Esker software and results in one email per invoice when we run RSNAST00 for transmission medium 5 nightly, which really i

  • Queries on Mac OS X support for Java 1.3

    Hi All I am having some trouble figuring out how to make Swing based Applets work on Mac OS X. Can anybody help me ? Queries on Mac OS X support for Java 1.3 1) Will a Java Applet compiled using Java 1.3 run on "Mac OS X" without the need for a Plugi

  • Date Format in output

    Hi All, I have a problem with Date Format while downloading to Excel. I have tried Set Mask  as well as Concatenation Method  to convert the Internal Date to DD.MM.YYYY format. I am storing the new formatted date into a Variable ( type Char length 10

  • Section for multiple universe

    Hi Guys, I have 2 data sources in my Webi report  that have the same columns inserted in the form of a Section. The column names are - Employee Name & No. of Projects. No. of Projects = Count (Project Name). Project Name is a merged dimension. Projec

  • Hi i got old mac with mac os x 10.6.8

    can i update to any latest version of the os x software or thats it?