Bruce21
18th November 2004, 10:40
Hi everyone,
by executing the following statement:

#define S7 "tisfc0102m000" | Report Operations complete
string pdno(10)
string opno(10)
string err_msg(10)
pdno = "800815"
opno = "200"

stpapi.put.field(S7, "tisfc010.pdno", pdno)
stpapi.put.field(S7, "tisfc010.opno", opno)
retcode = stpapi.find(S7, err_msg)

I always get retcode 1, so no record have been found. By manually searching with these values, it will be found.

What I am making wrong?
Best regards,
Martin

mark_h
18th November 2004, 15:37
Have you tried stpapi.change.view( "tisfc0102m000" ) instead of find?

Mark

lbencic
18th November 2004, 16:31
ret = 1 on a find is the success - it found 1 and only 1 record that matched what you put in.

mark_h
18th November 2004, 16:52
Jeeezz!!! Can't believe I missed that. :)

Mark