Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

print prog RVADOR01

i add this to print more then 1 copy.

i get always the last page 2 times why?

<b>in the prog</b>check retcode = 0.

perform end_print.

  • 090604

perform print_additional_copies.

check retcode = 0.

perform form_close.

check retcode = 0.

<b>in form</b>---form print_additional_copies.

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

z_count = z_count + 1.

if z_count = 1.

shift itab_h-sernr left deleting leading '0'.

komk-exp_busobj = itab_h-sernr.

komk-inco2 = itab_h-maktx.

*endloop.

*endif.

*if z_count > 1.

*clear itab_h.

  • loop at itab_h.

else.

shift itab_h-sernr left deleting leading '0'.

komk-exp_busobj = itab_h-sernr.

komk-inco2 = itab_h-maktx.

clear itab_h.

delete itab_h.

perform restart_form using gvf_fonam nast-spras.

perform print_copies.

  • delete itab_h.

endif.

endloop.

Tags:
Not what you were looking for? View more on this topic or Ask a question