Are you sure that your requirement is well thought-out?
VL10B is used for creating multiple documents, not a single one.
What is the problem just to press the log button and see the log there?
Even if you manage to get all delivery numbers from the log, it can happen that you cannot fit all information in your message, because I think there is a limitation on how many characters you can have there.