how to send the data with in the while loop in ax 2012 ssrs report

hi,

am using the while loop to send the data in ssrs report.in normal report with in the while loop am able to send the data seprately.

while select tablename

{ element.send(tablename); ///in 2009 normal report

}

the same while loop i want to use in 2012 ssrs report

while select tablename

{

tmptable.fieldname = tablename.fieldname;

tmptable.insert();

}

am inserting every data in to the tmp table and using this one as a RDP and geeting bult of data from the tmp table.

but i need to send the data like normal report in 2009.

plz any one know this concept means reply me .

thanks.