hardei
18th February 2008, 12:39
Dear frnds,
I am working on baan 5.Writing a AFS Script to add record in conversion Factor(tcibd0103m000).It is a Form Type 3 session.It is not giving any error but record is not adding
Please see the following AFS script and also find attached Screenshot of session
stpapi.put.field("tcibd0103m000","tcibd003.item",tcibd001.item)
stpapi.put.field("tcibd0103m000","tcibd003.basu","NOS")
stpapi.put.field("tcibd0103m000","tcibd003.citg",tcibd001.citg)
ret1 = stpapi.change.view("tcibd0103m000",error)
stpapi.put.field("tcibd0103m000","tcibd003.unit","KG ")
stpapi.put.field("tcibd0103m000","tcibd003.conv",str$(1/tcibd001.wght))
stpapi.insert("tcibd0103m000",0,error)
stpapi.save("tcibd0103m000", error)
stpapi.end.session("tcibd0103m000")
Please Revert Guys
Regards,
Hardei
I am working on baan 5.Writing a AFS Script to add record in conversion Factor(tcibd0103m000).It is a Form Type 3 session.It is not giving any error but record is not adding
Please see the following AFS script and also find attached Screenshot of session
stpapi.put.field("tcibd0103m000","tcibd003.item",tcibd001.item)
stpapi.put.field("tcibd0103m000","tcibd003.basu","NOS")
stpapi.put.field("tcibd0103m000","tcibd003.citg",tcibd001.citg)
ret1 = stpapi.change.view("tcibd0103m000",error)
stpapi.put.field("tcibd0103m000","tcibd003.unit","KG ")
stpapi.put.field("tcibd0103m000","tcibd003.conv",str$(1/tcibd001.wght))
stpapi.insert("tcibd0103m000",0,error)
stpapi.save("tcibd0103m000", error)
stpapi.end.session("tcibd0103m000")
Please Revert Guys
Regards,
Hardei