hardei
24th February 2008, 10:29
Dear Frnds,
I am trying to updates Price in Sales Order Lines in BaaN V.While Updating it is giving message "Order Date before Current Date".This message i am getting in stpapi.update..Before stpapi.update i wrote stpapi.get.mess.code.but mess_code is blank at that time..only stpapi.update giving thie error and bcoz of that i cant update it
HOw will i handle it?
Please see the follwing Code.
stpapi.put.field("tdsls4101s000","tdsls401.pric",str$(pric))
stpapi.enum.answer("tdsls4101s000","tdsls410101",tcyesno.yes)
stpapi.handle.subproc("tdsls4101s000","tdpcg0240s000","kill")
mess_code = stpapi.get.mess.code("tdsls4101s000",error)
ret = stpapi.update("tdsls4101s000",0,error)
mess_code = stpapi.get.mess.code("tdsls4101s000",error)
if not (isspace(error) and mess_code = "tdsls00010") or isspace(error)then
ret = stpapi.update("tdsls4101s000",0,error)
ret = stpapi.save("tdsls4101s000",error)
endif
Thanks in Advance
Regards,
Hardei
I am trying to updates Price in Sales Order Lines in BaaN V.While Updating it is giving message "Order Date before Current Date".This message i am getting in stpapi.update..Before stpapi.update i wrote stpapi.get.mess.code.but mess_code is blank at that time..only stpapi.update giving thie error and bcoz of that i cant update it
HOw will i handle it?
Please see the follwing Code.
stpapi.put.field("tdsls4101s000","tdsls401.pric",str$(pric))
stpapi.enum.answer("tdsls4101s000","tdsls410101",tcyesno.yes)
stpapi.handle.subproc("tdsls4101s000","tdpcg0240s000","kill")
mess_code = stpapi.get.mess.code("tdsls4101s000",error)
ret = stpapi.update("tdsls4101s000",0,error)
mess_code = stpapi.get.mess.code("tdsls4101s000",error)
if not (isspace(error) and mess_code = "tdsls00010") or isspace(error)then
ret = stpapi.update("tdsls4101s000",0,error)
ret = stpapi.save("tdsls4101s000",error)
endif
Thanks in Advance
Regards,
Hardei