I think I can add variables in the SO10 text then replace the variables as described here:How to replace a variable in SO10.
But then there is another requirement to have a different footer on the introductory text depending on the company code from which the document is created for. I plan to store the footer texts in SO10 standard texts as well. Would it be possible to append this to the first text to complete the introductory text that is required?