Trying to get Standard Lead Time using :
oItemVendSvc = oSession.GetObject("IM_ItemVendor_svc")
if oItemVendSvc then
retVal = oSession.AsObject(oSession.UI).Messagebox("","Able to set handle" & vendNo & itemCode)
Set oItemVendSvc = oScript.AsObject(oItemVendSvc)
retVal = oItemVendSvc.SetKeyValue("ItemCode$", itemCode)
retVal = oItemVendSvc.SetKeyValue("VendorNo$", vendNo)
retVal = oItemVendSvc.Find()
if retVal then
retVal = oSession.AsObject(oSession.UI).Messagebox("","Found The Item " & vendNo & itemCode)
retVal = oItemVendSvc.GetValue("StandardLeadTime", nLeadTimeDays)
end if
end if
I end up getting the first messagebox to show ("Able to set handle") and shows vendor number and itemcode, however after the call of FIND(), there is no response. Is this because I have not provided the correct key values? If not, how do I find out what key values are required for each module's find method to work?
Randi