cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Printing Problem for double sided printing

Former Member
0 Kudos

Hi Techies,

I have created a smartform for invoice printing, using double side printing.

The requirement is that in the front page, page number has to be printed and at the back side static text is to be printed. So if my line items exceed to two pages. Than in printing, it is getting priinted as "Page 1 of 4" for the 1st invoice items page and "Page 3 of 4" for the second items page. But the client is asking it to be printed as "Page 1 of 2" & "Page 2 of 2" respectively.

Currently I am using Page&SFSY-PAGE& of &SFSY-FORMPAGES&.

Can anyone guide me how to achieve this requirement.

Thanks & Regards,

Vinit.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi vinit,

better u declare your own variable . and check with sfsy , the footer window must be final window

data : lv_page type sfsy-page,

lv_tot_page type sfsy-page.

if sfsy-formpages > 2.

lv_tot_page = sfsy-page / 2.

if sfsy-page >2

lv_page = sfsy-page - 1.

else.

lv_page = sfsy-page.

endif.

else .

lv_page = sfsy-page.

lv_tot_page = sfsy-formpages.

.

endif