Is there some specific problem with the script in the image you provided? It seems like it would be accessing table boxes and then utilizing << Make Into Data Table to create tables.
You could also consider only accessing the first table box and using << Make Combined Data Table instead.
-Jarmo