This is a working piece of code that shows how to use an eConnect stored procedure to get the next PM Voucher, Payment, or Alignment number.