Hi,
When you are trying to call the smartform through a driver program you need to pass the values defined in the FORM INTERFACE. And thus if you have maintained a table in the interface then you need to pass the appropriate values.
The looping depends on the coder, it is better to use the LOOP option within the TABLE node of the smartform.