mihaela
26th August 2004, 17:08
The code I am trying to run is:

stpapi.put.field("tdilc4201m000", "print.recom", str$(etol(tcyesno.no)))
stpapi.put.field("tdilc4201m000", "prnt.shortage", str$(etol(tcyesno.yes)))

stpapi.set.report("tdilc4201m000", "rtdilc420102000", "D", err)

if isspace(err) then
stpapi.print.report("tdilc4201m000", err)
endif

stpapi.continue.process("tdilc4201m000", err)
message("Error - " & err)

stpapi.end.session("tdilc4201m000")

The message displays "Error - Report name not filled" and I do not get the report on screen. I have ran the same code on another server (Windows) and it works. Is this happening because this one I am working on at the moment is a Unix? I really need to see the report on my screen, please help me...

Thank you.
Mihaela.

Hitesh Shah
26th August 2004, 17:50
The SP level must be different and the one where it's not working must be older.

mihaela
26th August 2004, 18:00
No, it's quite the opposite: the one where it's not working is newer...
What else can it be?

mark_h
26th August 2004, 20:09
It could still be the same problem. Just because you have a latter service pack does not mean you have the latest stpapi objects and libraries. I would certainly check that. I have seen new tools release cause problems with the stpapi commands.

Mark

mihaela
26th August 2004, 20:38
Thank you very much. I will search on support.baan.com for the latest sollutions on stpapi.

Mihaela.