Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

print prog RVADOR01

Former Member
0 Kudos

i'm using this form to print more then 1 copy with

new data <b>komk-exp_busobj komk-inco2,</b>

if i print 3 layouts i get the first and the third two times why?

form PRINT_ADDITIONAL_COPIES.

loop at itab_h. "i_matnrs where check = 'X'.

z_count = z_count + 1.

komk-exp_busobj = itab_h-sernr.

komk-inco2 = itab_h-maktx.

perform restart_form using gvf_fonam nast-spras.

if z_count > 1.

perform print_copies.

endif.

endloop.

endform. " PRINT_ADDITIONAL_COPIES

form print_copies.

perform item_print.

endform. " PRINT_COPIES

1 REPLY 1

former_member186741
Active Contributor
0 Kudos

where else is z_count used? It could be being reset in restart_form or print_copies... also what is it's starting value?