Need a query to update the inventory item to non inventory item

Dear all,
        I need a query which should update the Inventory to Non - Inventory Item.

Hi,
You need to freeze the inventory by click inactive tick box. This will prevent users to use the inventory.
The inventory posting lists will still exists as an inventory's transaction history for auditor if the inventory have had transactions.
To empty the warehouse, just perform good issue and use inventory decrease account. After the warehouse has been empty, create similar inventory item by right click --> select duplicate. Create new item code and in the tab remarks, just write this non inventory item was ever inventory item with code e.g. xxxx.
if you want to recover the stock, just create new item and then receive the stock into warehouse using Good receipt. use the same account code with account code used in the good issue.
JimM
PS.
Do not use sql statement to update B1 database. No SAP support provided afterwards.

Similar Messages

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All
    I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
    Suppose lets consider there are A,B,C,D,E,F,G,H columns.
    Now i want to create one form with the fields A,C,E.
    When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
    Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
    Please help me on this as it is very urgent from me..
    Thanks in Advance
    Sowjanya G

    Hi,
    According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
    I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
    In the workflow, you can add condition and actions as below:
    If current item: C equal to Test1
         Set E to Test2
    Then the value of the filed E will be changed based on the value of the filed C.
    In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • How to update the inventory after committing order..?

    How to update the Inventory stock level of a commerce item after committing the order.. in ATG 10.0.1..?
    Thanks in Advance,
    Vishnu & Nithin Kayithi

    you can add the pipeline chain after the processOrder in the commerce pipeline , in the runProcess method call InventoryManager.decreaseStockLevel(String pId, long pNumber);

  • Need a Query to update....below are requirements

    Hi,
    I need a query to update table xx_cc_audit. below are requirements.
    In xx_cc_audit I have more than 1000 rows. In this table Column - contract_number is inserted as null for some rows.
    I need a query to update this xx_cc_audit table which will replace null contract numbers with correct ones.
    In table xx_cc_audit I have column - instance_id which is not null and not unique.(duplicate instance id's can be there).
    With this instance_id i can get the contract_number from other table okc_k_headers_b .
    I need a query to update xx_cc_audit table.
    Presently what I'm doing :
    Select XS.instance_id
    FROM cs_incidents_all_b CS,xx_cc_audit XS
    where XS.contract_number is null
    AND XS.SR_NUMBER = CS.incident_number
    AND XS.ACTIVITY_TYPE = 'TROUBLESHOOTING';
    Note : The above query can give duplicate instance_id.
    Say, above query results in 100rows.
    I will copy any 1 instance_id in a paper and then pass it to below query.
    SELECT contract_number
    FROM okc_k_headers_b
    WHERE id = (SELECT MAX(dnz_chr_id)
    FROM okc_k_items
    WHERE object1_id1 = TO_CHAR(144849056) --instance_id
    AND jtot_object1_code = 'OKX_CUSTPROD'
    AND object1_id2 = '#'
    AND chr_id IS NOT NULL);
    I'll get contract_number.
    then i'll update xx_cc_audit table as below.
    update      xx_cc_audit set contract_number = 1223464789 -- which i got as a result of above query
    where contract_number is null
    and instance_id = 144849056     --this i copied from paper, as mentioned above     ;
    this will update my table.
    I have more than 1000rows, so i need a query which will update 1000rows in 1 shot.
    Please help me.
    Thanks!...
    Edited by: Kiran Sanga on Jul 20, 2009 2:15 AM

    OK, so that means a maximum of 10 distinct IDs in okc_k_headers_b can be matched with xx_cc_audit xca.
    That's a data issue for yourself that you'll need to work out, i.e, are you being too restrictive in any of the subqueries, particularly this one:
    WHERE id = (
        SELECT MAX(dnz_chr_id)
          FROM okc_k_items
        WHERE object1_id1 IN (
          Select XS.instance_id
          FROM cs_incidents_all_b CS,xx_cc_audit XS
          where XS.contract_number is null
            AND XS.SR_NUMBER = CS.incident_number
            AND XS.ACTIVITY_TYPE = 'TROUBLESHOOTING')
      AND jtot_object1_code = 'OKX_CUSTPROD'
      AND object1_id2 = '#'
      AND chr_id IS NOT NULL)Edited by: SeánMacGC on Jul 20, 2009 3:37 AM
    And here is a slight different version of the update that should perform a little better:
    update xx_cc_audit xca set contract_number = (
      SELECT contract_number
        FROM okc_k_headers_b okhb
    WHERE id IN (
        SELECT dnz_chr_id
          FROM okc_k_items
        WHERE object1_id1 IN (
          Select XS.instance_id
          FROM cs_incidents_all_b CS,xx_cc_audit XS
          where XS.contract_number is null
            AND XS.SR_NUMBER = CS.incident_number
            AND XS.ACTIVITY_TYPE = 'TROUBLESHOOTING')
      AND jtot_object1_code = 'OKX_CUSTPROD'
      AND object1_id2 = '#'
      AND chr_id IS NOT NULL)
      AND xca.instance_id = okhb.object1_id1
    where contract_number is null;

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Trying to follow Serge Luca's Step by Step Tutorial. Creating Workflows for Windows Sharepoint Services and MOSS2007.  http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!859.entry
    I have an onWorkflowActivated, followed by an ifElse condition and a log to history.
    In the IfElse, each branch has a code segment, that trys to update the status column in the list that the workflow is attached to.
    private void Authorize_ExecuteCode(object sender, EventArgs e)
    // tried serveral methods
    WorkflowProperties.Item["Status"] = "Automatically Approved";
    // tried all of the following (one at a time)
    item.update();
    WorkflowProperties.Item.Update();
    WorkflowProperties.Item.SystemUpdate();
    //tried this as well.
    Microsoft.SharePoint.SPListItem item = WorkflowProperties.Item;
    item["Status"] = "Automatically Approved";
    item.Update() ;
    On the update call I keep getting "Invalid data has been used to update the list item. The field you are trying to update may be read only."
    Could someone explain how to update "Status" column of the list item that the workflow is working on?
    Thank you very much.
    Bill
     

    Hi:
    you can do the following:
    add the following code to the workflow.xml file (under the MetaData section)
    Code Snippet
    <ExtendedStatusColumnValues>
    <StatusColumnValue>Branch1</StatusColumnValue>
    <StatusColumnValue>Branch2</StatusColumnValue>
    </ExtendedStatusColumnValues>
    then add 2 SetState activities one in each branch of the IfElse.
    for the code behind of setState1 (branch1) write the following code:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max);
    for setState2 (branch2) write the following:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max) + 1;
    where state is the variable assigned to the field State in the properties of the SetState(design lever), or instead of state u can use the following code:
    Code Snippet
    ((SetState)sender).State
    where sender is the object sent through the function parameter.
    hope this answered your question
    Best Regards

  • I cannot open my images in elements 12 with my recently purchased canon 760d, what do I need to do to update the softwear

    I cannot open my images in elements 12 with my recently purchased canon 760d, what do I need to do to update the softwear

    Unfortunately, you're in the wrong forum.  This is not the Elements forum. 
    Here's the link to the forum you want:
    https://forums.adobe.com/community/photoshop_elements/content

  • I need help! I updated the new 6.1.3 last night. Since that time my phone will not charge. The phone is plugged in and shows as charging but the battery still drains. What can I do? I need help!

    I need help! I updated the new 6.1.3 last night. Since that time my phone will not charge. The phone is plugged in and shows as charging but the battery still drains. What can I do? I need help!

    Restore iPhone with iTunes on your computer.

  • I need a query that selects the amount of records for each day in a table.

    I need a query that selects the amount of records for each
    day in a table.
    Eg the result would be:
    date 1 14
    date 2 3
    etc
    Any ideas?

    sorted:
    SELECT count([commentID]),convert(varchar, dateAdded, 112)
    FROM COMMENTSgroup by convert(varchar, dateAdded,
    112)

  • I need a query that returns the average amount of characters for a text colum in MS SQL.

    I need a query that returns the average amount of characters
    for a text colum in MS SQL.
    Could someone show me how?

    Sorted, i need the
    DATALENGTH
    function

  • How do we update the existing item in Cache (RWB) without know GUID?

    Hi Friends,
        We want to update the existing item in Cache (Value Mapping). Assume that Cache Contains like
         IN --> INDIA
         FR --> FRANCE
         EN --> ENGLAND
        We want to change ENGLAND to LONDON. How it is possible ... ? (Assume that above mapping data is replicated from my text file/Oracle Table, already).
    Kindly reply.
    Kind Regards,
    Jegatheeswaran P.

    Hi Vijay,
        Whatever the value mapping table we created in Intergration Directory, we can display & edit values of particular item. Because, they are stored in the XI default context 'http://sap.com/xi/XI'. In this case, it is not necessary to know the context and GUID value.
        But, in my case, I have replicated value mapping data from external system (SAP table/Text File/Oracle Table) into RWB --> Cache Monitoring --> Runtime Cache. I use my own context like 'http://aprilbiztec.com/FRAMEWORK/FileToFile'. In this case, how do we edit the particular line item. This is my problem.
    Kindly help me.
    Thanks in advance.

  • HT1933 I bought something trough Itunes ans need a refund cause was the wrong item.

    I bought something trough Itunes ans need a refund cause was the wrong item.

    Contact the support staff for the stores, all one group, at: http://www.apple.com/emea/support/itunes/contact.html

  • Why I should update the Inventory Opening Balance before keyin documents

    Dear Experts,
    I was adviced to key the Inventory OB first before I key any marketing documents. Is there any impact if I key in the Inventory OB after I key in some marketing docuemnts?
    Please help explain.
    Warmest Regards,
    Chinho

    Chinho,
    If you are using a FIFO or Moving Average costing method, the Items cost is updated only when you import your OB and initialize with its COST.  First and foremost, Delivery, Invoice, Goods Issue transactions which will need quantities cannot be processed if you have negative inventory turned off.
    You should be able to Create Sales Orders and Purchase Orders and any Goods Receipt Transactions but for your Inventory Trial Balance in your old system to match with SBO, it would be better to do the Inventory OB first.
    Unless you have some compelling reason not to do so.
    Suda

  • Query for updating the records

    I have the two tables....
    CREATE TABLE temp_1
    ( ST_NM VARCHAR2(30),STATUS_ID VARCHAR2(1) NOT NULL ENABLE,ST_ID VARCHAR2(20) primary key,REJ_USER_NM varchar2(10))
    sample Data :
    insert into temp_1 values('S010054','R','ST9749109','TEST_1');
    insert into temp_1 values('S010179','R','ST9749147','');
    insert into temp_1 values('S010582','N','ST9749258','');
    CREATE TABLE temp_2
    ( REJ_USER_NM VARCHAR2(20),ST_NM VARCHAR2(30),
    STATUS_ID VARCHAR2(1) NOT NULL ENABLE,ST_ID VARCHAR2(20))
    sample data:
    insert into temp_2 values('','S010054','N','ST9749109');
    insert into temp_2 values('','S010054','N','ST9749109');
    insert into temp_2 values('TEST_1','S010054','N','ST9749109'');
    insert into temp_2 values('','S010054','I','ST9749109');
    insert into temp_2 values('','S010179','N','ST9749147');
    insert into temp_2 values('TEST_2','S010179','N','ST9749147');
    insert into temp_2 values('','S010179','N','ST9749147');
    insert into temp_2 values('','S010179','N','ST9749147')
    insert into temp_2 values('TEST_5','S010582','R','ST9749258');
    insert into temp_2 values('TEST_5','S010582','N','ST9749258');
    insert into temp_2 values('','S010582','N','ST9749258');
    insert into temp_2 values('','S010582','N','ST9749258')
    I want the UPDATE query based on below conditions to update the REJ_USER_NM in temp_1 table.
    From temp_1 table ,STATUS_ID is 'R' and REJ_USER_NM is null and compare the set_id column value
    with the temp_2 table,where REJ_USER_NM is not null and status id is 'N'. REJ_USER_NM column from
    temp_2 table need to be update in the REJ_USER_NM column of temp_1 table.
    After completion of updation,output is in below format; if i run below qry
    ====================================
    select * from temp_1;
    {S010054},{R},{ST9749109},{TEST_1}
    {S010179},{R},{ST9749147},{TEST_2}
    {S010582},{N},{ST9749258},{}
    ======================
    Edited by: 849971 on May 2, 2011 8:25 PM

    Why is that the row
    {S010582},{N},{ST9749258},{}
    is not updated to TEST_5 ?? Based on your rules and data. it must be updated to test_5. Are you missng any rules?
    Try some thing like,
    UPDATE temp_1
       SET REJ_USER_NM  =
              (SELECT REJ_USER_NM
                 FROM temp_2
                WHERE     status_id = 'N'
                      AND temp_1.st_id = temp_2.st_id
                      AND temp_2.REJ_USER_NM IS NOT NULL)

Maybe you are looking for

  • Problem adding column in an interactive report

    Hi all I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to

  • Problem in using query bind parameters with dynamic domains

    Hi JHeadstart Team, I am trying to implement the functionality you have mentioned in the chapter 3 of JHS Developer's Guide Using Query Bind Parameters section. I followed the instructions but when I run the application, the following errors are show

  • Can't POST FormData from iBooks widget on iPad

    I have a Dashcode widget that simply submits contact information from a three-field form to a PHP script on our server. It works properly when run/debugged from Dashcode. But when I drop it into iBooks Author and preview it on an iPad (either v2 or v

  • Thumbnail Size in Split View Mode

    Anyone figure out how to adjust the size of thumbnails when in Split View mode? I can't seem to figure out how. I like a vertical split view and it only shows three thumbnails. Boo-urns.

  • Application Server Problem

    Dear All, I installed Oracle AS forms and reports services on a test machine. I want to configure tnsnames.ora of the AS to connect to a database in another server. could you plz give me an example of this configuration Os info: Windows 2000 Server O