KHN Naik
24th October 2002, 20:00
Hi all,
There is always an stpapi.insert problem in the Maintain Excise Invoice Details session.The Delivery Date,the transaction type and the Order type fields are non-enterable fields and come defaults when tab key is pressed in Excise Invoice No field.Even after using stpapi.put function on all these mandatory fields,the record is not getting inserted and saved and showing error as "Transaction type not allowed". I think zoom on Excise Invoice No field is also not working.I have tried using mark function also.Because while returing from the display session,all the
default fields(mandatory) are getting populated.Pl. suggest for solution

KHN Naik

mark_h
24th October 2002, 20:25
In some instances you can trick a session you start in the back ground. If the form fields that need to be filled in are table fields, then you can include the table in the fs script, set the table fields, then do the insert. If they are script variables then the best solution is to have the source to modify and debug what is going on. It is also best to always have the latest source for the session also.

What is the session number? I am not familiar with it and looking at it might give me or some others a solution for you.

Mark

KHN Naik
25th October 2002, 07:08
The session number is tdslsl205s001. The form fields (mandatory non-enterable) that need to be filled in are table fields(tdind021.eino(enterable),tdind021.eidt(non-enterble),tdind021.ttyp(non-enterable),tdind021.extr(non-enterable). I think the field tdind021.extr(Transaction type) is not getting populated thru FS properly and at the time of insert it is showing as "Transaction type not allowed").The sequence of opening of sessions are:
1.tdind0205m000
2.tdind0205s000
3.tdslsl205s001
Pl. suggest for solution

KHNNaik

mark_h
25th October 2002, 14:33
Looks like Baan 5 stuff and I am on Baan 4c3, so I am not sure if this will work for you. In your function server script include the table tdind021. Then right before you do the insert set the tdind021.extr and the othe table fields. It would look something like:


stpapi.put.field(...)
stpapi.put.field(...)
stpapi.put.field(...)
tdind021.extr = sometransaction
tdind021.eidt = soemthing
.
.
stpapi.insert(...)


Not sure if this will work in Baan5, but I use something like this on one function server.

Mark