extra, useless page in smartform
for every output of the smartform, there is an extra, useless page with only header and footer, with no (visible) main. The main is printed completely on all but this last page.
I found the following:
In the code, generated by the smartform, there is a function call to function ssfcomp_process_document.
In the form "process_pages", there is an if-statement that decides about starting another page: if intsfsy-suppwin = c_false.
This is the point where the program decides to take a new page, I just don't know where it takes its information for that system-variable.
Can anyone help?
Thanks a lot,
One simple logic ....
Use program lines in the end of all the nodes of the MAIN window for the NEXT page.
Populate a local variable with value 'X' in the program lines.
If once the data in the main window is reached and then the flag ( local variable ) gets populated.
Put the condition to the new page command as local_variable # 'X'.