kathuria
4th May 2005, 09:29
Hi,

We are working with SSA ERP LN 6.1 . I am tring to update values in session tisfc0130m000 through AFS. I am getting error "EDITABLE SYNCHRONIZED DIALOG NOT STARTED"
I am also attachinh code. Please rectify it ASAP.

Code:

function afs.tisfc0130m000()
{
stpapi.put.field("tisfc0130m000","tisfc010.pdno",str$(tipol003.pdno))
stpapi.put.field("tisfc0130m000","tisfc010.opno",str$(tipol003.opno))
ret = stpapi.find("tisfc0130m000", w.err.msg)
ret = stpapi.synchronize.dialog("tisfc0130m000", "update", w.err.msg)
if ret =1 then
stpapi.put.field("tisfc0130m000","qcmp.form",str$(cqtp))
stpapi.enum.answer("tisfc0130m000", "tisfc01302", tcyesno.yes)
stpapi.put.field("tisfc0130m000","qrjc.form",str$(rqty))
stpapi.enum.answer("tisfc0130m000", "tisfc01302", tcyesno.yes)
stpapi.update("tisfc0130m000",true,w.err.msg)
stpapi.enum.answer("tisfc0130m000", "tisfc02023", tcyesno.yes)
stp
if isspace(w.err.msg) then
stpapi.end.session("tisfc0130m000")
endif
endif

}

kathuria
4th May 2005, 11:40
Dear All,

I have solved problem myself and i want to share solution with all of you.

i have simply change in this line.

Previous Line

ret = stpapi.synchronize.dialog("tisfc0130m000", "update", w.err.msg)

New Line

ret = stpapi.synchronize.dialog("tisfc0130m000", "modify", w.err.msg)


Sanjay

Paul P
6th May 2005, 07:21
As per AFS manual, "update" has never been a valid parameter for stpapi.synchronize.dialog() anyway

Rgds,
Paul

Renegade
10th May 2005, 08:22
maybe ottstpapihand has changed in LN6.1. I am yet to see AFS documentation for LN version. Can someone send me a copy to ganesh.senthil@gmail.com

Thanks

kathuria
10th May 2005, 09:34
AFS Document