IB:How to update a serial Number which has Inventory Material Transactions?

Dear friends
first of all thanks for your time and valuable solutions
Install base: How to update a serial Number which has Inventory Material Transactions
problem description:
Install base > quick search
Here is Installbase record, when I query from quick search
Rec#     Item          Item Instance           Serial Number          Status
1     300-7000-01      3000000           1000XXX-0538JQ0003 Return for Adv Exchange
2     300-7000-01     8000000               1000XXX-0538JQ0003-     Return for Adv Exchange
3     300-7000-01     5000000               1000XXX-0538JQ0003-A     Return for Adv Exchange
looking above data, first and third records are the legitimate serial numbers(correct according to the client specs), second record is not legitimate since it has a dash as suffix, we found there are many illegitimate serial Numbers exists, needs to be updated with the right serial Numbers which I analyzed in excel after pulling data from mtl_material_transactions , oe_order_lines_all , mtl_serial_numbers , mtl_system_items_b
basically these are all RMAs
I need to update the second record as 1094SUZ-0538JQ0003-B as per the guidelines, while updating I need to keep all the existing contracts, Warranty, what ever material transations it has, need to be same.
we have a package updating the serial numbers using IB API (csi_Item_Instance_Pub.update_item_instance) but it is updating only the records which has no serial numbers present for that instance, if there is a serial number already exists it is not working.
user define error msg "Serial Number 1094SUZ-0538JQ0003- has Inventory Material Transactions. This serial number cannot be used to update an existing Item Instance", but I need to update this anyway!! or am I missing something here, please advice me
below post looks like similar issue, talks about hard update, I have no clue, by doing that the updated serial number will have same transations, contracts, dates....attached to it like the previous serial number
IB UPDATE_ITEM_INSTANCE ERROR - doesn't allow ACTIVE_START_DATE to change
would be great If you guys help me out, really appreciated!!
unfortunately I couldn't find any solutoin in metalink for the existing serial number update
code for updating the serial number using IB API
          x_msg_count := 0;
x_msg_data := '';
p_instance_rec.instance_id := rec.child_instance_id;
p_instance_rec.serial_number := rec.child_serial_number;
p_instance_rec.object_version_number := rec.child_object_number;
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;
csi_Item_Instance_Pub.update_item_instance
p_api_version => 1.0,
p_commit => Fnd_Api.g_false,
p_init_msg_list => Fnd_Api.g_false,
p_validation_level => 1,
p_instance_rec => p_instance_rec,
p_ext_attrib_values_tbl => p_ext_attrib_values_tbl,
p_party_tbl => p_party_tbl,
p_account_tbl => p_account_tbl,
p_pricing_attrib_tbl => p_pricing_attrib_tbl,
p_org_assignments_tbl => p_org_assignments_tbl,
p_asset_assignment_tbl => p_asset_assignment_tbl,
p_txn_rec => p_txn_rec,
x_instance_id_lst => x_instance_id_lst,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data
Thanks
Suri

