Skip to Content
0
Former Member
Aug 31, 2007 at 09:30 AM

top of page

27 Views

Dear Friends,

Iam trying to print sy-pageno / total no of pages in top of page . iam doing the calculation part like this.

DATA:a TYPE i,

b TYPE i,

check.

a = sy-linct - 14.

b = sy-dbcnt / a.

c = TRUNC( b ).

check = sy-dbcnt MOD a.

IF check <> '0'.

c = c + 1.

ENDIF.

WRITE: sy-pagno, 'OF', c.

but the problem is iam not able to get value of 'C'(total number of pages),is not getting triggered.can any help me out of this