Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 2nd September 2006, 22:38
Andy..'s Avatar
Andy.. Andy.. is offline
Senior Member
 
Join Date: Aug 2001
Location: UK
Posts: 236
Andy.. is on a distinguished road
Baan: BaanIVc4, Baan5c, ERP LN - DB: Oracle, Informix, SQL Server - OS: UNIX, Windows Server
whinh2520m000 advice shortage message

Hi, I've been doing stuff with outbound and cannot find the error/warning/message that appears in the normal Baan(5c) session whinh2520m000 when trying to direct release

The test data has a (valid) error reporting a shortage:
"advice shortage of XXqty for item YY"

having marked the line - I then run:
Code:
|direct release
stpapi.form.command( "whinh2520m000", 5, "exec.user.5", error )
	if error = "" then    |if error not produced by form.command above...
		error=( stpapi.get.error( ) )
	endif
	if error <> "" then
		message("direls error " & error)
		stpapi.end.session( "whinh2520m000" , error  )
	endif
the command works if there is stock, but if there's a shortage I can't see the warning message. I have got round this by checking ship qty afterwards - but would be better to see the Baan error produced. I've never had to use stpapi.get.error before - is this the correct way of using it? thanks
__________________
Andy
Reply With Quote
Sponsored Links
  #2  
Old 3rd September 2006, 02:08
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,905
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Right after the form command try using the stpapi.get.mess command. At least that is what I think it is. This should get you any warning messages. I do not recall ever using stpapi.get.error. Not sure of the format of the stpapi.get.mess or maybe it is stpapi.get.mess.code. Well good luck!
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #3  
Old 3rd September 2006, 12:27
Andy..'s Avatar
Andy.. Andy.. is offline
Senior Member
 
Join Date: Aug 2001
Location: UK
Posts: 236
Andy.. is on a distinguished road
Baan: BaanIVc4, Baan5c, ERP LN - DB: Oracle, Informix, SQL Server - OS: UNIX, Windows Server
thanks for the quick reply - I tried stpapi.get.mess.code as well - but that didn't produce anything either! See error message attached, not sure whether its an 'error' or 'message' ?
Attached Images
File Type: jpg shortage.jpg (6.7 KB, 25 views)
__________________
Andy
Reply With Quote
  #4  
Old 3rd September 2006, 17:16
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,905
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
It is a warning message. Did you try it write after the form command? You may also need to run it more than once - I doubt this but it was in the documentation. You may not actually get the warning in the api commands - seems to me that happened once to me. If you had source you can debug why the message is not returned. Good luck - on vacation for a week.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Errorno 22 - cannot link to shared memory torwin Tools Administration & Installation 1 2nd April 2004 20:49
bdb_errno 215 r_nagu Tools Development 7 19th December 2003 20:07
Table Doesn't exist sanjaykathuria Tools Administration & Installation 9 20th November 2003 06:14
Running a Baan script from UNIX command line; ba6.1 runtime options chadwickh Tools Development 18 25th September 2002 22:48


All times are GMT +2. The time now is 08:44.


©2001-2017 - Baanboard.com - Baanforums.com