jayugandhi
3rd April 2014, 09:45
Hi,
I have written a afs on session tpptc1512m000. when i inserts data throgh it gives me an error "specified activity not found in activities".
urgent help is required.
here is my code.
stpapi.put.field("tpptc1512m000", "tpptc140.cprj", i.cprj)
stpapi.put.field("tpptc1512m000", "tpptc140.cspa", i.cspa)
ret = stpapi.change.view("tpptc1512m000 ",err)
ret = stpapi.synchronize.dialog("tpptc1512m000", "add", err)
if ret then
stpapi.put.field("tpptc1112s000", "tpptc140.cprj", i.cprj)
stpapi.put.field("tpptc1112s000", "tpptc140.cspa", i.cspa)
stpapi.put.field("tpptc1112s000", "tpptc140.cequ", i.cequ)
stpapi.put.field("tpptc1112s000", "tpptc140.qutm", str$(i.qutm))
stpapi.put.field("tpptc1112s000", "tpptc140.cuti", i.cuti)
stpapi.put.field("tpptc1112s000", "tpptc140.exeq", str$(etol(i.exeq)))
stpapi.put.field("tpptc1112s000", "tpptc140.stat", str$(etol(i.stat)))
stpapi.put.field("tpptc1112s000", "tpptc140.btdt", str$(i.btdt))
stpapi.put.field("tpptc1112s000", "tpptc140.ratc", str$(i.ratc))
stpapi.put.field("tpptc1112s000", "tpptc140.cocu", i.cocu)
stpapi.put.field("tpptc1112s000", "tpptc140.sacu", i.cocu)
stpapi.put.field("tpptc1112s000", "tpptc140.clas", i.clas)
stpapi.put.field("tpptc1112s000", "tpptc140.lcta", str$(i.lcta))
stpapi.put.field("tpptc1112s000", "tpptc140.cpla", i.cpla)
stpapi.put.field("tpptc1112s000", "tpptc140.cact", i.cact)
ret = stpapi.insert("tpptc1112s000",true,err)
if ret then
stpapi.end.session("tpptc1112s000")
stpapi.end.session("tpptc1512m000")
return(true)
else
ret.err = err
ret = stpapi.recover("tpptc1112s000",err)
stpapi.end.session("tpptc1112s000",err)
stpapi.end.session("tpptc1512m000",err)
return(false)
endif
else
stpapi.end.session("tpptc1512m000")
return(false)
endif
stpapi.end.session("tpptc1512m000")
return(false)
I have written a afs on session tpptc1512m000. when i inserts data throgh it gives me an error "specified activity not found in activities".
urgent help is required.
here is my code.
stpapi.put.field("tpptc1512m000", "tpptc140.cprj", i.cprj)
stpapi.put.field("tpptc1512m000", "tpptc140.cspa", i.cspa)
ret = stpapi.change.view("tpptc1512m000 ",err)
ret = stpapi.synchronize.dialog("tpptc1512m000", "add", err)
if ret then
stpapi.put.field("tpptc1112s000", "tpptc140.cprj", i.cprj)
stpapi.put.field("tpptc1112s000", "tpptc140.cspa", i.cspa)
stpapi.put.field("tpptc1112s000", "tpptc140.cequ", i.cequ)
stpapi.put.field("tpptc1112s000", "tpptc140.qutm", str$(i.qutm))
stpapi.put.field("tpptc1112s000", "tpptc140.cuti", i.cuti)
stpapi.put.field("tpptc1112s000", "tpptc140.exeq", str$(etol(i.exeq)))
stpapi.put.field("tpptc1112s000", "tpptc140.stat", str$(etol(i.stat)))
stpapi.put.field("tpptc1112s000", "tpptc140.btdt", str$(i.btdt))
stpapi.put.field("tpptc1112s000", "tpptc140.ratc", str$(i.ratc))
stpapi.put.field("tpptc1112s000", "tpptc140.cocu", i.cocu)
stpapi.put.field("tpptc1112s000", "tpptc140.sacu", i.cocu)
stpapi.put.field("tpptc1112s000", "tpptc140.clas", i.clas)
stpapi.put.field("tpptc1112s000", "tpptc140.lcta", str$(i.lcta))
stpapi.put.field("tpptc1112s000", "tpptc140.cpla", i.cpla)
stpapi.put.field("tpptc1112s000", "tpptc140.cact", i.cact)
ret = stpapi.insert("tpptc1112s000",true,err)
if ret then
stpapi.end.session("tpptc1112s000")
stpapi.end.session("tpptc1512m000")
return(true)
else
ret.err = err
ret = stpapi.recover("tpptc1112s000",err)
stpapi.end.session("tpptc1112s000",err)
stpapi.end.session("tpptc1512m000",err)
return(false)
endif
else
stpapi.end.session("tpptc1512m000")
return(false)
endif
stpapi.end.session("tpptc1512m000")
return(false)