AlexKir
4th February 2002, 15:50
Hello All!

I write session for add new user.
It`s work.
We install SP9 tools.
My session run ttaad2100m000 with stpapi and i receive messge "Time not allowed"

Script:
.....
stpapi.put.field("ttaad2100m000", "ttaad200.sttm", "0") | Start Time
stpapi.put.field("ttaad2100m000", "ttaad200.edtm", "2400")| End Time
.....
err_afs = stpapi.insert("ttaad2100m000", 1, status)
status = stpapi.get.mess.code("ttaad2100m000")
......

Any help ?

Thanks.

popeye
4th February 2002, 21:57
Hi Alex,
Looks like your session was working before you applied SP9.

In most of the cases, the following objects cause the problem.
ottstpstandard
ottstp_stddll
ottstpstdlib
ottstpapihand

If you have the "old" objects set them only to your login and
test them out.
If the session works with the “old” objects contact Baan for
the latest “working” objects.


1. Put the new objects in the Home directory of the required user (baanjobs).
/usr4/batch_jobs/ttB40_c1/ottstp/

2. In $BSE/lib there will be a file called fd6.1.<currpackcomb>

3. In that file there would be a line giving the "paths" for ott.
ott:${BSE}/tools/ttB40_c1:${BSE}/tools/ttB40_b:${BSE}/tools/ttB40_a

4. Add an additional line so that the new objects can be pointed out to only the unique user.
{baanjobs}ott:${BSE}/tools/ttB40_c1:${BSE}/tools/ttB40_b:${BSE}/tools/ttB40_a:/usr4/batch_jobs/ttB40_c1/ottstp

Youp2001
4th February 2002, 22:26
That is a good way to test it, however I'm not sure if the way it is described is the correct way. A few remarks:

- As far as I know Baan searches your home-directory first for objects. So just placing them there would be enough. In that case the filedef (fd6.1<pack.comb>) can be left unchanged.

- If you change the filedef (fd6.1<pack.comb>) change the new line so that your home directory is at the start of the line so:
{baanjobs}ott:/usr4/batch_jobs/ttB40_c1/ottstp:${BSE}/tools/ttB40_c1:${BSE}/tools/ttB40_b:${BSE}/tools/ttB40_a

The first directory mentioned here is the first directory that is searched for an object so it will always check your home-dir first.

Success

popeye
4th February 2002, 22:34
Yup ... it should be

{baanjobs} ott:/usr4/batch_jobs/ttB40_c1/ottstp:${BSE}/tools/ttB40_c1:${BSE}/tools/ttB40_b:${BSE}/tools/ttB40_a


I am not sure if it searches the home directory first.
I do not see any reason why it should do that.

In any case you could explode the object to see which object
is being picked up for your login.

explode6.1 ottdllbidi

Alex you could try without changing the fd file.
If that doesn't work, then add the line in the "fd" file.