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: 

SAPscript Multiple Print

Former Member
0 Kudos

My custom form ZWASCHEIN has just one page FIRST. the nextpage is set as FIRST itself. I am using the standard print program SAPM07DR-> routine FORM 'entry_wa03'. the original form is WASCHEIN.

<u>The form is getting printed for N+1 times (N being the number of items in the GI).</u>

Would appreciate help at the earliest to control this!

-Ram.

<i>PS:

I dont think its a config issue, as there is no print control set for o/p type WA03 in VV12 transaction.</i>

2 REPLIES 2

Former Member
0 Kudos

Hi Ram,

the original WASCHEIN has two pages: first and next. Did you try to copy your first-page to one named 'next' and set this next-page as follow-up of first (just as standard SAP)?

Cheers,

Stefan.

Former Member
0 Kudos

Hii

In the SAP Script use

IF &NEXTPAGE& = 0

Measn it is last page

&SAPSCRIPT-FORMPAGES(2)& will print the total number of pages

&PAGE& will giv eyou the current Page

like if &PAGE& < 2 means you are on first page

in the next page fill the column as first

Regards

Naresh