baanfans
2nd March 2005, 23:00
Hello all,

I'm trying to make an API on whinh2202m000 - Easy warehousing order entry, with the next code:

stpapi.put.field("whinh2202m000","item.segment.2",tdsls726.item.o(10;16))
stpapi.put.field("whinh2202m000","qty.storage.unit",str$(tdsls726.cans.o))
stpapi.put.field("whinh2202m000","shipfrom.code",tdsls725.cwar.o)...

In order to fill variables and process in background by API the session, and when running the session appears the next bshell error:

Zero pointer: name 'baan_input_fields' in qss.search
Can not continue in whinh2202m000 in DLL: ottstpstandard (<473>)[qss.search]
Uso de puntero NULL en ''
Can not continue in whinh2202m000 in DLL: ottstpstandard (<473>)

Thanks in advance, :)

mark_h
3rd March 2005, 15:58
Search this forum for qss.search. Several methods have been used to overcome this error. I recommend contacting support an getting the latest stpapi objects and session objects. I am not familiar with this session so some I am not sure what might apply.

Mark

Paul P
12th April 2005, 06:32
Sorry for my earlier overlook. Using that piece of code alone surely won't work, baanfans. Several important fields have not even been filled. Have you been able to solve this problem? If not, please post your current code

Rgds,
Paul

lakoon
12th April 2005, 08:28
Hello baanfans

the following code was working for me

#define WH.SHORT "whinh2202m000"
stpapi.put.field(WH.SHORT, "item.segment.1", " ")
stpapi.put.field(WH.SHORT, "item.segment.2", item)
stpapi.put.field(WH.SHORT, "order.origin", str$(oorg))
stpapi.put.field(WH.SHORT, "order.type", cotp)
stpapi.put.field(WH.SHORT, "shipfrom.code", fcwa)
stpapi.put.field(WH.SHORT, "lot.selection", str$(etol(tclsel.specific)))
stpapi.put.field(WH.SHORT, "lot", clot)
stpapi.put.field(WH.SHORT, "qty.storage.unit", str$(quan))
stpapi.put.field(WH.SHORT, "shipfrom.loca", floc)
stpapi.put.field(WH.SHORT, "shipto.code", tcwa)
stpapi.put.field(WH.SHORT, "shipto.loca", tloc)
stpapi.put.field(WH.SHORT, "delivery.date", strip$(shiftl$(tmp.date)))
stpapi.put.field(WH.SHORT, "receipt.date", strip$(shiftl$(tmp.date)))
stpapi.put.field(WH.SHORT, "direct.update", str$(drup))
stpapi.set.report(WH.SHORT, "rwhinh220211900", "ASCIF", err.msg)
stpapi.put.field(WH.SHORT, "spool.fileout", "/dev/null")
if not isspace(err.msg) then
|Read error messages
get.api.messages(WH.SHORT)
endif
stpapi.form.command(WH.SHORT, 5, "exec.cont.process", err.msg)
if not isspace(err.msg) then
get.api.messages(WH.SHORT)
else
trans.result(1) = "o.k."
send.data.to.client(0,1)
endif
stpapi.end.session(WH.SHORT, err.msg)

Just a remark: sometimes the session itself would work but the several involved dll's for the warehousing functionality not always "love" api mode....

/lakoon

doganuf
19th October 2006, 15:55
Hello,

I have the same problem. It gives an error with first line about Afs(put.field) and i cant find a solution about it:(

Could u tell me how u fixed it, please?

Thanks.