thibaan
23rd June 2008, 19:50
Hi people,
I'm facing this error:
Tools error in session ottstpprcm: internal error in Process Change Manager ('unreachable case' failed).
File: pttstpprcm0 (line 378). Description: strip$(action) = api.child.starte: Unexpected action.
It's occurring when I try to run tisfc0130m000 (AFS) in whinh3512m000, on this extern function: option.confirm.receipt.li()
Any idea? :confused:
Thank you in advance.
george7a
24th June 2008, 09:39
Hi,
Please post your code. It might help in finding the reason for this error.
- George
thibaan
24th June 2008, 20:35
My code is below:
|++++++++++++++++++++++++++ Confirm Receipt Functions +++++++++++++++++++++++++
function extern option.confirm.receipt.li()
{
|* This option confirms selected receipt lines
|#149271.sn
if not option.confirm.receipt.li.is.allowed() then
mess( "tcmcss0210",
|* Executing the Form Command %1$s is not allowed.
1,
labelof("option.confirm.receipt.li"))
return
endif
|#149271.en
|* To prevent the program from hanging, kill the message timer.
whinh.dll3014.kill.timed.message()
unregister.for.receipt.notifiers()
number.of.lines.confirmed = 0
number.of.errors = 0
dal.clear.error.messages()
|* Advice must be started with empty run number
whinh.dll3200.reset.run.number()
START.DLL.UI( confirm.marked.receipt.lines,
IFERRKEEPMSG,
"whinhs0941")
|* Confirming
if number.of.lines.confirmed = 0 and
dal.count.error.messages() = 0 then
dal.set.error.message("whinhs0313")
|* No receipt lines eligible for confirmation.
endif
whinh.dll3014.display.messages(form.text$("whinhs0992"), true)
|* Confirm receipt line:
if number.of.lines.confirmed > 0 then
whinh.dll3014.timed.message( message.id,
pid,
"whinhs1029",
number.of.lines.confirmed)
|* %d Receipt line(s) confirmed
endif
register.for.receipt.notifiers()
whinh.dll0031.prcm.notify.receipt.inspection.inbound()
whinh312.rcno = receipt.number
|* Advice must be started with empty run number
whinh.dll3200.reset.run.number()
display.indicators()
check.header()
run.automatic.reception.subcontrating( prod.order,
prod.opno,
recep.qrcr)
}
function run.automatic.reception.subcontrating(domain tcpdno i.prod.order,
domain tcopno i.prod.opno,
domain tcqst1 i.recep.qrcr)
{
stpapi.put.field("tisfc0130m000", "tisfc010.pdno",str$(i.prod.order))
stpapi.change.view("tisfc0130m000", error.msg)
stpapi.put.field("tisfc0130m000", "tisfc010.opno",str$(i.prod.opno))
retval = stpapi.find("tisfc0130m000", error.msg)
if retval = 1 then
retval = stpapi.mark("tisfc0130m000", error.msg)
if retval then
retval = stpapi.synchronize.dialog("tisfc0130m000", "modify", error.msg)
if retval then
stpapi.enum.answer("tisfc0130m000","tisfc01027", tcyesno.yes)
stpapi.enum.answer("tisfc0130m000","tisfc02029", tcyesno.yes)
stpapi.put.field("tisfc0130m000", "qcmp.form",str$(i.recep.qrcr))
stpapi.update("tisfc0130m000", true, error.msg)
endif
endif
endif
stpapi.end.session("tisfc0130m000",error.msg)
}
wiggum
25th June 2008, 11:44
I had also a problem with ttstpprcm and couldn't solve it with AFS. I use now the business method complete.operation() of the DAL of table tisfc010.
thibaan
25th June 2008, 12:36
Using business method complete.operation() i got this message: "The Data Access Layer doesn´t allow the operation update on table tisfc010" (Error -12)
thibaan
25th June 2008, 16:58
When It's started since whinh3512m000 (MMT) the AFS doesn't work. If It's started since whinh3512m100 (Mult occur but NOT MMT) it works fine... there's something wrong with bms, prcm, or something like that...
Any idea?
NPRao
25th June 2008, 20:16
AFS does not work with MMT. You have to explore using DAL2. Search for other threads with keyword 'DAL2'.
ignalf
21st October 2008, 16:47
I have solved it of the following way: the apis of session tisfc0130m000 programmed in a new session that it them executes and finishes automatically. This new session is called from standard scripts by the function start.session (MODAL...).
And IT WORKS...
Regards