LittleJohn
2nd August 2002, 03:13
Hi,
I'm trying to Maintain Outbound Data(tdilc4101m000) using the Function Server API calls. The data is in a ASCII file.
I'm on Baan IVc2 (No Source Codes).
The manual process would be to run the tdilc4101m000 session, input the values of Run Number, Order Type & Ord #... and futher on hit the "Lines" Button. This would start the sub-session tdilc4102s000.
(The 'Lines' button on the tdilc4101m000, is the Continue button)
In the tdilc4102s000 subsession, I would just enter the Position Number. The Seqn (serb) defaults automatically. I would just insert the Qty and save the record.
I'm trying to use the Function Server to work this out.
After I do the required "put" func calls, I do a "get" just to check the values.... The problem I'm facing is, the other fields like Item, Warehouse, Date, Unit, etc never get populated at all and this results in the record not being saved.
It comes up with a error "Command Cancelled" when I do the f4102s000.update(1, err.msg)
The other strange thing is, When I look up the various process started in the background (Option Dialog, "ps"), apart from the processes tdilc4101m000 and tdilc4102s000, there is a third process that comes up... it is tdilc4513s000.
(No idea why this comes up, and does not get killed when I try to kill it through the API call handle.sub.process().... quite a tough customer ;) )
I'm attaching the script, Can someone please help me working out this solution. Thanks a lot.
Adios
Minhaaj
f4101m000.put.Run(hold.runn)
f4101m000.put.k.o.order(hold.type)
f4101m000.put.ordernr(hold.pdno)
f4101m000.handle.sub.process("tdilc4102s000", "add")
f4101m000.continue(err.msg)
f4102s000.handle.sub.process("tdilc4513s000", "kill")
if isspace(err.msg) then
f4102s000.put.Order_Type(hold.type)
f4102s000.put.Order_Number(hold.pdno)
if item.exists = 1 and hold.pono <> 0 then
f4102s000.put.Position_Number(hold.pono)
endif
f4102s000.put.Sequence_No.serb(temp.serb)
f4102s000.put.tdilc401.qstr(hold.qty)
f4102s000.save(err.msg)
f4102s000.update(1, err.msg)
f4102s000.end()
endif
f4101m000.end()
I'm trying to Maintain Outbound Data(tdilc4101m000) using the Function Server API calls. The data is in a ASCII file.
I'm on Baan IVc2 (No Source Codes).
The manual process would be to run the tdilc4101m000 session, input the values of Run Number, Order Type & Ord #... and futher on hit the "Lines" Button. This would start the sub-session tdilc4102s000.
(The 'Lines' button on the tdilc4101m000, is the Continue button)
In the tdilc4102s000 subsession, I would just enter the Position Number. The Seqn (serb) defaults automatically. I would just insert the Qty and save the record.
I'm trying to use the Function Server to work this out.
After I do the required "put" func calls, I do a "get" just to check the values.... The problem I'm facing is, the other fields like Item, Warehouse, Date, Unit, etc never get populated at all and this results in the record not being saved.
It comes up with a error "Command Cancelled" when I do the f4102s000.update(1, err.msg)
The other strange thing is, When I look up the various process started in the background (Option Dialog, "ps"), apart from the processes tdilc4101m000 and tdilc4102s000, there is a third process that comes up... it is tdilc4513s000.
(No idea why this comes up, and does not get killed when I try to kill it through the API call handle.sub.process().... quite a tough customer ;) )
I'm attaching the script, Can someone please help me working out this solution. Thanks a lot.
Adios
Minhaaj
f4101m000.put.Run(hold.runn)
f4101m000.put.k.o.order(hold.type)
f4101m000.put.ordernr(hold.pdno)
f4101m000.handle.sub.process("tdilc4102s000", "add")
f4101m000.continue(err.msg)
f4102s000.handle.sub.process("tdilc4513s000", "kill")
if isspace(err.msg) then
f4102s000.put.Order_Type(hold.type)
f4102s000.put.Order_Number(hold.pdno)
if item.exists = 1 and hold.pono <> 0 then
f4102s000.put.Position_Number(hold.pono)
endif
f4102s000.put.Sequence_No.serb(temp.serb)
f4102s000.put.tdilc401.qstr(hold.qty)
f4102s000.save(err.msg)
f4102s000.update(1, err.msg)
f4102s000.end()
endif
f4101m000.end()