avin_ln
29th May 2014, 14:47
Hello everyone,

I am trying to do a Purchase invoice transaction in session tfacp2600m000 through afs. where i am executing form command copy.from.preregistration. A new session opens tfacp1210m000(It opens in dialog mode) displaying all received purchase invoices. where i am finding my document and marking the record and then ending session.


stpapi.form.command("tfacp2600m000", 5, "copy.from.preregistration", err.mess)
if isspace(err.mess) then
stpapi.put.field("tfacp1210m000", "tfacp100.ninv", str$(ninv))
ret = stpapi.find("tfacp1210m000", err.mess)
if ret = 1 then
ret = stpapi.mark("tfacp1210m000", err.mess)
if ret = 1 then
stpapi.end.session("tfacp1210m000")
return(true)
endif
endif
endif
stpapi.end.session("tfacp1210m000")
return(false)


But copy is unsuccessful, i tried stpapi.continue.process(). but it gives error.mess as command disabled.

bhushanchanda
29th May 2014, 15:07
Hi,

Check this similar issue :-

Thread! (http://www.baanboard.com/baanboard/showthread.php?t=64561)

mark_h
30th May 2014, 00:17
I just moved it to the correct forum.