LoadStatefulDocument

Syntax:

LoadStatefulDocument([optionally MinSuccessfulState])

Note: Default value of the optional parameter MinSuccessfulState is 'Processed'1).

The function looks in the MessageBox of the current document for all documents of the same type (+SubType) with the same document number…

So you know if the document has already been transferred in a newer version3) and if there is a predecessor4).

Example

Result of a LoadStatefulDocument() call:

1) , 2)
The MinStatus can be adjusted.
3)
This would be the end of the processing.
4)
Then a comparison of the differences is necessary