Application Development 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: 

In smartform : in a table i need to maintain fixed no of rec

Former Member
0 Kudos

.2.in smartform in a table i need to maintain fixed no of records in each page i.e 10 records in each page and after printing 10 records page break has to occur and print them in New page , how to do this can any body help me.in each page i.e 10 records in each page and after printing 10 records page break has to occur and print them in New page , how to do this can any body help me.

3 REPLIES 3

Former Member
0 Kudos

Hi,

I dont know if there is any direct way of doing so, but ican suggest a turn around solution.

declare 2 global tables 1. ITAB_10 type ITAB (in which there is ur data)

2. IT_ROW inwhich 2 cloumn (start_pos & end_pos type i)

Now in intialization.

Caluculate no of rows in ITAB.

Say there are 56 rows, then fill table it_row as 1(start_pos) - 10(end_pos), 11-20,...51-56.

Then in main Window, Create a loop on IT_ROW.

in that create a CODE under this loop in which fill ur ITAB_10 from ITAB as per start_pos& end_pos in IT_ROW.

Then create TABLE under the loop, for ITAB_10.

Regards,

Vaibhav.

0 Kudos

Hi Vaibhav ,

Thanks for your answer.

With Best Regards

Bhaskar Rao.M

Former Member
0 Kudos

Dear Bhaskar Rao,

U Can try in LOOP

There is one option is ROW xx TO xx (in xx place you can give no'f lines)

here u can give no'of rows.

Cheers

Naresh