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: 

Total no of records per page in SF

Former Member
0 Kudos

Hi all,

How do i print the total no of Records per page in the Smartforms.?

on the last page ihave to print the Grand Total of all the pages ?

In the Programs lines node i have written the following.

Select vkorg vbeln land1

from vbrk

into table itab.

describe table itab.

after the Program lines node i have created the Text node ...and in that i have written

&sy-dbcnt&.

But in the output i am getting only 3.Actually there are 341 records in DB.

So, how do i slove my problem ?

Thanks in advance

Krupali.

3 REPLIES 3

Former Member
0 Kudos

Hi

U need to use the system data SFSY-FORMPAGES

Max

Former Member
0 Kudos

hi ,

use variable as:

describe table itab.

i = sy-dbcnt.

and declare i(C) in text element.

Reward if helpful.

Former Member
0 Kudos

Hi

You need to define a new counter variable and update it after every record printed(+1) . Print this variable in the footer.

If useful give points

Cheers

Vamshi