garlapati
1st February 2013, 09:48
I am trying to automate tssma3101m000 (Service order creation) in B4c3.
1. Ususally when you use AFS to update /insert record on a session it won't display/popup the target session. But in my case it is poping up the target session :confused: . any parameter to make if off/run background?
2. And the record is not getting inserted & after exit it is going to recover function.
below is the code i have written. Any suggestions for above issues?
stpapi.put.field("tssma3101m000", "sma.grno", "0")
stpapi.put.field("tssma3101m000", "tssma301.desc", call.desc)
stpapi.put.field("tssma3101m000", "tssma301.sert", str$(etol(tssma.sert.call)))
stpapi.put.field("tssma3101m000", "tssma301.cctp", "TR")
stpapi.put.field("tssma3101m000", "tssma301.cins", str$(inst.seqn))
stpapi.put.field("tssma3101m000", "tssma301.telp", cust.telp)
stpapi.put.field("tssma3101m000", "tssma301.refe", cust.cont)
stpapi.put.field("tssma3101m000", "tssma301.refe", cust.orno)
stpapi.put.field("tssma3101m000", "tssma301.ddt1", str$(extract.date(rep.date)))
stpapi.put.field("tssma3101m000", "tssma301.dtm1", str$(convert.time.to.num(rep.time)))
stpapi.put.field("tssma3101m000", "tssma301.csym", call.symp)
stpapi.insert("tssma3101m000", error.msg)
if not retval1 then
stpapi.recover("tssma3101m000", error.msg)
else
stpapi.get.field("tssma3101m000", "tssma301.orno", serv.orno)
endif
stpapi.end.session("tssma3101m000")
Appreciate the quick help.
Regards
Sunil
1. Ususally when you use AFS to update /insert record on a session it won't display/popup the target session. But in my case it is poping up the target session :confused: . any parameter to make if off/run background?
2. And the record is not getting inserted & after exit it is going to recover function.
below is the code i have written. Any suggestions for above issues?
stpapi.put.field("tssma3101m000", "sma.grno", "0")
stpapi.put.field("tssma3101m000", "tssma301.desc", call.desc)
stpapi.put.field("tssma3101m000", "tssma301.sert", str$(etol(tssma.sert.call)))
stpapi.put.field("tssma3101m000", "tssma301.cctp", "TR")
stpapi.put.field("tssma3101m000", "tssma301.cins", str$(inst.seqn))
stpapi.put.field("tssma3101m000", "tssma301.telp", cust.telp)
stpapi.put.field("tssma3101m000", "tssma301.refe", cust.cont)
stpapi.put.field("tssma3101m000", "tssma301.refe", cust.orno)
stpapi.put.field("tssma3101m000", "tssma301.ddt1", str$(extract.date(rep.date)))
stpapi.put.field("tssma3101m000", "tssma301.dtm1", str$(convert.time.to.num(rep.time)))
stpapi.put.field("tssma3101m000", "tssma301.csym", call.symp)
stpapi.insert("tssma3101m000", error.msg)
if not retval1 then
stpapi.recover("tssma3101m000", error.msg)
else
stpapi.get.field("tssma3101m000", "tssma301.orno", serv.orno)
endif
stpapi.end.session("tssma3101m000")
Appreciate the quick help.
Regards
Sunil