You useline types to define the layout of templates. However, to create a template like the one below, you cannot use the template concept of Smart Forms:
The cells of the colored part cover several lines. However, SAP Smart Forms does not allow you to specify for a cell of a line type that you want this cell to cover several lines.
To print such a layout in a form, you must divide the template layout into several windows and create one template per window. To print the template above, you would need three templates in three windows in SAP Smart Forms (see differently colored sections):
This combination technique enables you to print templates of any complexity in a form.