Updating item via B1WS

Hi all,
I'm trying to update an item via ItemsService and i'm getting the error ODBC -2035 related with "item exists".
I'm using this code:
            bool updated = false;
            try
                ItemsService.ItemsService itemServ = new LogisticPda.ItemsService.ItemsService();
                ItemsService.MsgHeader cabServ = new MsgHeader();
                cabServ.SessionID = sessionId;
                cabServ.ServiceName = MsgHeaderServiceName.ItemsService;
                cabServ.ServiceNameSpecified = true;
                itemServ.MsgHeaderValue = cabServ;
                ItemParams pars = new ItemParams();
                pars.ItemCode = itemCode;
                Item item = itemServ.GetByParams(pars);
                if (item != null)
                    item.U_ITOP_Ubi = ubi;
                    itemServ.Update(item);
                    updated = true;
            catch (Exception ex)
                string msj = ex.Message;
I know that the item exists but i want to update it using "Update(item)" method. SAP BO 2007 A SP01 PL06.
Regards,

Hi Nauzet,
Some questions to try to find out where the problem comes from:
1. Have you tried to do the same Update operation but changing another parameter in the Item (not a UDF)?
2. If you work without UDFs, does the Item Update work fine with B1WS?
There is a sample provided with B1WS doing an update on an item, maybe you can test if the sample works fine in your current version.
3. Which fields are you filling inside the Item object? Mabye there is a similar problem as for the BPs we discovered sometime ago (Re: Update Business Partner via SAP Business One Webservices).
Once you have find out the exact scenario to reproduce the problem please let me know, I have an 8.8 version I can try with to see if it has been fixed in 8.8 or not.
Regards
Trinidad.

