ram_baan
6th August 2010, 15:04
Hi All,
I am facing the problem while creating a purchase order through AFS. The error message "Editable Synchronized Dialog not started" is shown after the stpapi.insert command run.
Please find the below code for the creation of purchase order through AFS. Please guide me if any part of code is incorrect.
ret = stpapi.synchronize.dialog("tdpur4100m900","add",err.msg)
if ret then
stpapi.put.field( "tdpur4100m900", "tdpur400.otbp", "SUP000021")
stpapi.put.field( "tdpur4100m900", "tdpur400.cofc", "AT2")
ret = stpapi.insert( "tdpur4100m900", true, err.msg)
if not ret then
ret = stpapi.recover("tdpur4100m900",err.msg) endif
stpapi.end.session("tdpur4100m900")
endif
Quick Reply would be appreciated.
Thanks,
Rama.
I am facing the problem while creating a purchase order through AFS. The error message "Editable Synchronized Dialog not started" is shown after the stpapi.insert command run.
Please find the below code for the creation of purchase order through AFS. Please guide me if any part of code is incorrect.
ret = stpapi.synchronize.dialog("tdpur4100m900","add",err.msg)
if ret then
stpapi.put.field( "tdpur4100m900", "tdpur400.otbp", "SUP000021")
stpapi.put.field( "tdpur4100m900", "tdpur400.cofc", "AT2")
ret = stpapi.insert( "tdpur4100m900", true, err.msg)
if not ret then
ret = stpapi.recover("tdpur4100m900",err.msg) endif
stpapi.end.session("tdpur4100m900")
endif
Quick Reply would be appreciated.
Thanks,
Rama.