on 05-15-2013 12:05 PM
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
Hi Vassilis,
Could you please add the following line to your code, before .Update(), and test?
oItem.FrozenFrom = Now()
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.