I am working on some VB Script that calls a stored Procedure to insert records into Extender Tables for a Purchase Order. I am using the After Document script. It works fine when I explicitly call out a PO Number in my Source File, because one of the Parameters of the procedure id PONumber, so I can use the SourceFields("PONumber") and get that value. But what if I wanted to not map that PO number and just have GP generate my next PO Number based on the system? How can I fetch that number that it creates for example "PO00008" because that is the next PO number based on setup.
*This post is locked for comments