Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: How to Update ItemCode in Item Master Table in Sap B1 using SDK

$
0
0

Hi Kiran,

 

AFAIK you can't update the itemcode through DI, you can only update through SBO if there is no movement for this item.

 

Anyway, here a code for updating the itemNAME

 

SAPbobsCOM.Items item = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
if (item.GetByKey("itemTest"))
{
      item.ItemName = "itemChange";
if (item.Update() == 0 )
{
       SBO_Application.MessageBox("Updated");
}
}

Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>