Stored procedure fails or crashes the application after upgrading to PowerBuilder 2017

Symptom

It fails or crashes the application when calling a stored procedure after upgrading PowerBuilder from 12.5 or earlier to 12.6 or newer.

Environment 

PowerBuilder 2017 or later

Cause

The implementation for calling stored procedure was changed since SAP PowerBuilder 12.6.

Solution

Add PBNewSPInvocation='yes’ in SQLCA.DBParm.

You can refer to the documentation on PBNewSPInvocation for more details.