Mass updates in 11i

The documentation for Oracle Applications 11i says that you should never update tables in the database directly with SQL, instead you should use the 11i interface or errors can occur.
Is this always true?
I want to make bulk modifications that should be relatively straightforward with SQL, but are extremely tedious to do through the 11i inteface if they must be done individually.
Can anyone tell me what a good way to make modifications similar to the following two examples for the entire database at once? If anyone knows of a good resource to determine what tables/columns are safe to modify directly with SQL, it would be very helpful as well.
1) I want to look up all Service Requests with "Open" Status for which the Status of all Tasks is either "Closed" or "Cancelled" and set the Service Request Status to "Closed".
2) I want to look up Tasks with combinations of various criteria (such as certain Status, creation dates, Owners, etc.) and change all their Status.
I want to perform alot of similar changes to large ammounts of data, so a general answer would be very helpful.
I would also like to modify a significant ammount of data in the Installed Base all at once, if possible.

Oracle doesn't provide interface tables in all the cases and some of the operation are just too clumsy. For e.g. the case mentioned in this query by you. Oracle expect someone to manually close all the Service request once all the tasks are closed.
I have worked on these kind of processes and the best way is to update Service Requests using one of Oracle provided API such as Service Request Update API in this case.
Same logic can be applied in other cases also

