cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT FOR PAGE BREAK.

Former Member
0 Kudos

hi all ,

i have a problem in my voucher printing form, actually when i give single voucher in my selection criteria it displays the content of that voucher number but when i give the range say 100 to 110 it still gives the line item corresponding to the voucher range but i want it to display seperately in each page ,say in my first page starts with voucher no. 100 and the contents of 100 and similarly for 101 in next page it shpuld break the page when ever a new voucher number is found and it should display the content of it in that page. can anybody help me out on this.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196280
Active Contributor

this can be done by modifying your print program, Try to use control break-statements

EX:

LOOP AT <itab>

At new <voucher number >

CALL FUNCTION 'CONTROL_FORM'

EXPORTING'

COMMAND = 'NEW-PAGE' .

ENDIF.

CALL FUNCTION 'WRITE_FORM'

Regards,

Sairam

former_member254311
Active Participant
0 Kudos

hi

I am also facing the same problem . is there any proper solution for this . i had implemented control_form but some window contains is displayed as ***

with regards

Anand kumar

Edited by: anand kumar on Dec 23, 2009 5:44 AM

Former Member
0 Kudos

Hi,

You are printing right...Suppose if u r printing line items..Give this commasnd in between the line items

PROTECT.

ENDPROTECT