| # Layout Type A report can contain the following layout types: Before.report Layouts of this type are printed once at the beginning of the report. This layout can be used to present information about the report. For example, the title page of the report. Header Header layouts are printed at the top of every page. Before.field You can define this layout for each input field for which a Sort Mode is defined in the Report Input Fields (ttadv3532m000) session. Each time the value of the sorted input field changes, this layout is printed before the Detail lines. In this way the records are grouped. If a group of records spans more than one page, the before.field layout is repeated at the top of the new page (following the header). You can suppress automatic printing at the top of every page by using lattr.break as an output expression. The lattr.break output expression is a predefined variable that contains the value 1 (true) when the sort field changes. By using this output expression, the layout is only printed when the input variable is changed. Note To define multiple grouping levels in a report, e.g. group Purchase Order records first by buyer, and then by buy-from business partner: in the Report Input Fields (ttadv3532m000) session, define a Sort Mode and a Sort Seq. for each input field by which the records must be grouped. Define a before.field for each of these sort fields. The order of sorting and grouping depends on the Sort Seq. that was specified. Detail Detail layouts are used for the individual records included in the body of the report. They are printed every time that data is sent to the report. After.field You can define this layout for each input field for which a Sort Mode is defined in the Report Input Fields (ttadv3532m000) session. Each time the value of the sorted input field changes, the layout is printed after the detail lines. In this layout, the presorted input field still contains the old value. This layout, for example, can be used to print totals for a particular group of detail lines. Footer Footer layouts are printed at the bottom of each page. This layout is used to print: Titles Page numbers Page totals After.report This layout is only printed at the end of the report, and after all other layouts. If this layout does not fill a complete page, the footer layout will be printed at the bottom of the page, where the After.report layout(s) is printed. |