问题好像解决啦。
学习了一边setsqlselect的帮助,看到这样一句表述:
If the new SELECT statement has a different table name in the FROM clause and the DataWindow object is updatable, then PowerBuilder must change the update information for the DataWindow object.
我怀疑是因为存储过程的表名和原sql里表名不同,pb对dw进行设置出现的此错误提示。
我发现dw里果然设置update属性啦,将update属性取消,问题解决。