Dear Marcus,
Yes it is possible.
First thing first, try and record the transaction using data from the first row via SAPGUI Script Recorder. From here you'll get all the object's ID used.
From there you can adjust your script to loop.
Thanks,
Sayuti