Description
Replaces an alternative item with the specified OriginalItem data structure.
Syntax
Parameters
Example
| Update Item (Visual Basic) | Copy Code |
|---|
Dim oCompanyService As SAPbobsCOM.CompanyService
Dim AltItemsService As SAPbobsCOM.AlternativeItemsService
Dim OriItem As SAPbobsCOM.OriginalItem
Dim OriItemParams As SAPbobsCOM.OriginalItemParams
Dim AltItem As SAPbobsCOM.AlternativeItem
oCompanyService = oCompany.GetCompanyService
AltItemsService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.AlternativeItemsService)
OriItem = AltItemsService.GetDataInterface(SAPbobsCOM.AlternativeItemsServiceDataInterfaces.aisOriginalItem)
OriItemParams = AltItemsService.GetDataInterface(SAPbobsCOM.AlternativeItemsServiceDataInterfaces.aisOriginalItemParams)
OriItemParams.ItemCode = "A00001"
OriItem = AltItemsService.GetItem(OriItemParams)
AltItem = OriItem.AlternativeItems.Item(0)
AltItem.AlternativeItemCode = "A00004"
AltItem.MatchFactor = 300
AltItemsService.UpdateItem(OriItem) |
|
See Also