on 07-17-2009 4:02 PM
Hi,
I have created one ticket layout using sap script. I need to print it only once. I created one main window and printing all the fixed text in that. But it is calling that ticket two times. It is printing ticket twice and in preview also it is displaying ticket twice.
Please help me out. How I can resolve this even in print program also I gave one delete command to delete first ticket but still it is not deleteing..
IF print_co-lstid EQ 'LG03'.
IF lv_count IS INITIAL.
*--2.Write to Form
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = space
function = 'DELETE'
window = 'MAIN'.
*--2.Write to Form
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = space
function = 'SET'
window = 'MAIN'.
ENDIF.
ENDIF.
Thanks in advance.
Regards,
Garima
Hi,
maybe the problem is a setting in your customizing.
I think LG03 has to be customizd with trx OPK8. Check there if there are possibilites of setting number of copies.
hope this helps.
Gr., Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am facing the same problem i.e. getting two duplicate pages in print preview (actually should be just one). can anyone help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did u mention form name in OPEN_FORM Function module?
if yes put break-points in write_form.
regards,
pravin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Check the program if u r passing any parameter to print two in the FM : open_form and also the main windows Height adjust it accordingly . Is the print preview(2 prints) showing on same single page ??
regards,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check whether your are calling the FMs within any loop.
Debug your driver program.
Regards,
Ankur Parab
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.