Suri
Used this. May not be perfect but should get you there. Only if the table is registered (all the seeded tables should be registered) this will work.
select distinct a.table_name,b.column_name from fnd_tables a, fnd_columns b
where a.table_id=b.table_id
and upper(b.column_name) like '%SERIAL%'
Also this is very old one but if you need history for this change add the history insert logic as well..
DECLARE
l_return_err VARCHAR2 (80);
PROCEDURE debug (p_message IN VARCHAR2)
IS
BEGIN
dbms_output.put_line (SUBSTR (p_message, 1, 255));
END debug;
BEGIN
debug('======================================================================');
debug('Switching from serial number XDT07406. to XDT07406 ');
debug('======================================================================');
UPDATE fa_additions_b
SET serial_number = 'XDT07406'
WHERE serial_number = 'XDT07406.';
debug('No of rows in fa_additions_b updated :'||sql%rowcount);
UPDATE fa_mass_additions
SET serial_number = 'XDT07406'
WHERE serial_number = 'XDT07406.';
debug('No of rows in fa_mass_additions updated :'||sql%rowcount);
UPDATE rcv_serial_transactions
SET serial_num = 'XDT07406'
WHERE serial_num = 'XDT07406.';
debug('No of rows in rcv_serial_transactions updated :'||sql%rowcount);
UPDATE mtl_serial_numbers
SET serial_number = 'XDT07406'
WHERE serial_number = 'XDT07406.';
debug('No of rows in mtl_serial_numbers updated :'||sql%rowcount);
UPDATE mtl_unit_transactions
SET serial_number = 'XDT07406'
WHERE serial_number = 'XDT07406.';
debug('No of rows in mtl_unit_transactions updated :'||sql%rowcount);
UPDATE csi_item_instances_h
SET new_serial_number = 'XDT07406'
WHERE new_serial_number = 'XDT07406.';
debug('No of rows in csi_item_instances_h updated :'||sql%rowcount);
UPDATE csi_t_txn_line_details
SET serial_number = 'XDT07406'
WHERE serial_number = 'XDT07406.';
debug('No of rows in csi_t_txn_line_details updated :'||sql%rowcount);
UPDATE csi_item_instances
SET serial_number = 'XDT07406'
WHERE serial_number = 'XDT07406.';
debug('No of rows in csi_item_instances updated :'||sql%rowcount);
UPDATE wsh_delivery_details
SET serial_number = 'XDT07406'
WHERE serial_number = 'XDT07406.';
debug('No of rows in wsh_delivery_details updated :'||sql%rowcount);
debug('======================================================================');
debug('Switching from serial number jct20591 to JCT20591 ');
debug('======================================================================');
UPDATE fa_additions_b
SET serial_number = 'JCT20591'
WHERE serial_number = 'jct20591';
debug('No of rows in fa_additions_b updated :'||sql%rowcount);
UPDATE fa_mass_additions
SET serial_number = 'JCT20591'
WHERE serial_number = 'jct20591';
debug('No of rows in fa_mass_additions updated :'||sql%rowcount);
UPDATE rcv_serial_transactions
SET serial_num = 'JCT20591'
WHERE serial_num = 'jct20591';
debug('No of rows in rcv_serial_transactions updated :'||sql%rowcount);
UPDATE mtl_serial_numbers
SET serial_number = 'JCT20591'
WHERE serial_number = 'jct20591';
debug('No of rows in mtl_serial_numbers updated :'||sql%rowcount);
UPDATE mtl_unit_transactions
SET serial_number = 'JCT20591'
WHERE serial_number = 'jct20591';
debug('No of rows in mtl_unit_transactions updated :'||sql%rowcount);
UPDATE csi_item_instances_h
SET new_serial_number = 'JCT20591'
WHERE new_serial_number = 'jct20591';
debug('No of rows in csi_item_instances_h updated :'||sql%rowcount);
UPDATE csi_t_txn_line_details
SET serial_number = 'JCT20591'
WHERE serial_number = 'jct20591';
debug('No of rows in csi_t_txn_line_details updated :'||sql%rowcount);
UPDATE csi_item_instances
SET serial_number = 'JCT20591'
WHERE serial_number = 'jct20591';
debug('No of rows in csi_item_instances updated :'||sql%rowcount);
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
l_return_err :='Updating in one of the script has this error:'|| substrb(sqlerrm, 1, 55);
debug('Value of l_return_err='||l_return_err);
END;
Thanks
Nagamohan

