on 01-22-2007 3:10 PM
Hi I created 2 pages in script for page1 next page is page2 , how i can print 20 lines in one page and remaining in next page plz send me the code for that and is windows same for 2 pages?...
you can try this without any coding. Reduce the hight of the main window in the first page to fit only 20 lines. Then automatically it will jump to the next page. no coding is required. Only some formatting on your first page.
- Guru
Reward points for helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
Try below code...
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = form.
CALL FUNCTION 'START_FORM'
EXPORTING
language = sy-langu
startpage = page1
LOOP AT itab.
count = count + 1.
item = count mod 20.
IF item EQ '1' AND count NE '1'.
CALL FUNCTION 'END_FORM'.
CALL FUNCTION 'START_FORM'
EXPORTING
language = sy-langu
startpage = <b>page2</b>
ENDIF.
"write_form statement ....
.....
.....
ENDLOOP.
Message was edited by:
Hikaruno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
write as
loop at itab.
if sy-tabix > 20.
trigger next page.
endif.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.