Hi All. Using Sage 100 2022 Advanced. I am having an issue with the below script where it runs but then fails on objShell.SendKeys"CREATEITEM"&(NRF). It is executing on client side. Note sure where the issue is. Basically it cancels the item maintenance screen, then sends the new item code but then it should enter the verbiage in item code description but it is blank. I even tried removing NRF just in case there was an issue there but it won't even put the static text of CREATEITEM. Any help would be greatly appreciated.
newitemcode = ""
NRF = ""
NRF = CI_ItemCode_bus_UDF_COLOR_CODE
newitemcode = CI_ItemCode_bus_ItemCodeDesc
Set objShell = CreateObject("WScript.Shell")
objShell.SendKeys"%C"
objShell.SendKeys(newitemcode)
objShell.SendKeys"{TAB}"
objShell.SendKeys"CREATEITEM"&(NRF)
objShell.SendKeys"{TAB}"
Set objShell = Nothing