You describe a form using a Smart Form. To do this, use the Form Builder (see also:
Graphical User Interface):
For an overview of the elements available on page level, see
Result
When you activate your Smart Form, the Form Builder generates a function module that encapsulates the form description.