guilmor
4th October 2002, 18:14
Hello Baanboard!
I've been trying to create purchase orders by using dll created with ttstpcreatedll in Baan IV. I've been able to create order headers, but now I want to insert new order lines as well.
I used dll for session tdpur4101m000 to create headers.
After having a new header inserted, how do I call dll for tdpur4105s000 to create several order lines?
I've been reading Developers Guide for AFS, but I can't get on...
Here I copy the code for order headers. Any suggestions of order lines?
Thanks in advance.
Guilmor.
orno = 40 |*** serie repuestos
suno = "004469"
cotp = "CGR"
ncmp = 130
odat = date.num()
ddat = date.num()
cwar = "208"
ccty = "E"
ccur = "EUR"
odis = 0.0
dll4101.put.Purchase_Order(orno)
dll4101.put.Supplier(suno)
dll4101.put.tdpur040.cotp(cotp)
dll4101.put.tdpur040.comp(ncmp)
dll4101.put.tdpur040.prno(0) |**** contrato
dll4101.put.Order_Date(odat) |*** fecha de la orden
dll4101.put.Delivery_Date(ddat)
dll4101.put.tdpur040.cwar(cwar)
dll4101.put.Order_Discount(odis)
|*** dll4101.put.tdpur040.cpay("002")
dll4101.put.tdpur040.ccon(0) |*** comprador poner 0
dll4101.put.tdpur040.ccty(ccty)
dll4101.put.tdpur040.clan("E")
dll4101.put.tdpur040.cvyn(tcyesno.yes) |*** codigo de iva, SI
dll4101.insert(1,error)
dll4101.save(error)
orno = dll4101.get.Purchase_Order()
And now!?!?! :confused:
I've been trying to create purchase orders by using dll created with ttstpcreatedll in Baan IV. I've been able to create order headers, but now I want to insert new order lines as well.
I used dll for session tdpur4101m000 to create headers.
After having a new header inserted, how do I call dll for tdpur4105s000 to create several order lines?
I've been reading Developers Guide for AFS, but I can't get on...
Here I copy the code for order headers. Any suggestions of order lines?
Thanks in advance.
Guilmor.
orno = 40 |*** serie repuestos
suno = "004469"
cotp = "CGR"
ncmp = 130
odat = date.num()
ddat = date.num()
cwar = "208"
ccty = "E"
ccur = "EUR"
odis = 0.0
dll4101.put.Purchase_Order(orno)
dll4101.put.Supplier(suno)
dll4101.put.tdpur040.cotp(cotp)
dll4101.put.tdpur040.comp(ncmp)
dll4101.put.tdpur040.prno(0) |**** contrato
dll4101.put.Order_Date(odat) |*** fecha de la orden
dll4101.put.Delivery_Date(ddat)
dll4101.put.tdpur040.cwar(cwar)
dll4101.put.Order_Discount(odis)
|*** dll4101.put.tdpur040.cpay("002")
dll4101.put.tdpur040.ccon(0) |*** comprador poner 0
dll4101.put.tdpur040.ccty(ccty)
dll4101.put.tdpur040.clan("E")
dll4101.put.tdpur040.cvyn(tcyesno.yes) |*** codigo de iva, SI
dll4101.insert(1,error)
dll4101.save(error)
orno = dll4101.get.Purchase_Order()
And now!?!?! :confused: