2012 Mar 01 4:28 AM
Hi,
In gobal definition i have taken a variable var1 of type sy-index and in the main area i have written logic
var1 = var1 + 1 .
if var1 > 5.
w_flag = 'x'.
on condition w_flag = 'x'. go to new page.
this requirement is for page break if the no of rows is grater than 5. the control should go to new page.
if there are 10 vendors and vendor no 6 is having 8 records. that particular vendor item details should
come on two pages.
can any one suggest me how to write the code ansd where to write the code.
Hi,
In gobal definition i have taken a variable var1 of type sy-index and in the main area i have written logic
var1 = var1 + 1 .
if var1 > 5.
w_flag = 'x'.
on condition w_flag = 'x'. go to new page.
this requirement is for page break if the no of rows is grater than 5. the control should go to new page.
if there are 10 vendors and vendor no 6 is having 8 records. that particular vendor item details should
come on two pages.
can any one suggest me how to write the code ansd where to write the code.
2012 Mar 01 4:39 AM
Put the counting inside the loop or table.
Add a command node (Create-> Flow Logic -> Command)
in the conditions put there VAR = 5. This will trigger the command to be executed and forced to create a new page.
2012 Mar 01 6:12 AM
Hi,
Below link gives a detailed explaination for implementing page breaks in smart forms.
<link to blocked site removed by moderator>
Thanks,
Rajesh.
Edited by: Thomas Zloch on Mar 1, 2012
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |