Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to trigger a new page in smartforms when using tableformat?

Former Member
0 Likes
459

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.

2 REPLIES 2
Read only

Former Member
0 Likes
444

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!!

Read only

0 Likes
444

Thanks rambo,

I got solution. Many thanks.