Holger R
21st November 2005, 18:11
Hi all,
is it possible to create warehouse receipts (whinh3512m000) in LN using AFS?
Or is this one of those which is not possible to manage with AFS because of multi-main-table session.
If you know anything, please let me know.
Kind regards,
Holger
ulrich.fuchs
30th November 2005, 15:14
The AFS is available in LN, but it seems to be somewhat deprecated for SSA LN (it is a fantasic tool, but from a software architecture point of view it is a bad hack, unfortunately). However, this is not as bad as it might look on the first place: Most of the processing functionality in SSA LN was transferred from the Sessions to DLLs. Basically, the session just takes the user input and handles it over to a DLL which does the actual processing. So, before spending too much time to find out how to handle your problem with AFS, check if there is an appropriate DLL that you can call.
Uli
khnnaik
3rd August 2007, 12:38
stpapi.form.command( "whinh3512m000", 5, "option.new.receipt", err.msg )
stpapi.handle.subproc( "whinh3512m000", "whinh3820m000", "add" )
stpapi.put.field("whinh3820m000","whinh210.oorg","80")
stpapi.put.field("whinh3820m000","whinh210.orno","100000135")
stpapi.put.field("whinh3820m000","whinh210.oset","1")
stpapi.put.field("whinh3820m000","whinh210.pono","10")
stpapi.put.field("whinh3820m000","whinh210.seqn","1")
ret = stpapi.find("whinh3820m000",err.msg)
if ret then
ret = stpapi.mark("whinh3820m000",err.msg)
if ret then
stpapi.form.command( "whinh3820m000", 5, "link.to.receipt.and.exit", err.msg )
message("mes final is %90s",err.msg) ||Though there is no error message, it could not return the expected order lines for receipt, any reason?
endif
endif
kathuria
3rd August 2007, 22:19
Hi,
This link will help you for warehouse receipt.
http://www.baanboard.com/baanboard/showthread.php?t=7101&page=2
Regards,
Sanjay
khnnaik
4th August 2007, 06:37
The referred thread did not work in ERP Ln 6.1. I got a solution to handle whinh3512m000 thru whinh2110m000. It's very simple to write the AFS thru that session.
The code looks like :
stpapi.put.field in whinh2110m000
stpapi.find in whinh2110m000
stpapi.mark in whinh2110m000
stpapi.form.command in whinh2110m000. It will automatically return the receipt lines in whinh3512m000.
K H N Naik
deepakb
18th February 2008, 17:59
Hi Naik,
I have been trying to create Warehouse receipt usine same method as you mentioed below. First look up in Inbound Order Line (whinh2110m0000) and use form command to create receive for it (invokes whinh3512m000). This is creating receipt as required but in the meantime it is giving fatal error as "Object 0 not found for process <process no of whinh3512m000 internally started>". The code I have written is as belows -
|* Create Receipt Header
stpapi.put.field("whinh2110m000", "whinh210.oorg", str$(whinh210.oorg))
stpapi.put.field("whinh2110m000", "whinh210.orno", whinh210.orno)
stpapi.put.field("whinh2110m000", "whinh210.pono", str$(whinh210.pono))
stpapi.put.field("whinh2110m000", "whinh210.seqn", str$(whinh210.seqn))
stpapi.put.field("whinh2110m000", "whinh210.oset", str$(whinh210.oset))
ret = stpapi.change.view("whinh2110m000")
err.msg = stpapi.get.mess.code("whinh2110m000")
if ret = 1 then
ret = stpapi.mark("whinh2110m000")
stpapi.form.command("whinh2110m000", 5, "receive.order.lines", err.msg)
if not isspace(err.msg) then
err.msg = form.text$("tdpurs901.04") & " - " & err.msg
handle.error()
stpapi.end.session("whinh3512m000")
stpapi.end.session("whinh2110m000")
continue
else
stpapi.save("whinh3512m000", err.msg)
stpapi.end.session("whinh3512m000") |*This statement*|
endif
endif
The execution of last statement (stpapi.end.session("whinh3512m000")) gives this fatal error.
Can you let me know the reason & solution for this.
regards,
Deepak
The referred thread did not work in ERP Ln 6.1. I got a solution to handle whinh3512m000 thru whinh2110m000. It's very simple to write the AFS thru that session.
The code looks like :
stpapi.put.field in whinh2110m000
stpapi.find in whinh2110m000
stpapi.mark in whinh2110m000
stpapi.form.command in whinh2110m000. It will automatically return the receipt lines in whinh3512m000.
K H N Naik
mark_h
18th February 2008, 19:39
The best solution is to contact Baan - I believe you will need either new session objects or possibly a stpapi update. I do not know that for a fact. Kathuria might be along to post a better solution.
Also only post once - please do not do duplicate posts!
Thanks
cte sistemas
4th November 2010, 18:26
Hi Gurus:
Some one made the AFS to receipts in Baan LN, can you help me with a part of the code or with some tips to manage this?
it is urgent please.
God Bless You.
Thanks
mark_h
4th November 2010, 20:45
My recommendation is to search for session names in this forum. Looks for code that already works. Now I have been told that DAL2 is the better option for LN, but I have no experience with LN at all.