cancel
Showing results for 
Search instead for 
Did you mean: 

samrtforms problem

Former Member
0 Kudos

Hi Experts,

My doubt is i have 15 records , i want print 10 records per page , So in first i printed 10 records and second page i want print remaining 5 records and following 5 records as blank records, how can i achieve this, helpful answers are going award,

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

You can acheive this by placing a templet inside your loop, also place a command for triggering the next page if first page is filled with 10 records... don't forget to tick the check box in command goto next page and give the next page attribute and place your condition in output options of your command(i.e if > 10).

Note: in smartform templets helps us to print blank spaces or records.

go through this link, it helps you in creating templets...

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985">Sample</a>

Close the thread once your question is answered.

Regards,

SaiRam

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

in the code you have to handle this

first read the Internal table records into a variable

absed on that variable value fire the new page command

IF V_VAR > 10.

NEW-PAGE.

ENDIF.

Regards

anji

Former Member
0 Kudos

Hi Anji,

the logic you provided that was fine.. main problem isin second page how print after 5 records ,remaing five records should print blank spaces, because per page 10 records only..

Former Member
0 Kudos

Hi,

Do u want that in second page after printing 5 records, the remaining 5 records space should be covered by a border or box ? If so, then in Windows checkmark the border and give some value to line width. It will solve your problem.

Regards,

Sujoy