View Single Post
  #1  
Old 12th May 2003, 05:56
ahulikavi's Avatar
ahulikavi ahulikavi is offline
Member
 
Join Date: Jan 2002
Location: Pune, India
Posts: 81
ahulikavi is on a distinguished road
Baan: BaaN IVc4 - DB: Oracle 8.x, mySQL - OS: Sun Solaris 2.6, RH 7.2
Unhappy text.write does not return new text number

We are using text.write function to create Sales Order texts from .txt files. After changing to poting set 6.1c.06.07 and
upgrading to SP11 text.write functions is returning existing text number instead of creating new text.

eg :

Existing text no 23456 having 1 line of text
tmp.file is a text file having 15 lines of text

Code:
t.no =  text.write( "txt.name", "2", kw1,kw2, kw3, kw4, "", "",  tmp.file )

if t.no < 0 then
	message("Error Writing Text for Order No /n %d", tdsls040.orno)
else
	commit.transaction()
	message("Writing Text for Order No /n %d", tdsls040.orno)
endif

after
Code:
t.no =  text.write( "txt.name", "2", kw1,kw2, kw3, kw4, "", "",  tmp.file )
t.no = 15 -> this is right, as expected it should return the number of line written which is 15
txt.name -> should return a new text number, instead it returns 23456, which already exists

I get the message "Writing Text for Order No ...", which means transaction is commited.
Now if you see text 23456 in Maintain Texts it shows the original text with 1 line.


As I see it text.write is not creating a new text for some reason.

Am I missing something here?, Baan support is unable to help (as usual !!).

__________________


Akshay
Reply With Quote