abapsap-smart-forms

Smartforms trigger new page for given condition


I have prepared a smart form, which has a table in main window. So there can be hundreds of lines in the table. What I want to do is to trigger new page for every 10 records.

I'have resized the main window to height that at most 10 records are fit and selected the new page tick in command. It is kind of working but I want to do this programatically.

Like;

if count % 10 = 0
then GO_TO_NEW_PAGE

How can I do this ?


Solution

  • You should be able to trigger a Dynamic Page Break using a Command Node. I haven't tried what this does to the table header / footer though...