A workaround I can think of is to make a download of the unloading points per partner first. And sort those smaller to larger or alphabetically depending on your system. In your script you include the same sorting of the unloading points. In my ecc system I have an option to sort the unloading points. Button below the grid, or right mouse click can bring you there. Hope in MDG is also there to help you.
In that case your download/template matches with what you see on screen.
Add an additional column with the rown number in your template and use if statements in your script to select the correct line.
------------------------------
Rick Compen
Data Engineer
Lumileds Netherlands B.V.
Eindhoven
------------------------------