LittleJohn
20th January 2005, 04:01
Hi,

I'm having a problem when trying to update the Planned Rec. Date on the Sales Order Line (tdsls401.prdt). The new date is stored in a temp variable hold.date

This is in Baan Vc.

I keep getting a error message "Item Not Allowed" when am updating or saving.

hold.sqnb = 0
|tdsls4501m000f.synchronize.dialog("add", err.msg)

tdsls4501m000f.put.Sales_Order(hold.orno)
tdsls4501m000f.put.Position_Number(hold.pono)
tdsls4501m000f.put.Sequence_Number(hold.sqnb)

if tdsls4501m000f.find() = 1 then

temp.orno = tdsls4501m000f.get.Sales_Order() |* Correct Val is returned
temp.pono = tdsls4501m000f.get.Position_Number() |* Correct
temp.sqnb = tdsls4501m000f.get.Sequence_Number() |* Correct

if temp.orno = hold.orno and
temp.pono = hold.pono then
tdsls4501m000f.handle.sub.process("tdsls4101s000", "send")
|* tdsls4501m000f.handle.sub.process("tdsls4101s000", "add") |*Tried this as well
tdsls4101s000f.put.Sales_Order(hold.orno)
tdsls4101s000f.put.Position_Number(hold.pono)
tdsls4101s000f.put.Sequence_Number(hold.sqnb)
temp.orno = tdsls4101s000f.get.Sales_Order()
|* Correct Val Returned
temp.pono = tdsls4101s000f.get.Position_Number()
temp.sqnb = tdsls4101s000f.get.Sequence_Number()

tdsls4101s000f.put.Planned_Receipt_Date(hold.date)
tdsls4101s000f.update(1, err.msg)
|--> err.msg has "ITEM NOT ALLOWED" ****
tdsls4101s000f.save(err.msg)
tdsls4101s000f.end()
endif
else
message("Could not find Sales Order for update!")
tdsls4501m000f.end()
endif
tdsls4501m000f.end()

what am I doing wrong.... Please advice. Thanks

Regards
LittleJohn

LittleJohn
20th January 2005, 05:10
Thanks for looking folks...

I had commented out the synchronize.dialog() by mistake :D
its working now :)