Hi,
I have the code below for automatic registration/update of the production transactions.
I've been getting an error on the UpdateInit method.
oSS2.nSetProgram(oSS2.nLookupTask("BM_ProductionRegister_UI")) objTransactionRegister = oScript2.NewObject("BM_ProductionRegister_UPD", oSS2) oSS2.nTerminateUI() If blnUseBatch = True Then retVal = objTransactionRegister.nSelectBatch(strBatchNo) End If retVal = objTransactionRegister.nProcessReport("DEFERRED") retVal = objTransactionRegister.nUpdateInit() retVal = objTransactionRegister.nUpdate() retVal = objTransactionRegister.nUpdateMain() retVal = objTransactionRegister.nUpdateCleanup() 'drop the Transaction Register objTransactionRegister.DropObject() 'drop the session oSS2.DropObject()
error is as follows "<Error: 0 in Method UpdateINIT>
Any help will be greatly appreciated.
Thanks!