Script to Update Item GL Class Assignments in OPM Inventory?

We use OPM Inventory in our 11i.5.10CU2 process manufacturing environment. GL Class codes are assigned as categories to items in our OPM item master. We have a need to update the GL Class assignment to a new value for roughly 200,000 items. I've been researching API's to help with this, but unfortunately there are none available for OPM.
I logged a SR, and OPM development confirmed that there is no API to update OPM items, only to create brand new items. (When using the Create API you set the desired GL Class, but without an Update API there is no sanctioned way to then change it.)
I traced what happens when one saves a new GL Class category in the forms, and I can see it updating/inserting:
* ic_item_mst_b
* gmi_item_categories
* mtl_item_categories
Plus, some star schema tables (ENI?), but we don't use any BI products.
Does anyone have any scripts or experience with updating OPM item category assignments?
(Does this post belong in another forum? Not sure where it would be seen by the right audience.)
Thanks, Wolf Moritz

There are so many things that, in your environment, you might want to check to verify a server build that it is highly unlikely that anyone else does, or would want to do, the same tests.
You will probably have better luck asking separate questions about how to do some of the specific checks you want to run, and, possibly, how to use colour-coding to highlight in HTML.
I'll start you off by pointing out that what you make look complex can be done in a much simpler manner. For example, how you get the username from the username environment variable:
PS C:\Users\Al> $UserName = (Get-Item env:\username).Value
PS C:\Users\Al> $username | gm | select typename -first 1
TypeName
System.String
PS C:\Users\Al>
It is good that you are concerned with the type of value assigned, but there is a simpler way that works for all environment variables (all of which are strings):
PS C:\Users\Al> $UserName = $env:username
PS C:\Users\Al> $username | gm | select typename -first 1
TypeName
System.String
PS C:\Users\Al>
This also returns a string, but, in the process, the code is simpler and a bit more intuitive, at least in my opinion.
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

