SDerrick
24th January 2005, 15:33
Hello, I am trying to write session which blanks the value of the "Quantity to deliver" field in "Report Operations Complete" tisfc0202m000 in B4c4.
My problem is regarding the resulting report. Manually, if you change the quantity to 0 and hit the save button a "Select Device" screen appears. I am trying to change this device to ASCIF and then close the session but when I go back to the session it nothing has been changed. I don't get any errors when I debug it and can't find out what I am doing wrong. My source is below, can anyone help please?
stpapi.get.field("tisfc0102m000", "tisfc010.pdno", field)
stpapi.put.field("tisfc0102m000", "tisfc010.pdno", str$(tisfc001.pdno))
stpapi.get.field("tisfc0102m000", "tisfc010.opno", field)
stpapi.put.field("tisfc0102m000", "tisfc010.opno", "0")
stpapi.find("tisfc0102m000")
stpapi.get.field("tisfc0102m000", "tisfc010.pdno", field)
stpapi.browse.set("tisfc0102m000","last.set", error.str)
stpapi.get.field("tisfc0102m000", "tisfc010.tano", field)
stpapi.get.field("tisfc0102m000", "tisfc010.qcmp", field)
new.val = new.val + val(field)
stpapi.put.field("tisfc0102m000", "tisfc010.qcmp", str$(new.val))
stpapi.get.field("tisfc0102m000", "tisfc010.qcmp", field)
stpapi.save("tisfc0102m000", error.str)
stpapi.set.report("tisfc0102m000", "rtdilc420102000", "ASCIT", error.str)
stpapi.end.session("tisfc0102m000")
Many Thanks
Simon Derrick
My problem is regarding the resulting report. Manually, if you change the quantity to 0 and hit the save button a "Select Device" screen appears. I am trying to change this device to ASCIF and then close the session but when I go back to the session it nothing has been changed. I don't get any errors when I debug it and can't find out what I am doing wrong. My source is below, can anyone help please?
stpapi.get.field("tisfc0102m000", "tisfc010.pdno", field)
stpapi.put.field("tisfc0102m000", "tisfc010.pdno", str$(tisfc001.pdno))
stpapi.get.field("tisfc0102m000", "tisfc010.opno", field)
stpapi.put.field("tisfc0102m000", "tisfc010.opno", "0")
stpapi.find("tisfc0102m000")
stpapi.get.field("tisfc0102m000", "tisfc010.pdno", field)
stpapi.browse.set("tisfc0102m000","last.set", error.str)
stpapi.get.field("tisfc0102m000", "tisfc010.tano", field)
stpapi.get.field("tisfc0102m000", "tisfc010.qcmp", field)
new.val = new.val + val(field)
stpapi.put.field("tisfc0102m000", "tisfc010.qcmp", str$(new.val))
stpapi.get.field("tisfc0102m000", "tisfc010.qcmp", field)
stpapi.save("tisfc0102m000", error.str)
stpapi.set.report("tisfc0102m000", "rtdilc420102000", "ASCIT", error.str)
stpapi.end.session("tisfc0102m000")
Many Thanks
Simon Derrick