cancel
Showing results for 
Search instead for 
Did you mean: 

New Page command not working in SMARTFORM

tony_raimo2
Explorer
0 Kudos

I have a text file in an internal table of type TSFTEXT. I'm passing this internal table to my smartform. The smart form has 1 page, 1 main windo and 1 text element. The text has a text type of "Dynamic Text" and a fieldname = <<internal table of type TSFTEXT>>. The start property = "New Paragraph".

In the internal table (TSFTEXT), i have a few NEW-PAGE commands. These seem to be ignored. How can I force the smartform to create a new page. Here is what the internal table looks like.

/ here is some text 1

/ here is some text 2

/ here is some text 3

/ here is some text 4

/ here is some text 5

/:NEW-PAGE

/ here is some text 6

/ here is some text 7

/ here is some text 8

/ here is some text 9

/ here is some text 10

Thank you,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi..

In smartforms NEW-PAGE is triggered by using Command node which is created as follows:

Create-> Flow Logic -> Command. Check the new page checkbox and specify the next page.

Regards,

Karthik

Former Member
0 Kudos

As far as I know, NEW_PAGE is not applicable in smartforms. That only applies to Sapscripts. As you stated in your requirement, to have a new-page in smartform, try to adjust the height of the main window. Once the records on the internal table reaches the total height, then it will automatically create a new page...