Example from the SO entry program
Whith ....
.Value = GetNewDocNo("Arsyst.cSoNo", "lAutoSoNo", "Sosord/Sosordh", ;
"cSoNo", .Value)
This is an internal functin that probably uses the SP you are talking about. I've been using it like this for a new "pm" module:
.Value = GetNewDocNo("PMsyst.cPmSoNo", "lAutoSoNo", "pmsord/pmsordh", ;
"cPmSoNo", .Value)
Are you member of the VAM community? You would get quicker response from over there. And learn a lot just by reading too.
HTH
Diane Robitaille eng.