Hi Slorf and welcome to the board.

We use SAP as well and I might be wrong, but I don't think it has to be in a specific order within the file. You should be able to append your entry to the end of the file and I "think" it will work. Not 100% sure as it has been over a year since I helped to roll out SAP.

If you want to place it in a specific location then you'll need to use some of the Array UDFs to place the entire file into an array and then locate what you're looking for, then place it into that location, then write the file back out.