2008 Jan 25 12:22 PM
Hi all,
Could you tell me how to trigger a new page on the end of a particular date?
Actually I am passing an internal table from the program to the smartform. And in the smart form i have used table format to display all the records. The requirement now is I need to display all the records belong to a particualar date should be in one page. How can i achieve this?
I tried setting command line in footer of the table. But it is nowhere showing such option for command line.Do anybody have an idea.
Many thanks.
Hi all,
Could you tell me how to trigger a new page on the end of a particular date?
Actually I am passing an internal table from the program to the smartform. And in the smart form i have used table format to display all the records. The requirement now is I need to display all the records belong to a particualar date should be in one page. How can i achieve this?
I tried setting command line in footer of the table. But it is nowhere showing such option for command line.Do anybody have an idea.
Many thanks.
2008 Jan 25 12:44 PM
hi feddie,
your problem can be solved in the following way.
create one more table which contains only the dates in distinct number. this means, the number of records in the table are the number of page breaks you need.
now pass both the date table and data table to smartform
and follow the logic shown below.
loop IT_DATE table
loop at IT_DATA table where IT_DATA-date = IT_DATE-date
<display your data>
endloop.
command <go to next page> where IT_DATA-date NE IT_DATE-date
endloop.
I used this logic in my smartform and it works.
hope this solves your problem.
Reward points if useful
cheers!!
2008 Jan 27 6:29 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |