I was using below simple MapBasic code to create tableau formatted data in mapinfo and then export it to txt and then import.
select * from BerBre into sel1 noselect
Set CoordSys earth projection 1,104 'table sel1
dim o as object
dim i,j,k as integer
dim sName as String
k= 1
fetch first from Sel1
do while not eot(Sel1)
o = Sel1.obj
i = Sel1.rowid
sName = Sel1.Name
for j=1 to ObjectInfo(o,20)
Insert Into Tableau_Export (NAME,LONG,LAT,DRAW_ORDER) Values (sName+"_"+k,ObjectNodeX(o, 1, j), ObjectNodeY(o, 1, j),j)
next
k = k + 1
fetch next from Sel1
loop