Similar Messages

  • LC 8.0 Win2003server installation with turnkey. how to update the serial number

    good morning
    could anybody give me an idea howw to upadet the serail number of a trial version of livecycle 8.0. adobe gave me a LC 8.0serial number. the serial number had expired. I update it with configuration manager with a new serial number , adobe gave me, it worked. but immediatly after i updated th e8.0 version with the sp2 of LC 8.0. and the serial number went back to th eold one. and when i try the configuration manager , i gave me no screen wher i can update the serial number.
    help me please.
    best regard.
    JPW

    good morning
    could anybody give me an idea howw to upadet the serail number of a trial version of livecycle 8.0. adobe gave me a LC 8.0serial number. the serial number had expired. I update it with configuration manager with a new serial number , adobe gave me, it worked. but immediatly after i updated th e8.0 version with the sp2 of LC 8.0. and the serial number went back to th eold one. and when i try the configuration manager , i gave me no screen wher i can update the serial number.
    help me please.
    best regard.
    JPW

  • How to get a serial number after purchase

    I downloaded Lr and trialed the product for a month.  I then signed up for the monthly fee which included Ps.  I can access Ps but when I go to Lr it asks me for a serial number which has not been supplied.  On the help pages it states "You can convert your trial to a Creative Cloud complete or single-app membership by purchasing on the Creative Cloud website. After you purchase your membership, your desktop product trial will automatically be licensed upon relaunch".  I have closed down my Mac overnight but on opening up it still asks me for a serial number so I cannot open Lr?  Help!

    If you downloaded the standalone trial version of Lightroom, it will be necessary for you to uninstall that version. Then you will be able to install Lightroom through the creative cloud application manager. After you install Lightroom that way, just double-click on the catalog that you have already started.

  • After installing some updates on final cut pro 7 is asking me to enter my first and last names plus serial number which i dont have. how do i go about this?

    After intalling some updates for Final cut, I m asked to put my first and last names and serial number which unfortunatelt i do not have. how do i go about this?

    To add to what BenB advised, make sure you have proof of purchase when you call Apple for a replacement serial number.
    For future reference, it is a good idea to keep all software serial numbers in a database or text document.  Considering the cost of the software, keeping a list of serial numbers can come in very handy at times like this.
    -DH

  • My Adobe X! trial expired I paid for a month to month subscription on MArch 13, 2015 but I could not activate it. The prompt is asking me for a serial number (which I wouldnt have since I downloaded the trial from the website. How do I activate it with my

    My Adobe XI trial expired I paid for a month to month subscription on MArch 13, 2015 but I could not activate it. The prompt is asking me for a serial number (which I wouldnt have since I downloaded the trial from the website. How do I activate it with my Adobe ID? "activate with Adobe ID" is not an option on my screen. It only asks me for the serial number.

    uninstall your acrobat XI.
    if win os clean, Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs
    then dl the desktop cc app and use it to install your subscription acrobat XI, Creative Cloud Help | Creative Cloud for desktop

  • I lost my redemption code to install Lion onto my new computer. Is there a way I could get it again? When I go to the "get the update" page, it says that my serial number already has a code. How do I find this code again?!

    I lost my redemption code to install Lion onto my new computer. Is there a way I could get it again? When I go to the "get the update" page, it says that my serial number already has a code. How do I find this code again?!

    It is probably broken. You can try restoring it using Recovery Mode, but if that fails its time for a new phone. After all, it is 4 generations out of date. See: Recovery Mode

  • Hello! Lightroom is asking for serial number, which I don't have, despite just buying the Cloud? Any ideas how I can get it to work?

    Hello! Lightroom is asking for serial number, which I don't have, despite just buying the Cloud? I had a trial version of LR, downloaded the Cloud, every other program works, including trials, but Lightroom does not. Any ideas how I can get it to work?

    Creative Cloud applications ask for serial number

  • Automatically update PLA Serial Number

    Hi CIN Gurus,
    When we create J1IIN-Excise Invoice, the RG23A Serial numbers getting updated.
    But how to get PLA Serial Number automatically updated in the database table. (J_1IPART2).
    Because the client requirement is When the Invoice is printed, in that it should also list the RG23A/C or both Serial numbers updated and also the PLA Serial number(CESS or some times other excise duties).
    And also to print the PLA Ledger which shows all  the entries i.e RG23A/RG23C/PLA register.
    Thanks in Advance. (Expecting to Go-live in next week.)
    BEST REGARDS
    SRI
    Edited by: Sri on Sep 27, 2008 4:44 PM

    Dear MBS,
    Then each and every invoice before printing and send it with the lorry we need to do the utilisation. Is it what required ?
    In real time, before printing the billing document, do we need to all that ?
    Is it mandatory to print the RG23A serial number and PLA Serial number in the Invoice ?
    With out printing them , just mentioning the duties and reference excise invoice number , will be accepted by Excise Department ?
    Thanks in Advance.
    Best Regards
    SRI

  • Photoshop CC asking for serial number which I do not have. [was: SOS Help please!!!]

    SOS
    Help please,
    I bought an annual subscription to Photoshop,month, worked fine ,now took the payment for the second month,but to enter the program I can't - the program asks for a serial number which I nikogda not received and personally ID just anywhere is not specified serial number ,how to be tell me?????

    Try Creative Cloud applications ask for serial number

  • How to change the serial number of logic pro

    hi we have couple of macs in our studio
    when we first bought logic studio, we installed it on all the computers.
    then we realised that while useing network we have protection error problems.
    now we have an upgrade serial number and one more logic serial number which i want to put on the
    two working macpro's so that it wont clash with the laptops.
    how do i reset logic and enter new serial number ?????
    thanks

    http://discussions.apple.com/thread.jspa?messageID=5636506&#5636506

  • My CC apps are not validating and Lightroom upgrade is requesting a serial number which is claiming to be invalid

    I updated bith Photoshop CC and Lightroom 5 yesterday and now they both do not work. Photoshop has been asking for activation  for the last month and I have no connectivity issues on my laptop. Also Lightroom is requesting a serial number which when entered from my Adobe account claims to be unable to validate. This is not good enough as I use both applications for work and soon will not be able to usea service I am paying for. Is there a solution? Has anyone else encountered these problems after upgrade?

    Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
    or
    http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    Membership and Payments http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html
    OR
    Online Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • Attempting to install cs6 on my windows 7 professional 32 bit laptop, ive downloaded it but when i go to install it it asks for my serial number which i put in but it sais it is a valid number but cannot find a qualifying product on this computer??? What

    Attempting to install cs6 extended on my windows 7 professional 32 bit laptop, ive downloaded it but when i go to install it it asks for my serial number which i put in and then it tells me it is a valid number but cannot find a qualifying product on this computer?? What is the problem?

    Normally you will be asked to provide the new prdouct serial number first, then when a qualifying version is not found you elect to provide that information and then select the version and provide its serial number.  If this is not how things are flowing for you then you should contact Adobe support directly thru chat and get their help resolving it.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • How can I check serial number using icloud

    how can I check serial number using icloud?

    If you are talking about an iPhone and you simply tap on settings/general/about
    Both IMEI and Serial numbers are there to see.
    You can use the *#06# short code on the phone keyboard to see IMEI as well
    Or connect your iphone to iTunes on a PC/Mac
    Click on the device in side bar and summary button at top left of browser window
    In the top panel you have :-
    Name of the device
    Capasity
    Build Version/Software version - Mouse click on it to change which is displayed
    Serial Number/UDID Identifyer - Mouse click on it to change which is displayed
    Phone number /IMEI -Mouse click on it to change which is displayed
    Its very easy to see both numbers if you actually have the device.

  • How to obtain a serial number for PSE11

    I recently purchased an up to date iMac and PSE11 from the Apple iStore and I have tried to register the product with Adobe to get support. I need a serial number which Apple cannot give and Adobe refuse to give unless a scanned copy of a written receipt can be sent to them. Apple only issue email receipts which Adobe will not accept even though a forwarded copy of the email receipt will look no different to a scanned copy af a written version. Has anyone else experienced and resolved the same problem? If so, how?
    Surely Apple must have a PSE11 cd to place PSE11 on their store pages and if so there would surely be a serial number on the box.

    As Barney says, there are no serial numbers involved with App Store purchases. Further, note that putting software in the App Store involves more than just Apple uploading existing apps. Adobe had to create that app specifically for the App Store. If Adobe is requiring a serial number for support, either the person you talked to is confused or you're using the wrong support page. Or, I suppose, the support page could be broken. This is something you'll need to discuss with Adobe.

  • How do obtain my serial number for Acrobat XI Professional

    Hello Jeff,
    I have purchased a Student and Teacher Edition of Adobe Acrobat XI Pro
    So I have serial number retrieval card.
    I have been through the retrieval process, lodged the eligibility requirements and have an Adobe identity.
    I now understand that I can download XIPro and use it while I wait for the processing of my information and receipt of permanent approval. 
    My computer has Windows 8.
    I am ready to down load but nothing happens when I click on Acrobat XI Pro download.
    Hope you can help Paul

    Branching this to a separate discussion.
    Moving this discussion to the Acrobat Installation & Update issues forum.
    Paulb83666795 for information on how to retrieve your serial number please see Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.  I am sorry but I am not familiar with a home use program.  If you have questions regarding how to redeem your serial number then I would recommend reviewing Education FAQ.

Maybe you are looking for

  • IPhone no longer compatible with iPhone dock after 2.1

    I have an iPhone dock attached to my PC for power, with an audio out to a stereo system. Before the update I would pop it in the dock and use the remote to control music. Neat. After the 2.1 update, when I put the iPhone in the dock I get the alert s

  • Regarding Transaction type (TTY) and Movement type for MM (OBYC)

    Hi SAP Expers, In company's monthly rollup I am not seeing transcation type in some of the accounts. These accounts belogs to Account Assingment in OBYC. There is movement type and TTY for transaction. I am trying to get if movement type 101 is there

  • Custom assembly & Report Caching

    Our reports are using a custom assembly which encapsulates some common functionality. The problem is that report caching stopped working since we've implemented this cahnge. We can still activate caching via "Manage processing options" --> "Use cache

  • Unexpected end of file when starting on WinNT 4.0

    Hi folks, I have an 8.1.7 EE Installation on a notebook that works just fine as long as the notebook is connected to the network. However, when it is not connected to the network, I cannot even start my instance using svrmgrl. Starting svrmgrl just g

  • Reporting on GL account number to show income and expenditure

    Hello, Can anyone advise on the below "How can we report at a general ledger number (Income & Expenditure GL's only) so that we can see the split of costs associated with project costs & Business As Usual costs (BAU). If you can explain the concept a