Similar Messages

  • Urgent: Updating Item Text  Via SAVE_TEXT

    HI Friends,
    I need to update the item text in me22n via some FM.
    Can somebody suggest some FM with eg..
    I have found SAVE_TEXT FM to update the item text.
    i am not sure about the parameters and value could any body help me with some code ..
    I have written a code like this
    I have got a error like the length of the header table passed is higher ...and goes to short dump.
    GW_THEAD-TDNAME   = 'Concatenated value of Ebeln and Ebelp".
    GW_THEAD-TDID     = ?F01?.
    GW_THEAD-TDSPRAS  = SY-LANGU.
    GW_THEAD-TDOBJECT = ?EKPO?.
      IT_LINE-TDFORMAT = ?*?.
      IT_LINE-TDLINE   = ?Test Create Text?.
      APPEND IT_LINE.
    CALL FUNCTION ?SAVE_TEXT?
        EXPORTING
        CLIENT                = SY-MANDT
          HEADER                = GW_THEAD
        INSERT                = ? ?
        SAVEMODE_DIRECT       = ? ?
        OWNER_SPECIFIED       = ? ?
        LOCAL_CAT             = ? ?
      IMPORTING
        FUNCTION              =
        NEWHEADER             =
        TABLES
          LINES                 = IT_LINE
        EXCEPTIONS
          ID                    = 1
          LANGUAGE              = 2
          NAME                  = 3
          OBJECT                = 4
          OTHERS                = 5
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Please help with some code /

    Hi
    thank you very much for your reply.
    Can you explain more about the inport parameters of the FM. lets say for example I need to update "item note" in the item of a outbound delivery with text " I am doind the testing". for this scenario what the are the parameters i need to send to the FM
    thanks
    sankar

  • Deleting an order line item with B1WS?

    Hi,
    I am building an application which uses B1WS as it's interface to DISERVER.  There is a situation I am confused about and am hoping the folks here can shed light on.
    I have an order object, and I would like to delete a line item from it.
    How can I do that?
    Thank you,
    Mike

    Ok, we figured it out.  I wasn't updating the LineNum property after resetting the line items.  The code below works for us, and  hopefully for you too.
    Again, the idea is, to delete a line item, create a new line items collection and put into it every line item EXCEPT the one you want to delete.  Then update SAP.
    private void DeleteLineFromOrder(string itemCode, string projectCode)
                // Load SAP order via B1WS
                string sessionID = B1WSLogin();
                GetSAPOrder(docEntry, sessionID, out _order, out _document);
                int oldLineItemCount = _document.DocumentLines.Count();
                // Create collection of the current lineitems, before the add.
                DocumentDocumentLine[] originalLineItems = _document.DocumentLines;
                // Update the line item count
                _document.DocumentLines = new DocumentDocumentLine[oldLineItemCount - 1];
                int lineItemCounter = 0;
                foreach (DocumentDocumentLine originalLineItem in originalLineItems)
                    if ((originalLineItem.ItemCode != itemCode) || (originalLineItem.ProjectCode != projectCode))
                        originalLineItem.LineNum = lineItemCounter;
                        _document.DocumentLines.SetValue(originalLineItem, lineItemCounter);
                        lineItemCounter++;
                _order.Update(_document);
    Cheers,
    Mike
    Cygnusoft, Inc.

  • Unable to update item master data after upgrade

    Greetings,
    I have just upgraded from 2005A SP01 PL22 to 8.81 PL05.
    After the upgrade, I am unable to update any field in the item master data.
    Error message:
    In "Warehouses - Setup" window, on "Accounting" tab, choose sales-type revenue account  , '_SYS00000001165'  [Message 131-52]
    I have checked all the warehouses accounting tab and all the revenue account is a sales type account. I have also checked the GL for _SYS00000001165 and it is a COGS GL. After I change its type to "Sales", I am able to update. This shouldn't be the case.
    I have also tested creating and update new item master and I have no problem. However, I will have the same problem if i add a new item via duplicating from an old item.
    Any advice?
    Thank you.

    Hi,
    Can you also check whether the Item which you are trying to update has Manage G\L Account by as Item, Item group or Warehouse?
    If you have checked for the Warehouses, check for the Item Group and at the G\L Determination > Inventory tab as well.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • TS1967 how to update games via itunes 11.01?

    how to update games via itunes 11.01...i cant see the application folder in itunes..and i dont see the option update  application...

    How many ID Apple have you got? more than one?
    If so, in you Itune go to Store->Account
    Log-in using the same email and password you used in your Iphone and click on see account.
    There you will see all your account information... Look for Purchase History and see if the apps your iphone is saying you have to update is on the list. If they are not listed on the Purchase History is probably because you got them using another ID Apple.
    But on the other hand if you see your apps on this list, try to click on "RESET ALL WARNIGS FOR BUYING AND DOWNLOADING ITEMS".
    Log-out and try again to update your apps using your Iphone.
    By all mean if you have to change you ID Apple in your Iphone go to SETTINGS->STORE on the botton you will see your ID Apple (click on it and a pop-up will show asking you to change you ID Apple) change for your new ID Apple and try all again.
    If any path I described here looks different  in you Itune is because mine is in Portuguese

  • 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.

  • Software update check via iTunes with error message (1664).

    I had a recent experience with my new Ipad '4'. It is running IOS 6.0.1. When I perform a software update check via iTunes, it returned a message saying that an unknown error had occured (1664). When I connect my iPad 2, and did the same check, it returned the nomal "softawre is current version (IOS 6.0.1)" message. However when I checked the software update via Settings in my Ipad '4'. it returned the msaage "your software is up to date". I had completely rebooted (totally switched off) the Ipad '4' and it still gave me the same message via Itune. not sure what is truly going on here.

    The above is from here:
    Resolve iOS update and restore errors - Apple Support

  • My ipod touch 4g doesn't show option for os update in setting-general page. Can i update it via itunes by connecting it to computer?

    My ipod touch 4g doesn't show option for ios update in setting-general page. Can i update it via itunes by connecting it to computer?

    Try:
    - iOS: Not responding or does not turn on
    When it says place the iPod in recovery mode ue one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    For MAC or PC
    The Firmware Umbrella - TinyUmbrella
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • How to publish a File Content Item via EDK?

    I'm trying to publish a "File Content Item" via the EDK.
    CS EXPLORER
    Recall, that a "File Content Item" is different than a (regular) "Content Item" in that (via CS Explorer) it's a content item with no user-defined data entry template (when you right-click, the "Edit Data Entry Template..." menu item is not listed). Yet, somehow, it can still be published (via the Explorer), --which is great because I need to FTP this file to another server.
    EDK
    However, even though the (file) content item's EDK "Publishable" property indicates "true", it cannot be published via the IContentItemManager.PublishContentItem() method, which is returning the following error message...
    The required object was not found... content item... containing Data Entry Template... with attached Presentation Template (with UUID null)... (DataItemUuidNotFound...)
    In other words, the File Content Item has a (system defined) "/Definitions/File" data entry template, which has no attached presentation template. This leads me to believe that File Content Items are published differently (than Content Items).
    Or, is there a flag that I can pass along to "file_upload.jsp" to get it to auto-publish the File Content Item it creates?
    thanks,
    Michael

    Hey there,
    Animate doesn't publish to HTTPS, but this is something you can control on your own when uploading to a secure server. Also be aware that the Animate runtime is served over HTTP so you'll have to upload this component to serve from your server as well.
    Sarah

  • 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.

  • 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

  • Problem while uploading 10,000 items via import workbench in PROD

    Hi All,
    we are using advance product catalog R12.1.3 (PIM). When we are trying to upload 10,000 items via import workbench , We are facing an error not even one record imported .please see the below log file. Please help us regarding this issue .
    The situation is as follows.
    1)     About 10 000 uploaded to PROD env.
    2)     About 10 000 uploaded to PROD env.
    3)     About 10 000 uploaded to PROD env.
    4)     Import of all batches started and all ended with warnings (see below)
    5)     All data (30 000 SI) was lost (not in imported and not in excluded)
    6)     1 SI was upload and imported ok
    7)     All upload batches fail with message (in excels message column) when the upload check is run: “Cannot execute SQL Statement.”
    I’m trying to upload the same data that was upload successfully once, but now fails. (even the one row that went in).
    PROD has been booted as well as my computer
    Warning 1:
    Advanced Product Catalog: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    EGOIJAVA module: EGO Spreadsheet Java Concurrent Program
    Current system time is 30-MAY-2011 22:42:17
    May 30, 2011 10:42:32 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    [05/31/2011 11:31:13:226] ImportRules : Detail >> %%%%%%%%%%ks_debug: Enter ItemImportRulesUtil.runItemRules
    [05/31/2011 11:42:34:466] ImportRules : Detail >> %%%%%%%%%%ks_debug: Exit ItemImportRulesUtil.runItemRules
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 31-MAY-2011 12:39:14
    Warning 2:
    Advanced Product Catalog: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    EGOIJAVA module: EGO Spreadsheet Java Concurrent Program
    Current system time is 30-MAY-2011 22:52:41
    May 30, 2011 10:52:56 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    [05/31/2011 12:19:42:558] ImportRules : Detail >> %%%%%%%%%%ks_debug: Enter ItemImportRulesUtil.runItemRules
    Start of log messages from FND_FILE
    ExceptionTrace : oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) : oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:711) : oracle.apps.ego.item.itemimport.rules.util.ItemImportRulesUtil.runItemRulesOnDataChunk(ItemImportRulesUtil.java:867)
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 31-MAY-2011 12:24:00
    Warning 3:
    Advanced Product Catalog: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    EGOIJAVA module: EGO Spreadsheet Java Concurrent Program
    Current system time is 30-MAY-2011 22:42:17
    May 30, 2011 10:42:32 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    [05/31/2011 11:31:13:226] ImportRules : Detail >> %%%%%%%%%%ks_debug: Enter ItemImportRulesUtil.runItemRules
    [05/31/2011 11:42:34:466] ImportRules : Detail >> %%%%%%%%%%ks_debug: Exit ItemImportRulesUtil.runItemRules
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 31-MAY-2011 12:39:14
    ---------------------------------------------------------------------------

    Hi;
    Did you check:
    EGOIJAVA - EGO Spreadsheet JAVA Concurrent Program Fails When Importing via Excel [ID 954126.1]
    Excel Upload EGOIJAVA Module Throws No META-INF/adf-config.xml Found Error [ID 799705.1]
    Regard
    Helios

Maybe you are looking for

  • Cannot close sales order for third party sales

    Hello Gurus, I cant seem to close a third party sales order even after it has been delivered and the incoming reciept match the sales order as well as purchase requisition or purchase order. at first I thought it was the difference in the unit of mea

  • Videos not displaying after I move the project

    I had to move my project file to a new PC. I had videos linked in a few slides using progressive download and linking to the file. On a page with a video, the video just appears as a grey boc even though the link has the filename. How do i fix this -

  • Hyperlinks to bookmarks

    When i get my printed documentation as a pdf. The hyperlinks that link to Figures and Tables, via bookmarks, don't work. However, the hyperlinks that are linked to Sections and headers within sections do work. How do i get the hyperlinks for figures

  • Flash Player not working since update

    I recently updated my Flash player and since then I only see a black box when something tries to play.  No error message or anything- just a black box.  I am running windows xp with mozilla firefox 3.6.8.  Any ideas?  I have tried uninstalling and re

  • Locating photos in Finder

    I'm using iPhoto '07 and I have a question about locating the files. I want to add a couple pictures as attachments in an e-mail but I find it so difficult to locate them. I have to go into Finder, then pictures, then iPhoto library, then I have to g