Update the item in repository

Hi
i am getting data from orderrepository after that i have one statement like orderRepository.updateItem(ciItem);
why we need to call updateItem(ciItem); metod after completion
please give me clear picture on it

You invoke repository.updateItem(item descriptor name) after you make any changes to that item by calling item.setPropertyValue("",""). The updateItem method will update the changes to the repository.
In your case, after making the changes to citem i.e commerceItem, it is trying to update those changes in the Order Repository.
metod after completionDid not understand what do you mean by after completion, if you mean by it is at the end of the method then that is ideally fine because the changes has to be updated at the end.
Cheers
R

Similar Messages

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

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

  • Enhancement for VL02N to update the item text(BSEG-SGTXT) during PGI

    Hello all,
    Actually, I need your help experts. I am trying to update the item text(BSEG-SGTXT) for accounting documents with the sales order number during their creation(post goods issue) from transaction VL02N, VL01N, VL09.
    I have checked the 17 exits available for these transactions and non of these 17 exits allow me to modify the item text(BSEG-SGTXT). I am currently investigating on the two badi's available for these transactions.
    I am not sure if it possible to make these modifications via Badi's.
    Does anyone have any idea or technique that can help me to find a way to modify/update the item text(BSEG-SGTXT) for any accounting document generated during post goods issue using transaction VL02N, VL01N, VL09?
    Thanks a lot in advance for your help experts.
    Kind Regards,
    Bryan

    Hello Ankur Agrawal,
    Thanks a lot for your help.
    I got the item text from the mentioned BADI.  I will get back to this post if it works.
    Thank again for your quick reply.
    Kind Regards,
    Bryan

  • Updating the SAP Component Repository in the SLD

    Hi All,
    Can I get someone to clarify note 669669 - Updating the SAP Component Repository in the SLD for me?
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D36363936363926
    Currently, I am on version:
    My Solution Manager is telling me:
    I don't see a newer version. Am I reading this incorrectly?
    Thanks,
    Diana

    The problem is with the CR Content version which is on 9.0 patch level and I see patch levels 12 and 13 available on SMP
    Check this article and update the CR Content
    http://scn.sap.com/docs/DOC-41516
    Regards
    RB

  • ,i want to update the item system status of the CONTRACT (va42) to TECO

    Hi,
    here my requirement is that ,i want to update the item system status of the CONTRACT (va42) to TECO
    Which function module i have to use for this.
    I have checked the bapi BAPI_CUSTOMERCONTRACT_CHANGE .
    But i cant find any field related to system status update.
    can any one advice me how i can i solve this
    thanks in advance.

    I got one function module for this.

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

    I started getting these errors on one of my lists that has several workflows running on it. The strange thing is it has been running pretty much error free for 1.5 years and we have not made any changes to the workflows and no updates have been applied prior
    to the errors staring.
    It is typically always the same workflow but it doesn't always happen, only some of the newly added list items will error. If I simply cancel the current instance and manually start it again it runs fine to completion and it only seems to error out
    at the start.
    Most of the other workflows pause/wait for a status change but I will be reviewing all the workflows to confirm there is no locking conflict. I have added a Wait to one other workflow that I know will update the list item on startup, it is populating
    the Title column but even after that I am still getting the error.
    I noticed in the TraceLogs, 2 errors that started on Feb 2 and I could not find them in any previous logs (went back many days with no occurrences).
    02/02/2015 07:15:55.93  w3wp.exe (0x1C50)                        0x18D4 SharePoint Foundation        
     Workflow Infrastructure        88xr Unexpected WinWF Internal Error, terminating workflow Id# 6cbf1da4-fbf9-4dfe-ae48-b6d765cc6d03 
    02/02/2015 07:15:56.37  w3wp.exe (0x1C50)                        0x2140 SharePoint Foundation        
     SPRequest                      8l3a Medium   Failed to cache field with id "{49af83c9-c5e3-47db-b055-bf18673bba67}", overwrite=0
    The "Field ID"{49af83c9...} listed is a Lookup column to a Clients list on the same site.
    Any suggestions on what could be causing the sudden errors. I will be reviewing all other workflows but as I mentioned previously, this system has been working great up until Feb 2 with no changes to the lists or workflows for 3-6+ months.
    Thanks in advance.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    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.

  • BAPI_SALESORDER_CREATEFROMDAT2 is not updating the ITEM Qty after Free ITEM

    Hi,
    I am using BAPI_SALESORDER_CREATEFROMDAT2 to create a order.We have customization for populating a FREE ITEM for a Order ITEM.
    Now the Problem is that .....if I am passing more then one Material as ITEM it is not updating the next ITEM Qty and also not populating FREE ITEM afterwords first one.
    Please help me.
    Regards
    Ricky

    Hi,
    Find below the code :
      read table i_table_t into lwa_table_s index 1.
      if sy-subrc eq 0.
    *Order Header
        lwa_ord_head_in-doc_type          = 'ZSO'.
        lwa_ord_head_in-sales_org         = '1000'.
        lwa_ord_head_in-distr_chan        = '10'.
        lwa_ord_head_in-division          = '10'.
        lwa_ord_head_in-req_date_h        = lwa_table_s-delivery.
    *Order Header Update
        lwa_ord_head_inx-doc_type         = 'X'.
        lwa_ord_head_inx-sales_org        = 'X'.
        lwa_ord_head_inx-distr_chan       = 'X'.
        lwa_ord_head_inx-division         = 'X'.
        lwa_ord_head_inx-req_date_h       = 'X'.
        lwa_ord_partners-partn_role       =  'AG'.
        lwa_ord_partners-partn_numb       =  lwa_table_s-sold_to.
        append lwa_ord_partners to lt_ord_partners.
        if lwa_table_s-ship_to is initial.
          lwa_ord_partners-partn_role     =  'WE'.
          lwa_ord_partners-partn_numb     =  lwa_table_s-sold_to.
          append lwa_ord_partners to lt_ord_partners.
        else.
          lwa_ord_partners-partn_role     =  'WE'.
          lwa_ord_partners-partn_numb     =  lwa_table_s-ship_to.
          append lwa_ord_partners to lt_ord_partners.
        endif.
        lt_table_it_t = lwa_table_s-zsd_table_it_t.
        loop at   lt_table_it_t into lwa_table_it_s.
          lwa_ord_items_in-material      = lwa_table_it_s-matnr.
          lwa_ord_items_in-plant         = wa_table_s-plant.
          lwa_ord_items_in-target_qty    = lwa_table_it_s-qty.
          lwa_ord_items_in-comp_quant    = lwa_table_it_s-qty.
          append lwa_ord_items_in to lt_ord_items_in.
          lwa_ord_items_inx-material     = 'X'.
          lwa_ord_items_inx-plant        = 'X'.
          lwa_ord_items_inx-target_qty   = 'X'.
          lwa_ord_items_inx-comp_quant   = 'X'.
          lwa_ord_items_inx-updateflag   = 'I'.
          append lwa_ord_items_inx to lt_ord_items_inx.
    Schedule Line Information
          lwa_schedule_lines-sched_line  = 'X'.
          lwa_schedule_lines-req_date    = lwa_table_s-date_del.
          lwa_schedule_lines-date_type   = '1'.
          lwa_schedule_lines-req_qty     = lwa_table_it_s-qty.
          append lwa_schedule_lines to lt_schedule_lines.
          lwa_schedule_lines_x-updateflag = 'I'.
          lwa_schedule_lines_x-sched_line = 'X'.
          lwa_schedule_lines_x-req_date   = 'X'.
          lwa_schedule_lines_x-date_type  = 'X'.
          lwa_schedule_lines_x-req_qty    = 'X'.
          append lwa_schedule_lines_x to lt_schedule_lines_x.
        endloop.
    Here I am getting First Item and it's free configured Item perfectly for the Qty 1.
    But when I pass more then 1 Qty or Multiple ITEMS it is not populating other respective free configured ITEMS with them.Also IT is not updating the other ITEM Qty other the first one.
    For Example:
    Item  No      ITEM            Qty           .......
    10             ITEM1           1 EA        ..........
    20             FREE1          1 DAY     ..........
    30             ITEM2            0             ..........
    40             ITEM3            0             .........
    In above example After 30 and 40 two Free ITEM should be generated with 1 Day and for Qty 1 EA
    Regards
    Ricky

  • PO rejection in SNC does not update the items in MM with ORDRSP

    Hello everybody
    I have got a problem with the integration of ORDRSP Idocs in MM (ECC6 - SAP_APPL 604) in the case of a PO rejection in SNC (7-SP7).
    When rejecting a PO from SNC, the ORDRSP idoc is not integrated in MM
    and is marked with an error message refering to a quantity difference
    between the Idoc and the PO : "Acknowledgment for PO item 7621019091
    00010 contains quantity variance"
    Associated to the ORDRSP Idocs we are using the process code ORDR, and
    I have checked that if we use the ORDR_SUS process, the integration
    works well and the items are rejected in MM !
    But I haven't found much informations about the differences between
    ORDR and ORDR_SUS.
    Is there a way to make the PO rejection works with the ORDR process or
    could you tell me about the side effects of using ORDR_SUS in place of
    ORDR ?
    Vincent

    Hello Bharath,
    Yes we have the same problem on the Idoc status but didn't fix it.
    Here is the SAP answer about the rejection process :
    With regard to the SNC->ERP integration of the rejection, the process
    code in ERP inbound processing has to be set to ORDR_SUS (-> transactionWE20). Otherwise the rejection will not set the deletion indicator in
    ERP PO and as a result the approval process is not triggered when the
    supplier rejects a PO item.
    Kindly refer to the word attachment showing the WE20 screenshot.
    The purchase order can transfer the rejection information to the
    customer back-end system. The ReplenishmentOrderConfirmation XML messagecontains a corresponding AcceptanceStatusCode. However, to integrate therejection of a purchase order item with the customer back-end system
    using IDocs, you must implement SAP Note 962849, so that the deletion
    indicator is set on the purchase order item in SAP ERP.
    Kindly implement the following note as well:
    1458562 - ROC_Out not sent if the supplier rejects a PO item
    With the implementation of the this note, the R/3 backend system should
    get updated once the supplier 'Rejects' the item.
    Kind regards,
    Vincent

  • PO rejection in SNC does not update the items in MM with ORDR

    Hi experts,
    I have got a problem with the integration of ORDRSP Idocs in MM (ECC6 - SAP_APPL 604) in the case of a PO rejection in SNC (7-SP7).
    The ORDRSP is not integrated in MM and is marked with an error message refering to a quantity difference between the Idoc and the PO.
    Associated to the ORDRSP Idocs we are using the process code ORDR, and I have checked that if we use the ORDR_SUS process, the integration works well and the items are rejected in MM !
    But I haven't found much informations about the differences between ORDR and ORDR_SUS.
    Could anyone tells me about the side effects of using ORDR_SUS in place of ORDR ? Or if there is a way to make the PO rejection works with the ORDR process ?
    Thx.
    Vincent

    Hello Bharath,
    Yes we have the same problem on the Idoc status but didn't fix it.
    Here is the SAP answer about the rejection process :
    With regard to the SNC->ERP integration of the rejection, the process
    code in ERP inbound processing has to be set to ORDR_SUS (-> transactionWE20). Otherwise the rejection will not set the deletion indicator in
    ERP PO and as a result the approval process is not triggered when the
    supplier rejects a PO item.
    Kindly refer to the word attachment showing the WE20 screenshot.
    The purchase order can transfer the rejection information to the
    customer back-end system. The ReplenishmentOrderConfirmation XML messagecontains a corresponding AcceptanceStatusCode. However, to integrate therejection of a purchase order item with the customer back-end system
    using IDocs, you must implement SAP Note 962849, so that the deletion
    indicator is set on the purchase order item in SAP ERP.
    Kindly implement the following note as well:
    1458562 - ROC_Out not sent if the supplier rejects a PO item
    With the implementation of the this note, the R/3 backend system should
    get updated once the supplier 'Rejects' the item.
    Kind regards,
    Vincent

  • Using DTW to update the Item Master Data attachment tab

    Hi Experts,
    Has anyone tried using DTW to update the Attachments Tab on the Item Master Data please?  I tried a few things (similar to importing an attachment to an activity) and couldn't get it to work.
    I couldn't see that anything to do with the Attachments Tab was exposed in DTW when looking at the mapping fields and also when looking through the options available in the Items Object under Customize Templates - but then I might not be seeing it correctly!
    Any ideas or solutions would be great.
    Many thanks,
    Caroline

    Hi Caroline,
    AtcEntry is correct for the document, this relates to the AbsEntry in OATC, which then in turn links to AbsEntry in ATC1.
    There are a few fields that need to be populated in ATC1:
    AbsEntry
    Line - To be used if more than 1 Attachment
    SrcPath - for the file path
    Filename - for the file name
    FileExt - for file type - i.e. .pdf
    You may be able to configure DTW to import these as a manually created DTW but I suspect that OATC and ATC1 are not open to the Di which will stop it. Coincidently I have been looking at Task Centre to update these but have encountered the same problem
    Regards
    Sean Martin

  • Updating the Item category in a Free of Charge order

    Hi all,
    I am currently working in a requirment on Free of Charge orders.
    Existing scenrio is : In Free of Charge orders, if there is a BOM material is associated in the sub item, then the particular product's item category is not editable, so we can't alter it manually. SAP Note : 796926 says there are restrictions for usage of free of charge transaction types when the sub item involved is BOM.
    Requirement: To make this item category editable in this scenario.
    So we are currently looking for an option to make an enhancement to SAP standard program for this.  I tried to debug standard modules from the point where we open an order. But not able to find any significant place which deals with disabling this item category.
    Any suggestions on the SAP CRM program which deals with this will be very helpful.  Thanks in advance.

    hi
    Once the BOM is created it is not possible to change the item category,either you have to delete the material and re-enter the material with different item category
    regards
    thyagarajan

  • CRM_ORDER_MAINTAIN not updating the item level field

    Hi All,
    My requirement is to update a field called "CSC Code" in line item of sales order. hence for this case i am using "CRM_ORDER_MAINTAIN" inside the "ORDER_SAVE" BADI. I am passing the ref guid, ref type, object name ,Logical Key and field name in the  CHANGING parametrs  CT_INPUT_FIELDS. I am passing the internal table containing the ref guid,ref type, partner fct ,partnerno to the internal table IT_PARTNER.
                                     The FM gets executed without any error and the internal table IT_PARTNER is filled with the new CSC code  but  on checking in the sales order after saving the field is blank.
      I have tried using wait up to 2 seconds. Even then it didn't work.
    Can some one help me?
    Thanks.

    Could you please let me know how was it fixed... I have a similar kind of requirement
    Edited by: rakesh chaitanya  makkapati on Apr 7, 2010 4:49 PM

  • CST Tax Value is not updating the Item Cost

    Dear All
    While doing the Pur. Invoice with CST the tax value is not geting add in item cost.
    I have already defined the tax type,tax code,attributes every thing perfectly with non deductible 100%, Even though this thing is not happening... pls tell me wat to do?
    SAP B1 2007B PL:07...
    Kindly waiting for ur valuable reply
    giri

    Hi Neetu
    Thanks a lot , as per ur term its working.
    Thanks d Regards
    Giridharan V

  • Updating the contents of repository.

    hello...,
    I am using Jdev10.1.2 with SCM.(a newbie).
    Somehow i made a scm connection as 'repoadmin' and created a workarea WA1.
    Then added 'project1' to WA1.
    Now to make the changes made in 'project1' to be updated in the repo what i have to do?
    Help me..
    Rgds
    jeneesh.

    Your trying to read and write to the same file at once. Just read everything into a string and open the output stream later in the program. This should work (I think):
    import java.io.*;
    import java.lang.String;
    public class UpdateFile{
    public static void main( String args[]){
    try{
    BufferedReader in = new BufferedReader( new FileReader("SchedulerEvents.ini"));
    String output = "";
    String str;
    String newString = null;
    while(( str = in.readLine()) != null){
    newString = str.replaceAll("20030605", "20030507");
    output = output + newString;
    System.out.println( newString);
    in.close();
    BufferedWriter out = new BufferedWriter( new FileWriter("SchedulerEvents.ini"));
    out.write( output);
    out.close();
    } catch( IOException ioe){}
    }

Maybe you are looking for