cancel
Showing results for 
Search instead for 
Did you mean: 

Page Break

Former Member
0 Kudos
53

Hi all.

I am showing a purchase order in smartform and i want 5 line item on every page ..after that i need a page break plz tell me the logic for this....

Regards

Lalit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Declare a program lines in the loop of main window

after printing all the data,then declare a count variable and keep on incrementing.

if c_count > n

then create a textelement and write

&SFSY-PAGEBREAK& .

REward if useful.

Former Member
0 Kudos

Hi, this is the flexible method than the previous one.

1. Create a command in the page. Create --> Flow Logic --> Command

2. This command should go at the end of the corresponding page.

3. Double-click the command, in the 'Conditions' tab Give

sy-index > n.

i n 'General Attributes' tab, select the checkbox 'Go to New Page', here you select the next page to jump.

Former Member
0 Kudos

Hello,

To insert a page break in smartform, you need:

1. Create a command in the page. Create --> Flow Logic --> Command

2. This command should go at the end of the corresponding page.

3. Double-click the command, in 'General Attributes' tab, select the checkbox 'Go to New Page', here you select the next page to jump.

I hope it will help you.