on 07-28-2008 12:52 AM
Hi all.
I have print proble. if sombody know that , please let me know.
if the number of itab is '400', when 300 times print is not printing. logic like below.
loop at itab.
call function 'OPEN_FORM'
exporting
device = 'PRINTER'
dialog = ' '
form = 'Z_CPS_OUTBOX'
options = option
exceptions
others = 9.
if sy-subrc <> 0.
exit.
endif.
call function 'WRITE_FORM'
exporting
element = l_element
function = 'SET'
type = 'BODY'
window = 'MAIN'
exceptions
others = 8.
call function 'WRITE_FORM'
exporting
element = l_element
function = 'SET'
type = 'BODY'
window = 'BARCODE'
exceptions
others = 8.
call function 'CLOSE_FORM'
exceptions
others = 4.
if sy-subrc <> 0.
exit.
endif.
endloop.
thanks your help.
with your answer , my question is cleared.
thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks your answer.
but the logic is just one key data, I want each value ,
example , if loop is 400 number, the label is printouted
400 ea. but in my logic, if it reachs 300 times , not anymore print out the label.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can u jot down ur exact requirement..
why r u opening and closing the form inside the loop?
u could have done this:
openform...
loop at itab.
writeform...
endloop.
closeform...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.