on 07-02-2008 5:21 AM
In SAPScript I have to print one customer name on one page. I have got more than 50 customer names.
Now my problem is when I am running my driver program it prints all the data on one page only.
For FIRST page next page is assigned NEXT & for NEXT page next page is assigned NEXT.
Can anyone help me to overcome this problem.
Hi,
In yur Driver Program.....
Call function 'OPEN_FORM'.
Loop at itab. " Customer Details.
CALL FUNCTION 'START_FORM'
EXPORTING
language = sy-langu
startpage = 'PAGE1'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MAIN'
function = 'SET'
window = 'INVOICE'
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
OTHERS = 9.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'END_FORM'.
Endloop.
CALL FUNCTION 'CLOSE_FORM'.
U do like that.... Ur probelm will solve.....
Reward if useful.......
Thanks,
Durai.V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u can give condition in the driver program....
if page is 1.
read 1 customer name...........and
goes on.............
else
u can create sepreate small window with text element...
and go ahead
Reward IF.............
Regards
Anbu
Edited by: Anbu B on Jul 2, 2008 6:41 AM
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.