Similar Messages

  • Our Client gave a requirement to mass update the additional attributes in Install base for instances in Release 11i.

    Hi,
    Our Client gave a requirement to mass update the additional attributes in Install base for instances in Release 11i.
    So I tried the below code to update:
    But getting the error:
    The Object Version Number passed does not match with the one existing in Installed Base tables.
    Can any one please help how to fix it.
    Code:
    declare
    x_instance_rec CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
    p_ext_attrib_values CSI_DATASTRUCTURES_PUB.EXTEND_ATTRIB_VALUES_TBL;
    p_party_tbl CSI_DATASTRUCTURES_PUB.PARTY_TBL;
    p_account_tbl CSI_DATASTRUCTURES_PUB.PARTY_ACCOUNT_TBL;
    p_pricing_attrib_tbl CSI_DATASTRUCTURES_PUB.PRICING_ATTRIBS_TBL;
    p_org_assignments_tbl CSI_DATASTRUCTURES_PUB.ORGANIZATION_UNITS_TBL;
    p_asset_assignment_tbl CSI_DATASTRUCTURES_PUB.INSTANCE_ASSET_TBL;
    p_txn_rec CSI_DATASTRUCTURES_PUB.TRANSACTION_REC;
    x_instance_id_lst CSI_DATASTRUCTURES_PUB.ID_TBL;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_msg_index_out NUMBER;
    t_output VARCHAR2(2000);
    t_msg_dummy NUMBER;
    p_validation_level NUMBER;
    p_commit VARCHAR2 (5);
    p_init_msg_lst VARCHAR2 (500);
    cursor stg_tab_cur is select instance_id,Safety_line_type from gewind_ib_iea_values;
    TYPE stg_tab IS TABLE OF gewind_ib_iea_values%ROWTYPE INDEX BY BINARY_INTEGER;
      stg_tab_var stg_tab;
      stg_tab_bin_int BINARY_INTEGER;
    BEGIN
    x_instance_rec.instance_id := FND_API.G_MISS_NUM;
    x_instance_rec.object_version_number := FND_API.G_MISS_NUM;
    p_txn_rec.transaction_id := FND_API.G_MISS_NUM;
    p_txn_rec.transaction_date := SYSDATE;
    p_txn_rec.source_transaction_date := SYSDATE;
    p_txn_rec.transaction_type_id := 1;
    stg_tab_bin_int :=0;
    For gewind_ib_iea_values in stg_tab_cur LOOP
    stg_tab_bin_int := stg_tab_bin_int + 1;
    P_ext_attrib_values(stg_tab_bin_int).instance_id :=gewind_ib_iea_values.instance_id;
    P_ext_attrib_values(stg_tab_bin_int).attribute_id := 10023;
    P_ext_attrib_values(stg_tab_bin_int).attribute_value := gewind_ib_iea_values.Safety_line_type;
    dbms_output.put_line(P_ext_attrib_values(stg_tab_bin_int).instance_id);
    dbms_output.put_line(P_ext_attrib_values(stg_tab_bin_int).attribute_value);
    csi_item_instance_pub.update_item_instance(
    1.0,
    p_commit,
    p_init_msg_lst,
    1,
    x_instance_rec,
    p_ext_attrib_values,
    p_party_tbl,
    p_account_tbl,
    p_pricing_attrib_tbl,
    p_org_assignments_tbl,
    p_asset_assignment_tbl,
    p_txn_rec, x_instance_id_lst,
    x_return_status,
    x_msg_count,
    x_msg_data);
    commit;
    -- Output the results
    if x_msg_count > 0 then
    for j in 1 .. x_msg_count
    loop
    fnd_msg_pub.get ( j , FND_API.G_FALSE , x_msg_data , t_msg_dummy );
    t_output := ( 'Msg' || To_Char ( j ) || ': ' || x_msg_data );
    dbms_output.put_line ( SubStr ( t_output , 1 , 255 ) );
    end loop;
    end if;
    dbms_output.put_line('x_return_status = '||x_return_status);
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line('x_msg_data = '||x_msg_data);
    COMMIT;
    end loop;
    END;
    Regards,
    Ravichander

    This question is Assumed Answered -- It would be great if you could share the solution with us.
    Thanks,
    Hussein

  • Mass Update Column In Tabular Form

    Hi,
    I'm trying to create a tabular form that has a mass update column function. i.e. the tabular form will be displayed as normal but at the top of certain columns will be a text box or lov and what ever is entered into those boxes will be cascaded into the empty values in that column without refreshing the page.
    Hope that makes sense.
    I've search the forum but cant find reference, is this possible.
    Thanks Andy

    Hi,
    Just wondering if anyone had any thoughts on this.
    I can get the text to populate another cell e.g.
    http://mlw-mis-2/dev/apex/f?p=174:4
    But how can i get it to reference a column, this is what I'm using to reference another item
    onKeyUp="f_getTextUpper('P4_COL1','P4_TEXT')"
    and I've tried changing the P4_TEXT to other things like
    apex_application.g_f03 (vRow)
    apex_application.g_f03 (i)
    apex_application.g_f03
    But with no luck

  • Field BSEG-MANST. does not exist in the screen SAPMF05L 0301 in mass update

    Hi,
    I am trying to perform a mass update of dunning data (level and date) on some open items. Using the mass change function through FBL5N, I receive the error message, and the update is not performed. I cheched with the layout editor, but the fields appears in the mentioned screen. The field is also allowed for modification in customizing, for the company code. I was not able to find the dunning fields in the field status editor, in customizing.
    Any hint?
    Thanks
    Massimo

    thanks, but it doesn't apply.
    More relevant is note 322163 Line items: mass change 'Payment Method' BSEG-ZLSCH, but this refer to a program error, our release is more recent, and, furthermore, the dunning fields aren't available for change in FB02.
    Regards, Massimo

  • Mass update of a custom field at Product Revenue level

    We are trying to update a custom field at Product Revenue level using the Opportunity Web Service. The webservice call is timing out as we have thousands of Opportunities.
    I would appreciate if anybody gives input on how we can massively update a custom field using Opportunity Web Service.
    OR
    Is there a way to mass update a custom field at Product Revenue level other than using a web service.
    Thanks for your help!
    -purna

    If you are not very much obsessed with Webservices, the other workaround is the Data Loader Tool. It was discussed earlier in this forum.
    Pl refer-
    Re: Product Revebue Updation
    Hope this helps.
    Rgds,
    Amit Sahu

  • Is there a way to mass update or replace the SPM Firefighter IDs table?

    We are upgrading from GRC 5.2 to 5.3.  In 5.3 FF/SPM has added an Owners field to the FF ID table (/virsa/zffusers), which is apparently a required field because I keep getting a "Invalid Firefighter ID Owner" error when I try to look at the table.
    Is there a way to mass update, or perhaps import/replace, this table?  I am having problems trying to update this table thru the FF table screen.  When I go to save my changes, it will return the above error because not all of the FFID records have an assignment in this new Owners field.  We have over 160 FFIDs, so I can't change all of the records at the same time.  I can only get about 20 per screen and it will return that error again when I try to page forward.
    Thanks.

    Hi Bob,
    that is perfectly possible - did it a few times already.
    Export the table from within Firefighter, download the owners table (sorry, need to look up the name tomorrow - but you can't miss it), then add the owners through an Excel vlookup. Then re-import the table in Firefighter, and you're ste.
    I'm at home right now - if you have difficulties getting this done shoot me a message tomorrow and I'll send you more details.
    Frank.

  • Mass update of Item category in Sale order

    Hi all,
       Kindly guide me to do the mass updating of item category in a sale order.
       I want to update the item category of all the items in a sale order.
       User will be giving large number of sale orders as an input.
       How to proceed to achieve the same?
    Thanks in Advance,
    Regards,
    shaju

    Hi,
         We can write a function module for this by getting an input it want to change this..For eachinput we can activate this in a loop
        Is they gave a file of inputs means we can go BDC or LSMW..If before transferring we want to make only little changes means we can do this by LSMW  otherwise we can go for BDC...

  • Material Account Assignment Group, in Sales Order Mass Update

    Sd Experts,
    We just went live, our consultant updated Account assignment group at the material level but did not updated existing materials. When we caught the problem and updated exisisting materials there were some existing orders already created. Which now I am getting an account determination error due to this field being empty at the material level.
    We have some sales orders that I need to update but they are just too many, currently I have been fixing them thru VF02, for to the material and update manually.
    Does anyone has any idea how to mass update this field for all existing orders, to update "Account Assignment Group" field automatically
    Your help will be greatly appreciated.

    Hi
    In Mass transaction choose object type as #BUS2032,after executing in the next screen from the tables choose#Sales Order Item Data, and from the fields choose#AcctAssgGr (MASSSDHE)-MASSSDHEAD_S-KTGRD, now execute to find fields Sales document and Sales Document item , here load all the Sales Orders for which the change is needed along with the items for which the changes are needed execute again to find the next screen with Sales Documet, Sales Document item and Account assignment which needed to be changed,now select the entire block enter new values in the Account assignment  box in the above, click on the 'Carry out MAss change button ' and then save, it will take some time basing the change tobe carried and issues a log as to how many documents were changed
    Hope this is clear,please do a test run before.
    Regards
    Chandra

  • Mass update of new house bank in the BP record

    Our client has switched banks.  We went in and added the new bank to the bank table and the house bank table.  We then changed the default bank in the Company Details and the Payment Methods.  The BP house banks were not changed as a result of this.  Although, when we changed the default in the Company Details, it asked if we wanted to update the BP's payment terms and we told it to continue.
    Is there to mass update the vendors with this new bank?  They have thousands of vendors, and if this isn't changed, the payment wizard does not work properly.  It moves all of these transactions to the Non-included area with a message that says the BP House Bank Account does not match the default.
    Any suggestions?

    You may use DTW to update DefaultBankCode for the BP.
    Thanks,
    Gordon

  • Mass Updating of Selected Rows

    (As you can see from my low number of posts I'm new to ApEx, so any information you can provide is appreciated.)
    Hi,
    I've been asked to include what I consider a heavy duty feature on a report. It has been requested that there is a form region above a report region. The form will have some fields on it to be used to mass update selected rows.
    For instance, let's say the report is a list of employees and their dept and the form has a dropdown dept field that contains a list of depts. They want to be able to select certain employees on the report, then select a dept from the form and then click an Update Rows button. They want the selected rows to be updated with the selected dept. * Also, they don't want the report to be editable. * The only way to update any rows is thru the Update Row button.
    I'm new to ApEx and can code in JavaScript, but am not an expert in either. And, I'm still trying to figure out what JavaScript syntax works in Element Attributes, etc. fields. But, I digress.
    I have looked over several threads, and went to several demo pages, and have learned some things. Hopefully they are correct. If not, please correct me.
    - Using the Row Selector is tricky.
    - You can get the Row Selector on a regular SQL report by changing it to Updateable SQL, adding the Row Selector type, and changing it back.
    - You can only see row information on a column if the column is editable.
    I now have a report that is NOT editable and has NO editable columns. And the report has the Row Selector. Also, the ID (key) of each row is the first column of each row. (It's a link field that populates another page.) With the ID I can populate the correct record. I'm thinking I need to populate the ID again in another column into a text field and then be able to access that value on the selected rows.
    Here's my dilemma. (That is, if I'm on the right track.) I need to know which rows are selected and then access the ID (key value) of that row. After that I can let my PL/SQL do the work.
    - - 1. How does the 2nd ID need to be defined such that people can't edit it, but the value can be retrieved? And, how is this done? I assume something can be put in the Element Attributes. If so, will you please provide the code?
    - - 2. What is the trick to knowing which rows are selected? An example snippet of code would be great here too.
    - - 3. Also, tell me if I'm on the wrong track and need to provide a solution in a different way.
    Sorry for the novel, but I wanted you to have a good idea of what I'm trying to accomplish so you may provide appropriate answers.
    Thanks much, Tony

    Hi Tony,
    check out the following threads:
    Re: Reference a value within a report????
    Re: MRU - trying to restrict UPDATE to only certain users - everyone INSERT
    BTW, you don't have to use any JavaScript. When you write your "Update pl/sql process" for the tabular form, just reference you page item which contains the department for your mass update.
    eg.
    FOR ii IN 1 .. Apex_Application.g_f01.COUNT
    LOOP
        UPDATE EMPLOYEES
          SET DEPARTMENT_ID = :P4_NEW_DEPARTMENT_ID
        WHERE EMPLOYEE_ID   = Apex_Application.g_f02(Apex_Application.g_f01(ii))
    END LOOP;Hope that gives you a direction how to solve that
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Mass update of product master (lock material record)

    Hi! Does anyone know of any program that I can use to carry out mass update of product master in SRM? I am specifically looking at locking the materials. I originally intended to use LSMW and create a recording for it. However, the recording didn't work - when I clicked on the open button so that I can key in the product id, it returns back to the recording / LSMW transaction with the screen data. I did not even have a chance to proceed further.
    Any idea would be appreciated.
    Regards
    SF

    really . though you are ECS mode .
    material master must be there  right ?
    How your SRM PO will reflected ( indeed really creates in ECC i.e copy of srm PO).
    confusion here
    can you create a SC for local material and order a successful PO ?
    i know there is a product check in catalog web services - in SRM product master not necesary but your ECC must have material master right..
    Muthu

  • Mass updating of material master

    Hi,
    can any one plz tell me the process of mass updation of material master charecteristics such as classification name, classification type,charecteristics name, charecteristics value for the given materials.
    give me some brief overview so that i can proceed on that.
    I have to use either BAPI or IDOC only.
    Thanks & Regards
    Nageswar

    Hi Eswar,
    Please check with BAPI_OBJCL_CREATE_KEY. There are no of threads available on same topic. lease check for the available information in SCN.I will suggest you post this in Data transfers forum.
    Same thread
    mass updating of material master
    which was blocked by moderator  Thomas and posted the same again
    Regards,
    Madhu.
    Edited by: madhurao123 on Nov 2, 2011 11:43 AM
    Edited by: madhurao123 on Nov 2, 2011 11:45 AM
    Edited by: madhurao123 on Nov 2, 2011 11:47 AM

  • Mass updating a multi-valued field- to append the new value

    I have a question on multi-valued fields:
    I have store table with 5 multi-valued fields, say MLB, soccer, college FTBL, college Basketball, etc. 
    A store can have 4 MLBs, 2 soccer teams, and so on. 
    Say, there is a new MLB that came out called Mexico MLB team. 
    A user wanted to add this to 30 stores using a mass update.  But remember the 30 stores can have totally different sets of values in the multi-valued fields.
    How can I add this new value while still preserving the MLB team’s values of each store record?
    Does MDM not support this feature?
    I am using SAP MDM SP6
    An answer would be highly appreciated.
    Thanks
    Savi

    Savi,
    I assume you are defined these fields as multi-value lookup and linked to main table. In general, you can not because it will mess up and overwrite your multi-value entries for all of your 30 store records.
    Here is something in MDM come in handy. It is following the same concept but design your model a little differently. If you model your multi-value fields into qualified lookup table, it will be easier and optimized to handle.
    You can select all 30 records and mass-update with adding the new MLB entry into your Q-lookup table. Once you save, this mass-update action will respect all your diversity of each individual records with the new value added.
    Hope this helps
    If this answers your question, please kindly reward the points.
    Regards
    Dawei

  • Mass Update of Business Partner Data in CRM

    Hi,
    I would like to know how I can perform a mass update of business partner data in CRM and then have this replicated into R/3.
    I have found notes 802804, 876602, 859632 but these only apply to CRM 5.0 and we are currently working on CRM 4.0.  Does anyone know of anything similar which exists in CRM 4.0?
    I have checked other posts and found help files links like the one below but is this only on CRM 5.0?  (http://help.sap.com/saphelp_crm50/helpdata/en/3c/9b56fae6c7424cafcdf17370399812/frameset.htm )
    Has anyone used the tx. MASS in CRM?
    Also our volume update levels is as high as 300,000 record and updating in CRM and replicating into R/3 through the middleware is causing performance problems.
    Does anyone have any tips on the best approach for this?  Many thanks.
    Regards
    JoJo

    Mass not available in 4.0, could write your own LSMW routine but you still will create bdocs for updates so not sure how that will improve your performance.

  • Mass update of condition type in the sales order

    Dear Experts,
    we have to do mass update of one condition type for already existing sales orders with out causing any changes to the manual conditions and also for other automatically determined conditions.
    The condition type for which we have to update in sales orders is included in the pricing procedure very recently.
    Please guide me in this regard.
    Thanks and Regards
    Yoganand Pingili

    Yoganand Pingili
    Goto T code VA05 enter your criteria for sales orders selection.
    Next screen. Select all sales order you want to change price.
    Menu>EDIT>Mass change>New Pricing>select 'C'.
    This will solve your problem
    try and revert
    Edited by: Yadav on Oct 9, 2009 8:25 AM

Maybe you are looking for

  • Windows 8 and Premiere 11???  Please help

    Hi I'm on windows 8 (64 bit) and PE11.  Today I lost all my work although I had saved regularly and I have to re-render very often.  Tonight as I'm trying to re-do my day's work, I'm losing sync and entire clips keep disapearing.  It seems to be beco

  • Notification of Work item via email other than SAP mail

    Hi folks!! I am new to workflow. We have implemented workflow for Purchase Orders and getting workflow notification into SBWP-Workplace. Now we want to send notification to the private e.mail address, for this I have already made setting through T.Co

  • What are the secrets to sharp fonts in Elements 4.0?

    Hello, I am searching for tips and tricks on how to render sharper and more elegant fonts in Elements. I always select anti aliasing but somehow it never looks as finished as when I use a publishing program like Quark, for instance. I am hoping there

  • Quicktime playback is terrible

    My quicktime playback is terrible. I have quicktime v7.4.5(v25). The picture is unclear, pixelated, and very choppy. I am trying to play videos from my Kodak digital camera and streaming videos. I tried downloading flip4mac and VLC. I got nothing fro

  • Mac moving so slow pages won't load

    HELP!!! I'm not sure what to do. My Mac has become so slow I can't properly watch video and it takes forever to load pages which often time out and crash. I don't know much about computers at all so if you respond please be very specific and detailed