How to make a procedure invalidate

Hi every one
we are having packages containing procedure.The procedures/packages are wrapped and depolyed to sites.often I need to make invalidate(inoerative) some procedures of a package without disturbing other procedures. I dont want to recompile the procedure/package and distribute it again.
For example
package A contains procedure x and procedure y.
some how i make a.x invalid and still make a.y valid without recompiling package a and redistributing.
Is there any soultion where i need to update some system table and a.x becomes invalid at client side.
Pl help
Prashant

prashant13 wrote:
Actualy I had to do it at around 50 remote sites.The connectivity is thrugh dial up connection and many a times it breaks . I am using form 6i deployed on app server 9i with back end 8i db on each loaction.
As there is connectivity problem , I do not intend to sent a recomplied form or recompiled package , instead a simple update like
update (some system table ) set packa.proc y as invlaid/no use/inoperative
commitOk, one more time, repeat after me... ;)
You cannot invalidate a procedure within a package. You can only invalidate the whole package.
The data dictionary stores database objects which are marked as valid or invalid. The package itself is considered an object, whereas the procedures within a package are not objects in their own right, they are just a part of the object which is the package. Hence why you cannot invalid a part of a package.

Similar Messages

  • How to make a procedure from a select statement please.....

    Dear All,
    i am new to oracle db, but i do have nice knowledge on sql in sql server, could you please help me.,,,,, in the below issue
    i do have below query in oracle db just joining two views,
    select docview.firstname as "First Name", docview.lastname as "Last Name", docview.mrn as "MRN", docview.physician as "Physician", docview.surgicalcong "Surgical Consent Missing", docview.admissionnotemissing "Admin Assessment Missing",
    (case (docview.doctype) when 135 then 'Doctor Chart Checklist' else 'DS Chart Checklist' end) as doctypename,
    docview.hpmissing "History & Physical Missing", docview.nursingassessment "Nursing Admission/Assessment", docview.anesthesiologymissing "Anesthe Consultation Missing", docview.medicalevalmissing "Medical Evaluation Missing", docview.Doctorlabresultmissing "Doctor Lab Results Missing", docview.outsidelabresultmissing "Outside Lab Results Missing", docview.chestxraymissing "Chest X-Ray Missing",
    docview.ekgmissing "Ekg Missing", docview.cardioechomissing "Cardio Echo Missing",docview.stresstestmissing "Stress Test Missing", docview.pulmonaryfunctionmissing "Pulmonary Function Missing"
    from DoctorMainView docview inner join DoctoSurgicalView surgicalView on docview.accountid= surgicalView.accountid and docview.mrn= surgicalView.mrn and docview.physician = surgicalView.physician
    and docview.lastname=surgicalView.lastname
    where docview.doctype in (23,61)
    Order by docview.firstname
    how can i make a procedure with below two steps,
    1) load the result of above query to some temp table / or even a fixed table (which ever easier)
    2) list all data from the temp table / fixed table created in first step
    so in the final expecting result is
    execute myprocnamehere -- will result same as running above query
    please help me
    thanks a ton in advance
    i greatful to you all
    Best Regards
    Buzzi

    Why would you want to extract all of the results from the database and write them to a table just so you could read them back out again? Wouldn't it be simpler just to return the results in one shot?
    In general the procedure and call would look something like this:
    SQL> create or replace procedure myprocnamehere
      2     ( p_results out sys_refcursor )
      3  as
      4  begin
      5     open p_results for
      6        select 'Results here' as results from dual;
      7  end;
      8  /
    Procedure created.
    SQL> var myresultset refcursor
    SQL>
    SQL> call myprocnamehere(:myresultset);
    Call completed.
    SQL> print :myresultset
    RESULTS
    Results here
    1 row selected.Edited by: William Robertson on Feb 8, 2011 7:13 PM

  • How to make priceing procedure in outgoing tax

    hi
    Please explian step by step how to make the pricein procedure in outgoing tax

    Welcome to the forum.  Before posting any question, you should search the forum to find out whether it has already been answered.  Also please try to post your query with some clarity.
    thanks
    G. Lakshmipathi

  • How to make automated procedure in Oracle

    Hello:
    I'm using PL/SQL Developer Version: 7.0.3.1123 and Oracle 11g. I've written the following procedure:
    INSERT INTO refill_summary
    SELECT to_date(to_char(RefillDate, 'dd-MON-YYYY')),
    SUM(REFILLAMOUNT),
    0,
    SUM(REFILLAMOUNT)
    FROM refill_cdr
    WHERE RefillDate BETWEEN to_date('03-AUG-2011 00:00:00', 'dd-MON-YYYY HH24:MI:SS') AND
    to_date('03-AUG-2011 23:59:59', 'dd-MON-YYYY HH24:MI:SS')
    GROUP BY to_date(to_char(RefillDate, 'dd-MON-YYYY')), 0
    It summarizes from data from detail table and inserts into summary table.
    Now I want to run it automatically everyday at 8:00:00 AM. And it'll summarizes the data of previous date and insert into summary table. i.e Suppose today is 20-AUGUST-2011. The script will run at 8:00:00 AM (20 Aug, 2011) but it'll summarize the data of date 19-AUGUST-2011 and insert summary into summary table.
    Please tell me where to modify my script (rewrite) and tell me the steps to make it automated.
    Thanks in advance.
    -Tanvir

    Note you're on the Oracle SQL Developer forum, not the third party PL/SQL Developer... please use their forum.
    If you want to do it in pure SQL, you read the docs about DBMS_SCHEDULER and/or ask in the SQL And PL/SQL forum.
    Have fun,
    K.

  • How to compile my procedure.

    create or replace procedure sp_trans_log(i_trans_id number) as
    TYPE tab_trans IS RECORD
    v_table_name varchar2(20),
    v_mode varchar2(3)
    TYPE tb_trans_tbl IS TABLE OF tab_trans INDEX BY BINARY_INTEGER ;
    v_trans_tbl tb_trans_tbl;
    begin
    execute immediate 'select table_name,mode from transaction_detail where i_trans_id = 1'
    bulk collect into v_trans_tbl;
    FOR i IN 1..v_trans_tbl.COUNT LOOP
    if v_trans_tbl(i).mode = 'I' then
    -- My procedure is not getting compiled because of the below statement. The sql file gets executed based on
    the no of records present in pl sql table . How to make the procedure a compiled one.
    @C:\gaioscodes\jul20\thatinsert.sql v_trans_tbl(i).v_table_name;
    end if;
    if v_trans_tbl(i).mode = 'U' then
    @C:\gaioscodes\jul20\thatupdatescript v_trans_tbl(i).v_table_name;
    end if;
    if v_trans_tbl(i).mode = 'D' then
    @C:\gaioscodes\jul20\thatDELETE v_trans_tbl(i).v_table_name;
    end if;
    end loop;
    end;

    Vinodh2 wrote:
    begin
    prompt set serveroutput on
    end;
    the above file is test.sql
    i am writing a code as below:
    begin
    @c:\test.sql;
    end;
    "@", "prompt" and "set serveroutput on" are all SQL*Plus commands. You cannot issue these inside PL/SQL code.
    Let's keep it simple and assume you have a script called "runme.sql" and it contains the following:
    set serveroutput on
    spool c:\tmp.output.txt
    begin
      my_procedure(123);
    end;
    spool offand the my_procedure procedure is like:
    PROCEDURE my_procedure(p_value IN NUMBER) IS
    BEGIN
      DBMS_OUTPUT(TO_CHAR(p_value*p_value,'fm999999')); -- display the square of the number
    END;and you want to put that into a procedure on the database.
    Firstly, the "set serveroutput on" is an SQL*Plus command that enables the output buffer to be displayed if any code uses DBMS_OUTPUT to put out information.
    PL/SQL has no user interface, so there is no such concept as a place where output can be displayed. Therefore we will just have to abandon the set serveroutput on statement for our PL/SQL
    Next, "spool" is a SQL*Plus command that takes output and puts it into the specified file. PL/SQL doesn't have a native spool feature, but it does have packages that allow data to be written into files. e.g. UTL_FILE. So we can do something with that to convert it.
    Next the procedure call. It simply does some calculations and outputs the data using DBMS_OUTPUT, which our SQL*Plus script is capturing and putting out to the spool file. Hang on though, we can't spool in PL/SQL so that procedure will have to be re-written a little.
    So let's just put all that into our procedure and make life simple...
    CREATE OR REPLACE DIRECTORY MYDIR AS 'C:\TMP'
    PROCEDURE my_procedure(p_value IN NUMBER) IS
      fh  UTL_FILE.FILE_TYPE;
    BEGIN
      fh := UTL_FILE.FOPEN('MYDIR','output.txt','w',32767);
      -- DBMS_OUTPUT(p_value*p_value); -- display the square of the number
      UTL_FILE.PUT_LINE(fh, TO_CHAR(p_value,'fm999999'));
      UTL_FILE.FCLOSE(fh);
    END;
    /This procedure now opens a file, writes out the data and closes the file again. No spooling, no server output using DBMS_OUTPUT, just all self-contained within the PL/SQL code.
    Now, you need to do something similar with your own code. Take what you are doing in your scripts and put them into procedures and just have one procedure call other procedures as necessary. Stop confusing yourself by mixing SQL*Plus scipts and PL/SQL code.

  • How to make a precalculated query

    Hi guys!,
    my problem is this: i have a query, but it last too much to execute, i heard about do it precalculated throught a job after the load of the infocube, i dont know how to make a query precalculated, 1- please can you tell me how to do it  step by step? , 2- the query has one variable of input (You have to write Month/year ), how can i do to the precalculated query take  this variable automatic of the actual month/year, thanks

    Hi Jorge,
    This link has step by step Procedure....
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a101b894-0b01-0010-6c90-e70766b33256
    Hope it answers your query,
    Thanks

  • How to make a job run on a appointed node

    I have a problem. The database is Oracle 10g, RAC, two nodes
    There are some job which run on everyday night. Now, something happened, the job run on Node A can't work as normal, but if run on node B, It will work well.
    so I just want to submit the jobs on Node B, I submited the jobs on Node B, but the jobs always run on Node A.
    I want to know how to make a job run on a appointed node.

    the Job just transfer some procedure to add partitions for some table, to merge the records from some tables to one table and so on.
    the problem is when the job run on Node A, it is very very slow, the procedure would run hours and not success end, but if on Node B it will successfully end in seconds.
    restart the Node A would be a way for the problem, but may it will leave a hidden trouble. I want save the scene to find out the problem
    so can you help me

  • How to make entry for transit loss in the system

    Hello to all,
    I am having an issue with one subCon material.
    Suppose,
    Material A is the product required of 3000 MT Qty.
    SubCon vendor have sent that qty, but there is a transit loss of 500 MT.
    How to make entry for this transit loss in the system.
    regards,
    Anisha

    correct me if i am wrong-
    ur scenario is
    for making material A ,
    3000 MT of material B required.
    but for producing A vendor uses 3500MT of B
    solution : if this ia the case then u can overwrite the value of B at GRN from 3000MT to 3500MT.
    OR
    ur scenario is -
    u require material A of 3000MT
    vendor sends u 3000MT
    but actualy u recieve 2500MT
    and u have to pay for 3000MT as per bill
    solution : if this is ur scenario then.
    prerequisite-activate direct posting to G/L and material at MIRO
    Path - SPRO->MM->LIV->activate direct posting to G/L and material at MIRO.
    now procedure is -
    step 1) do GR for 2500MT
    step2) in LIV pay to vendor for 3000MT for that put 500 qty in material tab and the relavent amount.
    in this way loss in transite will be book on inventory.
    regards,
    sujit

  • How to make use of SE37- Function Module & how to find out the table?

    Hi ,
    1.Could anyone help me what's this SE37-Function module is all about,How to make use of this?
    For Eg,If i want to delete a BOM permanently from the system then I have to use the Function module CM_DB_DEL_FROM_ROOT_BOM.
    But after giving the particular name what should i do?
    Please help me.
    2.How to find out the respective table for a particular field sya for T code-COGI, T code MFBF,where its values are getting populated.,Please help in this issue.
    Thanks in adavnce for spending some time
    Raj.S

    Hi Raj
    Function Modules
    Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
    The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
    Check this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    You can execute function module in SE37ie you can perform the activiites defined in the function module by executing it.
    By deleting BOM you mention the FM name in se37 and execute. In some function module it will ask input parameters as developed in the program , you have to give the input parameters and execute.

  • How to make plant in shipping cond tab for line item in sales doc mandatory

    Hi
    How to make plant as mandatory for a sales document say quotation mandatory ? I went to SPRO-> Basic Fucntion - > log of incomplete terms ->  Define incomplete Groups -> B.selected sales -Item -> Created new procedure Z001 with fielda VBAP - WERKS ,selected screen name PDE2 and checked warning check box.
    When i goto Assign incompleteness procedures I donot have option to assign it sales document item level procedure i will only get sales doc header procedure to assign it to document type quotation.
    How to make plant as mandatory for each line item in quotation?
    Thanks,
    Vaishnavi

    Include: MV45AFZB
    Form  USEREXIT_CHECK_VBAP
    In our business scenario, we have used the same ,But  Plant is mandatory only for 1st line item-
    source code:
    IF vbak-vkorg = '1000' OR vbak-vkorg = '2000'.
        IF sy-tcode = 'VA31' OR
           sy-tcode = 'VA11' OR
           sy-tcode = 'VA21' OR
           sy-tcode = 'VA41' OR
           sy-tcode = 'VA01' .
          IF vbap-werks IS INITIAL AND
             vbap-posnr EQ '000010'.
            MESSAGE e398(00) WITH 'Please enter the plant for first line'.
          ENDIF.
        ENDIF.
      ENDIF.
    Help:
    Through this form exit we are making the "plant' field (for the ist  &*
    & line item ) mandatory for the sales document . This interns helps us &
    & to create the sales document numner according to the plant (Region)  &
    *& of the Plant
    Hope it clears. take assistance of your ABAPer.

  • How to make a field profit center mandatory in sales order?

    Dear GURUS,
    Please help in getting answer for following question.
    How to make a field profit center mandatory in sales order?
    With Regards
    Sandeep D.

    Hi,
    There are 2 ways to make profit center mandatory
    1.Transaction Variant
    2.Incompletion procedure
    1.Transaction Variant
    Step 1:Goto Tcode shd0 and input transaction as va01 and give name of transaction variant as ( example. zva01 ) and click on create or F5
    Step 2.Then it takes you to sales order screen.Just click on enter untill you see profit center field.
    Step 3.check the box required against profit center.
    Step 4.click on save ( under a package name or as local object ) and exit
    Step 5.Assign transaction variant to your sales order type through tcode v0v8.
    2.Incompletion Procedure
    You can add the field  table-vbap,field- prctr,status-04,check-warning to your existing incompletion procedure Tcode- ova2 assigned to your order type in tcode vov8  and check the box - incomplete messeges for your order type through tcode vov8.
    If incompletion procedure is not assigned to your order type than you have to create a new incompletion procedure and assign it to order type.

  • How to make tax classification field mandatory in sales order ?

    Hi,
    while creating sales order, " how to make tax classification field mandatory ".
    Please tell me the procedure.
    In tcode OVA2. what are the entries for fields,table.
    Regards,
    sapsduser

    Dear ,
    Could you please share why you want to make tax Classification field mandatory in sales order.
    Maintain Tax classification field for customer in Customer Master Data = (Sales Area Data - Billing document Tab page)
    Tax Classification field for Material in Material Master Data = Sales Org. 1 View.
    While creating sales order and enter customer and material system automatically fetch the tax classification related data into sales order.
    Tax is calculated based on the ship to party.
    Hope this will help you.....
    Regards,
    Manoranjan.

  • How to create  a procedure to send a mail if the Database is down?

    Hi,
    I have created the below procedure to send a mail if the count is less than 1300. It scheduled daily @ 15 30 hrs. Its fine.
    CREATE OR REPLACE procedure SCOTT.hrsmail
    is
    v_count number;
    begin
    Select count(*) into v_count from emp;
    if v_count < 1300
    then
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    cc => '[email protected]',
    bcc => '[email protected]',
    subject => 'Testing the UTL_MAIL Package',
    message => 'If you get this, UTL_MAIL package
    else
    null; --what you want to do here
    end if ;
    end;
    Sometime the Database is down, so the job is not running.
    How to create a procedure to send a mail if the database is down?
    Pls help me. Its highly appreciated.
    Thanks
    Nihar

    nihar wrote:
    How to create a procedure to send a mail if the database is down?And what if the database is up, but the network down? Or the database up and mail server down? Or mail server undergoing maintenance?
    There are loads of "+What if's+" - and in that respect, playing "+What if database is down..+" in this case does not make any sense. You do not use the database to monitor its own up/down status. You do not rely just on SMTP as notification protocol that the database is down.
    The correct approach would be using something like SNMP as the monitoring protocol. A monitoring system that can process SNMP and perform some basic root cause analysis (e.g. network to the database server down, database server status unknown). And this system supporting notification methods like SMTP, SMS and so on.

  • How to make use of label printing in sap smartforms

    Hi Dear,
    How to make use of label printing in sap smartforms.. I need to print four records from internal table into sap smart forms. It will
    come as four labels.All page should follow the same procedure... How to do...please help me..
    Regards,
    Nikhil

    Hi,
    Please go through below link, would be helpfull for you.
    [http://help.sap.com/saphelp_nw04/helpdata/EN/6b/54b4b8cbfb11d2998c0000e83dd9fc/frameset.htm]

  • How to make change in Issue list across all project sites?

    Hi,
    We all have issue list in our project sites. We need to add some values to some of the columns in that issue list. The requirement is we need these changes to reflect in all the new sites. Also how to make these changes reflect in current existing sites.
    Can anybody suggest a way to achieve this. One thing that i am aware of is creating a new project site template and associating it with EPT but that still not solves the issue for preexisting sites.
    Please help asap.
    Thanks in advance.

    Hi SpWrk
    If you have already created some sites. You would need to apply these changes either Programetically (Powershell or C#) or Manually.
    However, you can take the following approach to avoid this problem in future. (i.e. Your "future" changes will appear in existing sites too). I am writing the procedure breifly but let me know if you need more details on this
    1) Create a content type (e.g. "Project issues" at PWA level)
    2) Associate this content type with the Issues List in your site template as well any existing project sites. Make it a default content type for Issue lists. save your site template
    3) Create all your custom columns in this new Content type (changing OOB issue columns can break your reporting)
    4) Your changes to content type should reflect in future sites as well as existing sites (whereever the content type was appiled)
    Regards
    Hammad Arif EPM Advice Blog

