Hello, finally got it to work using -SUBROUTINE TESTINOUT_VARCHAR( string Ls_In, ref string ls_out) RPCFUNC alias for "schema.testinout_varchar"- in local external functions for a newly created transaction object and changed the parameters to have an in and out instead of just inout.
Thanks everyone for your help on this.