cancel
Showing results for 
Search instead for 
Did you mean: 

How To Delete The Extra Page In Smartform Output

Former Member
0 Kudos

Hi Friends,

I am working wih Smarform..which displays P.O Details (Header and Item ) .

Header Details in Template and Item Details in Table..

I am trying to print 10 P.O ..for every P.O i kept New page command.

So..finally i have to get 10 pages in output...instead i am getting 11 pages...

How to delete the extra page ? Y i am getting this..

please give helpful answers...

Points will be given after get the answer.

Thanks,

Laxmi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

as someone else said. put the newpage command at the start.

However with a condition that that it not happens at the first page.

or

Determine how many P.O.

use a counter.

If this counter is equal to number of P.O, then no newpage command.

success.

Gr., Frank

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use new-page command with condition

if sfsy-page NE sfsy-formpages

new-page.

endif.

Former Member
0 Kudos

Hi,

Keep the new page command in the start of the PO details and not in the end of the PO details..

Regards,

Ram