Scrape Relative manually, for each table row

Hi, how do I manually set up activities to achieve Scrape Relative functionality? I want to modify the default Scrape Relative wizard so that it can scrape each row from a table. Combine Scrape Relative with a for each loop for a scanned invoice with a table with line items. Also how do I specify a condition so that it stops looping once it encounters the last line of the table?

Any help?