View Single Post
  #1  
Old 21st August 2017, 13:13
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 567
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Wink Unable to get error message in AFS call

Hi all,

I want to bulk update order system system (tiitm001.osys) to MRP. For this I am passing a text file that contains list of items.

I am deliberately passing an item with MPS order system to check if the system returns same error message as if I am working with Item master session (tiitm0101m000). But, If I check value of error.desc, it remains empty. In fact when I try to change the order system directly through session, I get the error message "Item found in MPS". My code is as given below:

stpapi.put.field("tiitm0101m000", "tiitm001.osys", str$(tcosys.mrp))
stpapi.save("tiitm0101m000", error.desc)

Can anybody guide me how to get the error message ?

Vishal
Reply With Quote