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.
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.