ppchong
25th June 2012, 04:38
Dear Sir/Madam,
Currently my company using BAAN IV service pack 18. I have added 1 table field with option "mandatory input" in a baan standard table tdilc402 which is inbound table. I tried to use AFS to insert a record but fail, showed a message " ctnr not allow". Is it AFS not support the field which is not baan standard ? Below is the AFS function :
stpapi.put.field("tdilc4113s000", "tdilc402.clot", shiftr$(strip$(tdltc935.mbmr)))
stpapi.put.field("tdilc4113s000", "tdilc402.date", str$(tdltc935.edte))
stpapi.put.field("tdilc4113s000", "tdilc402.stun", strip$(str$(tdltc935.cntr)))
stpapi.put.field("tdilc4113s000", "tdilc402.qstr", qstr_str)
stpapi.put.field("tdilc4113s000", "tdilc402.qstc", inv_qty_str)
stpapi.put.field("tdilc4113s000", "tdilc402.ctnr", "3") |** tdilc402.ctnr not a Baan standard field
retval1b = stpapi.insert("tdilc4113s000", true, errmsg3)
Appreciate if you can give me the solution or help ..
Thanks & Regards,
PPchong
:)
Currently my company using BAAN IV service pack 18. I have added 1 table field with option "mandatory input" in a baan standard table tdilc402 which is inbound table. I tried to use AFS to insert a record but fail, showed a message " ctnr not allow". Is it AFS not support the field which is not baan standard ? Below is the AFS function :
stpapi.put.field("tdilc4113s000", "tdilc402.clot", shiftr$(strip$(tdltc935.mbmr)))
stpapi.put.field("tdilc4113s000", "tdilc402.date", str$(tdltc935.edte))
stpapi.put.field("tdilc4113s000", "tdilc402.stun", strip$(str$(tdltc935.cntr)))
stpapi.put.field("tdilc4113s000", "tdilc402.qstr", qstr_str)
stpapi.put.field("tdilc4113s000", "tdilc402.qstc", inv_qty_str)
stpapi.put.field("tdilc4113s000", "tdilc402.ctnr", "3") |** tdilc402.ctnr not a Baan standard field
retval1b = stpapi.insert("tdilc4113s000", true, errmsg3)
Appreciate if you can give me the solution or help ..
Thanks & Regards,
PPchong
:)