Issue #22081:add edit to prevent over application of target apopen

This should be `-6` to match [storedProcErrorLookup](https://github.com/xtuple/qt-client/blob/4_8_x/common/storedProcErrorLookup.cpp#L984)