cancel
Showing results for 
Search instead for 
Did you mean: 

call function maximum print.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks your help.

with your answer , my question is cleared.

thanks.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Yuo meant to say that you are trying to print

400 labels. But after 300 labels it is not printing.

Is this is your problem?

If it is so then I think it is a printer setting problem rather than a Form problem.

Former Member
0 Kudos

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...