Maybe you are looking for

  • How to install windows 7 on a macbook through usb drive

    So My Cd Drive is broken, And The only way to install windows is to either delete my whole hard drive and make it so I boot from the bios of the motherboard, but I don't know what kind of key to press to go into the bios of the motherboard once I del

  • Error while loading data from DataSource to InfoCube/DSO through DTP

    Hi Friends, I am trying to load data from DataSource to InfoCube/DSO through DTP and getting the following error: Exception in substep: Extraction completed Processing terminated Data package 1 / 30.04.2009 22:38:30 / Status 'Processed with Errors' W

  • Can i switch my computer to a different apple ID

    I just bought a MAC mini, The problem is  I now have multiple apple id's. I had an old one for my iTunes that I forgot about because my PC went down several years ago. I purchased an iPhone and used my e-mail address for the apple ID. I have been abl

  • SWF not Playing in Web page

    I have a swf embedded in a webpage that is not playing when accessed on the server or client machines.  In the index.htm I have the following:   When I go to the page in the browser I get no image or error message just nothing shown.  What am I missi

  • Connector cable

    does anyone know, if there is a cable available for an ipod touch, to connect the ipod to a home stereo system receiver to playback music through that system? i would imagine it would be a cable with 2 rca jacks for the receiver end and the usual plu