SMARTFORMS provide number of benefits over sapscript.This step by step
will teach you various concepts about smartforms like how to call them
How to pass internal table ,How to display data in tabular way in smartforms.
You can upload the smartform used in this example (Use upload function
from the initial screen of SF and specify the name of the form e.g.ZNIRAJ_SF and select the xml file).