on 09-12-2007 8:13 AM
on every 5 lines of records i have go for a new page so what is procedure to do this .if possible send me with coding .
Hi John..
this is the way..
IN THE PRINT PROGRAM...
DATA : V_MOD TYPE I.
loop at Itab.
V_MOD = SY-TABIX / 5.
IF V_MOD = 0.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING'
COMMAND = 'NEW-PAGE' .
ENDIF.
CALL FUNCTION 'WRITE_FORM'
ENDLOOP.
<b>reward if Helpful.</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
USE SAPSCRIPT-COUNTER_0 and increment it like this use + for incrementing the counter...
EX: &SAPSCRIPT-COUNTER_0(+)&
IF &SAPSCRIPT-COUNTER_0& EQ 5.
NEW-PAGE "PAGE BREAK
&SAPSCRIPT-COUNTER_0(-5)& "Initialising back to Zero
ENDIF.
Close the thread if your question is answered.
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.