f.martel
27th December 2011, 12:18
Ia Orana !
I need to changed the date of a opération like tisfc1101m000. I used AFS.
In this thread (http://www.baanboard.com/baanboard/showthread.php?t=61655) i explain my problem and the solution (Oups )
Now the new date it's OK.
I have a other problem. With this AFS, the time (tisfc010.rutm) was changed for 2 opération:
- The first => Time = 0
- The last => Time = 10.38
Have you ideas ?
The code :
sfcdll1101ro.put.Production_Order(i.pdno)
sfcdll1101ro.put.Operation(i.opno)
sfcdll1101ro.find()
pdno.trouv2 = sfcdll1101ro.get.Production_Order()
opno.trouv = sfcdll1101ro.get.Operation()
if pdno.trouv2 = i.pdno and opno.trouv = i.opno then
sfcdll1101ro.put.Start_Date_Remainder(i.rsdt)
sfcdll1101ro.put.Start_Day_Remainder(i.rsdp)
sfcdll1101ro.update(true,o.err)
sfcdll1101ro.end()
if strip$(mess.er) <> "" then
o.err = "?"
o.err = sfcdll1101ro.get.last.message.code()
sfcdll1101ro.end()
endif
endif
sfcdll1101ro.end()
Thanks
I need to changed the date of a opération like tisfc1101m000. I used AFS.
In this thread (http://www.baanboard.com/baanboard/showthread.php?t=61655) i explain my problem and the solution (Oups )
Now the new date it's OK.
I have a other problem. With this AFS, the time (tisfc010.rutm) was changed for 2 opération:
- The first => Time = 0
- The last => Time = 10.38
Have you ideas ?
The code :
sfcdll1101ro.put.Production_Order(i.pdno)
sfcdll1101ro.put.Operation(i.opno)
sfcdll1101ro.find()
pdno.trouv2 = sfcdll1101ro.get.Production_Order()
opno.trouv = sfcdll1101ro.get.Operation()
if pdno.trouv2 = i.pdno and opno.trouv = i.opno then
sfcdll1101ro.put.Start_Date_Remainder(i.rsdt)
sfcdll1101ro.put.Start_Day_Remainder(i.rsdp)
sfcdll1101ro.update(true,o.err)
sfcdll1101ro.end()
if strip$(mess.er) <> "" then
o.err = "?"
o.err = sfcdll1101ro.get.last.message.code()
sfcdll1101ro.end()
endif
endif
sfcdll1101ro.end()
Thanks