View Single Post
  #8  
Old 13th June 2006, 23:00
mefreakboy mefreakboy is offline
Newbie
 
Join Date: Mar 2006
Posts: 1
mefreakboy is on a distinguished road
Baan: BaanIV - DB: All - OS: All
If anybody is interested, I have tried the above suggestion and it does work for copying records. I am using a "template" supplier to copy to a new temporary supplier that is being handled by file transfers, replacing only the supplier code and name fields. Here's a sampling of the code for B4c4:

tccomf2101m000.put.Supplier(titce900.suno)
if tccomf2101m000.find() <> 1 then
|error - can't find supplier template
else
tccomf2101m000.put.Supplier(temp.suno)
tccomf2101m000.put.Name.tccom020.nama(temp.nama)
stpapi.application.option( "tccom2101m000", 1, -32, err.mess)
tccomf2101m000.save(err.mess)
tccomf2101m000.end()
endif

Thanks to all those who hinted at a solution here. There are way too many fields in the supplier table to make this a palatable experience.

Carey
Reply With Quote