Skip to Content
0
Former Member
May 15, 2013 at 11:05 AM

Error Message - Date ranges are Overlapped when validating OITM.FrozenFor through UI

34 Views

Hi experts,

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

oChildItem.Update()

END IF

I use SAP 8.82 (8.82.067) PL05.

Thanks in Advance,

Vasilis