In Item Master Data Form , I have created a Button with the following functionality:
When the Button is Clicked, the current ItemCode (ParentItem) in Item Master Data is stored into a variable and according to this itemcode, I want to set a Specific Item (ChildItem) as Inactive.
I use the following code for this action, but it returns Message that date ranges are overlapped. I do not want to set any Date Values in Fields Frozen From/To
The code is:
Dim oChildItem As SAPbobsCOM.Items
oChildItem = oCompany5.GetBusinessObject((SAPbobsCOM.BoObjectTypes.oItems))
oChildItem = oCompany.GetBusinessObject((SAPbobsCOM.BoObjectTypes.oItems)) oChildItem.GetByKey(str)
If (oChildItem.ItemCode <> " ") Then
oChildItem.Frozen = BoYesNoEnum.tYES
I use SAP 8.82 (8.82.067) PL05.
Thanks in Advance,