BM ProductionRegister - New object error:200

SUGGESTED

Hi,
i've been constantly getting the error "System.Exception: <NewObject Error: 200>" when I register the BM production entries.

here's what I have coded:

                    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.nUpdateInit()
                    retVal = objTransactionRegister.nUpdateMain()
                    retVal = objTransactionRegister.nUpdateCleanup()

                    'drop the Transaction Register
                    objTransactionRegister.DropObject()
                    'drop the session
                    oSS2.DropObject()

Any help/clarification on what I might be doing wrong to register the BM transaction would be greatly appreciated.

Thanks!