Application Development and Automation 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: 
Read only

SAPSCRIPT, HOW PRINT MORE COPIES (Example: Customer..., Vendor... ecc)

Former Member
0 Likes
709

Good morning,

i have a problem, i have built a complete sapscript, but i have to print 2 copies, one for the vendor, one for the client changing one label into the sapscript ("copy for vendor", "copy for client").

In other words, when the client print one copy of the sapscript, i have to duplicate the copies changing only the label that specified who is the recipient of the copy... it is possible do that??

Thanks!!

Marco

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
680

Thanks, probably the solution is otside open form and close form..

the sapscript is ZRVORDER01 copied from the standard.. probably to do more copies i have to change the standard program RVADOR01 coping in Z and looping outside openform and close form.

Only this can be the solution?

Good morning,

i have a problem, i have built a complete sapscript, but i have to print 2 copies, one for the vendor, one for the client changing one label into the sapscript ("copy for vendor", "copy for client").

In other words, when the client print one copy of the sapscript, i have to duplicate the copies changing only the label that specified who is the recipient of the copy... it is possible do that??

Thanks!!

Marco

4 REPLIES 4
Read only

Former Member
0 Likes
680

Hi,

What kind of document it is???? Are you sure about the length of the contents....

If you think that both of the documents will have Single Page or Two pages only then You can design both of the pages in the same Sapscipt only with two pages or Four pages.....

Read only

Former Member
0 Likes
680

Hi,

Check with this

loop 2 times.

if sy-index =1.

heading = original

elseif sy-index =2

heading =copy

endif.

open_form

write_form

close_form

endloop.

Read only

Former Member
0 Likes
681

Thanks, probably the solution is otside open form and close form..

the sapscript is ZRVORDER01 copied from the standard.. probably to do more copies i have to change the standard program RVADOR01 coping in Z and looping outside openform and close form.

Only this can be the solution?

Read only

0 Likes
680

in OPEN_FORM there is a parameter OPTIONS-no of copies. pass the no of copies to be printed here. and no need to loop.