simona
1st February 2011, 13:40
Hi everybody,
I very need your help... I'm watching a script for more then an hour... and it's perfect.. for me:D But it's not working...
I have the bellow script.
When executing line:
stpapi.form.command("timfc0101m000", 5, "process.chg.qty",error.msg)
I get BW message: I cannot read session or object (process.chg.qty).
On server, in Event viewer I get the message: ExtraInfo : session: "process.chg.q";object: "process.chg.qty"; function: "unknown" ; company number: 520
For more detail, please find attached the .doc file.
Thank you in advance!!
Simona
stpapi.put.field("ticst0101m100", "ticst001.pdno",pdno)
ret2 = stpapi.change.view("ticst0101m100", error.msg)
if ret2=1 then
stpapi.put.field("ticst0101m100", "ticst001.pdno",pdno)
stpapi.put.field("ticst0101m100", "ticst001.pono", str$(pono))
ret = stpapi.find("ticst0101m100", error.msg)
if ret then
ret = stpapi.mark("ticst0101m100", error.msg)
if ret = 1 then
stpapi.handle.subproc("ticst0101m100", "timfc0101m000", "send")
stpapi.form.command("ticst0101m100", 2, "timfc0101m000",error.msg)
if isspace(error.msg) then
stpapi.put.field("timfc0101m000", "frm.mat.to.cancel", str$(ticst001.iswh))
stpapi.form.command("timfc0101m000", 5, "process.chg.qty",error.msg)
stpapi.end.session("timfc0101m000")
stpapi.end.session("ticst0101m100")
if isspace(error.msg) then
else
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif
I very need your help... I'm watching a script for more then an hour... and it's perfect.. for me:D But it's not working...
I have the bellow script.
When executing line:
stpapi.form.command("timfc0101m000", 5, "process.chg.qty",error.msg)
I get BW message: I cannot read session or object (process.chg.qty).
On server, in Event viewer I get the message: ExtraInfo : session: "process.chg.q";object: "process.chg.qty"; function: "unknown" ; company number: 520
For more detail, please find attached the .doc file.
Thank you in advance!!
Simona
stpapi.put.field("ticst0101m100", "ticst001.pdno",pdno)
ret2 = stpapi.change.view("ticst0101m100", error.msg)
if ret2=1 then
stpapi.put.field("ticst0101m100", "ticst001.pdno",pdno)
stpapi.put.field("ticst0101m100", "ticst001.pono", str$(pono))
ret = stpapi.find("ticst0101m100", error.msg)
if ret then
ret = stpapi.mark("ticst0101m100", error.msg)
if ret = 1 then
stpapi.handle.subproc("ticst0101m100", "timfc0101m000", "send")
stpapi.form.command("ticst0101m100", 2, "timfc0101m000",error.msg)
if isspace(error.msg) then
stpapi.put.field("timfc0101m000", "frm.mat.to.cancel", str$(ticst001.iswh))
stpapi.form.command("timfc0101m000", 5, "process.chg.qty",error.msg)
stpapi.end.session("timfc0101m000")
stpapi.end.session("ticst0101m100")
if isspace(error.msg) then
else
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif
else
stpapi.end.session("ticst0101m100")
message("error")
endif