Similar Messages

  • I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. How do I resolve this issue?

    I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?

    Starting with this, you have errors in your CSS code.
    body {
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      color: 151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: EFF5F8;
    body {
      margin:0;
      color: #151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: #EFF5F8;
      font-size: 100%;
    Related links:
    Windows Chrome, why do my fonts look so bad? - Lee Green
    css3 - Bad font rendering Chrome - Stack Overflow
    Nancy O.

  • ECMA/CSOM script to update multiple list items

     i am trying update multiple list items using CSOM/ECMA script but it updates only first record. can help out .how to update multiple list item records 
    Note(sharepoint hosted APP) only client side coding solution 
    function updateListItems() {
    var itemArray = [];
    var clientContext = SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('TestList');
    for(var i = 1; i<= 5; i++){
    var oListItem = oList.getItemById(i);
    oListItem.set_item('Title', 'My Updated Item!' + i);
    oListItem.update();
    itemArray[i] = oListItem;
    clientContext.load(itemArray[i]);
    clientContext.executeQueryAsync(onQuerySucceeded, onQueryFailed);
    function onQuerySucceeded() {
    alert('Items Updated');
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    updateListItems();

    Have a look at the following link for your reference
    https://social.msdn.microsoft.com/Forums/office/en-US/fc91b7b5-6300-4302-af93-4fc697131ec5/client-object-model-update-multiple-list-items?forum=sharepointdevelopment
    You can modify CAML query to fetch rows that you want to fetch.
    Geetanjali Arora | My blogs |

  • ABC Analysis [Update Item Assignment Window]

    Hello Friends
    I am working on Inventory Cycle count in EBS R12. I am facing a problem.
    I create an ABC Analysis for ##FGI sub inventory in M1 Organization on Vision Instance. Then i checked 22 items in my
    On-Hand Availability Window. But when i checked Update Item Assignment window, it shows me 20 items. can you please tell me that
    where my rest of 2 items are missing ? What are the reason or what organization parameter or what item attribute missing ? Do i need to do any special setup for rest of those two items?
    Can you please please further told me that what is the back end process of Compiling ABC analysis ?
    Best Regards

    Hi,
    Did you tried to re-initialize your ABC ..
    I think it can be an issue that you might have defined 2 items later after defining all your ABC compile ,assignments etc.
    And since your ABC compile is working on previous item it might not pick these newly defined items.
    Thanks
    Rahul Tushir

  • SAP VB script for updating texts in purchase orders

    Hello,
    I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail,  Texts tab.
    The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
    I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
    to keep existing texts and only add a new line to the top?
    Thanks a lot!
    Jan

    Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
    Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
    Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
    Thanks a lot
    Jan

  • APP-INV-05143 : Cannot update item because the item exists in a BOM

    We had incorrectly defined the BOM Item type for an item as Option Class, where it should have been a model. I have taken this item out of all BOMs and trying to update the BOM Item Type flag on the master items forms, but am getting the error:
    APP-INV-05143 : Cannot update item because the item exists in a BOM
    Am I missing a step here ? Please help.

    Pl post details of OS, database and EBS versions.
    Pl see if MOS Doc 356453.1 (Cannot Change Bom Item Type Of An Item, Errors With APP-INV-05143) can help
    HTH
    Srini

  • I am Trying to update Item category by using Standar API .. But no Updating .. and it show some erros message.. INV INV_VALID_CAT error message

    Hi 
      I am using Standard API to Update Item category. But it was not updating.any value  what passing to paramenter in API But iwas through some.. error mesage INV INV_VALID_CAT
    Regards,
    Sam

    Please see if (PA_PROJECT_PUB.create_project Errors - The Class Category Is Invalid (Doc ID 1323904.1)) helps.
    Thanks,
    Hussein

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • How do I update items on a 2nd list based on data changes on the first list

    Hi everyone, let me start by saying I am still learning about Sharepoint - what it can or can't do etc. I am also not a developer by nature. So it may take me little while to understand. Thanks for your patience and help.
    I am currently working on Sharepoint 2007.
    I have a Booking form and an Inventory form.
    With the booking from I have a column where the user can select the inventory item to book e.g. BookedItem
    With the inventory form I have a Availability column. (i.e. It's a text column populated with either Yes or No)
    I've also got a view on the front page of my Sharepoint page showing users what is currently available for booking. This is just a filtered view of Inventory form. Basically it displays items where Availability = Yes.
    What I would like to do is have a workflow that automatically updates the Availability in the Inventory list when an item is booked in the Booking Form.
    E.g Item A is booked via the Booking Form. Item A's availability in the Inventory List should now the 'No'.
    Users should now no longer be able to see Item A as an available item on my Sharepoint page.
    I am struggle with linking the two lists and making the corresponding updates. I'd appreciate it someone could help me out.
    Thanks.

    Hi Anil
    Thanks for the reply. I've attempted the steps in the link as shown but if the issue I am getting is because I am running Sharepoint 2007 instead. The example that you've linked is based on Sharepoint 2010.
    Just to be clear I am following
    "3. Now add one action : "Set Variable"
        Variable Name : CarId & Type : Integer
        Assign with CurrentItem's CarName (which one is lookup column for Car Name)"
    I am unable to assign the new variable to the ItemName. Nor do I get the option of a lookup for integer like shown in the example link.

  • New coverage line created when update item instance

    Hi,
    Does anyone know why when I'm performing update item instance (CSI_ITEM_INSTANCE_PUB.UPDATE_ITEM_INSTANCE) somehow it will create a new coverage/contract record?
    This item initially is like to a coverage/contract but after perform update item instance it somehow create a new coverage/contract which is identical in most of the column info.
    Could someone let me know why and how CSI_ITEM_INSTANCE_PUB.UPDATE_ITEM_INSTANCE would relate to creating coverage/contract ?
    Thanks

    Todd
    The issue seems to because this:
    x_instance_rec.inventory_item_id := ib_rec3.inventory_item_id;
    You are selecting the item id from your staging table. But the serial number in the csi_item_instances is associated with the instance is a different item id than ib_rec3.inventory_item_id. Hence this error. You cannot change the item in the IB once the instance is created.
    You have two choices: comment this out or change the inventory_item_id in staging table to match with the csi_item_instances.
    Also a lot depends on what is your serial number uniqueness. If you are using the same serial number for two different items (uniqueness with item_Id) you need to be careful which one you are picking (based on serial number).
    Thanks
    Nagamohan

  • Update Item when Content Type is changed in the browser

    I feel like I might be missing something obvious here - I set up a number of managed content types.  While editing a list item with multiple content types, when a user changes to a different content type using the drop down at the top of the page,
    the edits are not saved.  Is there any way to force an update when the user changes content type?  Clicking save returns the user to the list view which means the user needs to edit it again, and navigate to the content type.

    Hi Steve,
    Per my understanding, you might want to update item with the input values when content type changed by selecting an option in the “Content Type” drop down menu in
    EditForm.aspx page.
    A Content Type is a set of predefined columns, from the perspective of the use of Content Type in a list, it would be easier to maintain per record with only one content
    type as an item, this is also a recommended behavior when working with multiple content types in a list.
    If you want to take use of columns from multiple content types in an item, a suggestion is that you can create a custom content type with the columns from other content
    types you want, then add it into your list.  
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Insert or Update Item Master is too slow

    Dear Expert,
    I have a problem in add or update Item Master Data. When I click Add/Update, the process saving is too slow (need more than 5 minutes). This condition appear yesterday. In 2 days ago process add/update item master data normal.
    But the others transaction like business process, transaction is normal.
    I have did shrink database in SQL, but not help.
    Does anybody help my problem? how should I do?
    Thank you before help me

    Hi pak Hendra,
    May I know how much is your livedb size now ? If it is still slow after reindexing, you may consider to do these followings suggestions:
    1. Increase your server hdd size
    2. Increase your server's processor
    3. cut off and do new opening balance
    Is the problem happened in branch/outlet ? do you use citrix to access the server from branch ? Of course you can reindex the db to solve this issue but it is not the only one solution. You must also concern about the connection.
    Rgds,
    JimM@sbo_knowledge_village

  • How to update items in combo box programmat​ically

    I have a problem on updating items in combo box programmatically, such as add or remove a item from the list. I can add or delete without any problem once the vi is running. I can see it is changed by pressing drop button. But after I close the vi and rerun it, the change I did last time is lost. It seems it not permenatly change the list. Anyone has an idea?

    If you are changing the list programmatically why do you believe that it should be permanent? If it's permanent, why are you changing it programmatically? Doesn't make a whole lot of sense.
    If you're talking about saving the values as "default" in the same way you do with the development environment, you cannot do this with an EXE. This is a FAQ. You have to update the list programmatically, saving the "new" default values to file.

  • Script to update EXIF data in iPhoto '08

    I shoot some photos with a digital Nikon D50, and some with a Leica M3 (35mm film). The pictures from the digital Nikon are encoded with plenty of detail in the EXIF tags, but the digitized images from the Leica and the 35mm film have only a few tags from the scanner.
    I wanted a script that would update the desired EXIF tags direct in iPhoto. I looked around on the Internet at other scripts, and wrote a simple script to update a few EXIF tags on selected images in iPhoto.
    I hope this script is of use to others.
    http://movingtomac.blogspot.com/2008/07/script-to-update-exif-data-in-iphoto-08. html

    since we don't have your tables or data, we can not run, test, or improve posted code.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • How to update item instance in oracle install base?

    Hi,
    I have a doubt in updating item instance in oracle install base.
    I am using a API named csi_item_instance_pub.update_item_instance for this. I want to update Party OWNER, party contacts, Current location,Install location, bill_to address,ship_to address..etc. When i try to update party owner, it is updating in csi_i_parties(col:party_id) as well as updating in csi_item_instance(owner_party_id). In csi_item_instance table,owner_party_id column is updated. but corresponding owner_party_account_id is not changed. I have given party_account_id to update in csi_ip_accounts table. It has changed in csi_ip_accounts table. But in csi_item_instance table(owner_party_account_id) is not changing. Can anybody help on how to change owner_party_account_id in csi_item_instance table please? Thanks in advance.
    --Muruga
    Edited by: Murugeshapps on Jul 1, 2009 12:07 AM

    Out of the box, I don't think that there is any API or program to delete the records from csi_item_instances because deleting IB record affects many modules (like Inventory, Order, Service Contracts etc). IB records should be expired if they are created incorrectly and you can run Transaction History Purge program to delete all history records related to that item.
    Thanks
    Shree

Maybe you are looking for

  • Exception while creating a DataBase Connection (Unix)

    Hello Friends, I am Trying to create a DataBase Connection using OCI in java on UNIX Platform, but it gives an error message: Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLib

  • How can I run Google Analytics on my site being hosted in Business Catalyst?

    Hi, I already have an existing website which is hosted, and of course I am the domain owner. I have created a new modified site in Adobe Muse CC and will wish to upload this new site to my domain once completed. I will need to run Google Webmaster to

  • Fastest way you switch between multiple images (CS3) ?

    I'm originally a Fireworks user (from 2001) and am starting to learn Photoshop as it is in my CS3 set and it's superiority in image editing. BUT, I was suprised/shocked/P.O.-ed to notice Photoshop doesn't have tabs to easily switch between images lik

  • Transporting ABAP proxy objects from one environment to another

    Hi    I have  ABAP client proxy objects ( classes in ECC 5.0 and the corresponding XI message interfaces on the XI server ) - in my development environment. I need to move the ABAP proxy objects to the Qa environment. Two ways of doing this come to m

  • Action script though batch client

    While importing data using Action Script, if we have properties with same label name which belongs to different namespaces, DRM is not able to identify which property it should actually point to. Generally when we run the script from UI, we manually