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
71

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.

2 REPLIES 2

Former Member
0 Kudos
36

Hai,

do you using any STOP statement in form---endform.

if yes it will comeout the event and execute the remaing code.

please check it.

Thanks & regards

Sreenivasulu P

0 Kudos
36

what you mean?

break-point?