I suggest calling FileMaker tech support for help updating to version 13.0v5. Install support is supposed to be provided free of charge.
I'm not sure I fully understand what you want to do here.
Does this document number identify a single record in a table, a group of records or does it identify the specific instance that the document was printed?
This sounds like a version control issue for controlled documents--such as you might find as part of an ISO 9000 quality assurance system.