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

Print multiple smartform copies

bzakaria
Participant
0 Likes
7,189

Hello,

I have a smartform that has one page, and i want to print multiple copies.

The problem is that the program prints me only one copy even if I fill in multiple copies.

Here is my smartform:

And here is the screen, of which I inform the number of copies.

Thanks.

Hello,

I have a smartform that has one page, and i want to print multiple copies.

The problem is that the program prints me only one copy even if I fill in multiple copies.

Here is my smartform:

And here is the screen, of which I inform the number of copies.

Thanks.

15 REPLIES 15
Read only

FredericGirod
Active Contributor
0 Likes
6,907

The second screenshot, is a M$ Windows pop-up.

Could you try with a printer connected to the SAP Spool ?

Read only

Jigang_Zhang
Active Contributor
0 Likes
6,907

@bzakaria

not like word print out, I guess copies setting out of SAP is not working here. You can set this field nast-anzal at the driver program and see if you can get the correct copies.

You even can control different text for different copies by check field sfsy-copycount.

Read only

0 Likes
6,907

jimmy.zhang3 But I print the smartform via a program without going through NACE.

Read only

bzakaria
Participant
0 Likes
6,907

frdric.girod , We want to print multiples on local printers (connected to the user's pc).

Read only

RaymondGiuseppi
Active Contributor
6,907

You are not really printing the spool, but you are creating a PDF file. Does the 'PDFCreator' really handle the number of copies?

(No sure handling the parameter "number of copies" in your program (tdcopies in output_options) would be useful with this driver)

NB: Look at pdfforge forums

Read only

0 Likes
6,907

raymond.giuseppi I have the same problem with the printers connected locally in the users' pc.

Read only

0 Likes
6,907

Did you try to set the number of copies in SAP?

  • how did you get the popup for print options (did you call GET_PRINT_PARAMETERS, did you map its result to Smart Forms FM)
Read only

0 Likes
6,907

How are this printers defined in SAP (transaction SPAD: device type, access method. Also use Extended Admin. and check Print Option tab)

Read only

0 Likes
6,907

raymond.giuseppi , It is a local printer (not declared on SAP). The prints go through LOCL.

Read only

Sandra_Rossi
Active Contributor
0 Likes
6,907

Raymond and Frederic told you that you used the number of copies from Windows dialog. If you have an issue with it (like it prints only "one copy" i.e. the original document), it's not a SAP problem at all.

Why did you show this screenshot of the Smart Form, containing the page counter? Is that related to the question?

Read only

Jigang_Zhang
Active Contributor
6,907
bzakaria

when to call FM of your smart form, have you try to set values of OUTPUT_OPTIONS-TDCOPIES ps: OUTPUT_OPTIONS refer to type SSFCOMPOP

Read only

0 Likes
6,906

jimmy.zhang3 & raymond.giuseppi , I changed the value of OUTPUT_OPTIONS-TDCOPIES. I put '3'. after the execution of the program it automatically displays 3 to me, but when I click 'OK' only one copy which prints.

Is there a change i need to make in the smartform to support multiple printing?

Read only

0 Likes
6,906

bzakaria I think that Raymond put you on the right track: "Does the 'PDFCreator' really handle the number of copies?" What is the result of your investigation? It's not related to Smart Forms (if you do it with a classical printer, even local, it works perfectly).

Read only

0 Likes
6,906

Hi jimmy.zhang3 & sandra.rossi & raymond.giuseppi ,

I was able to detect the origin of the problem (using your answers).

The problem comes from the size of the papers used in printing.

When I use A4 papers I can print multiple copies without any problem, but when I use A5 papers I can only print one copy (after indicating one copy) and when I indicate 2 or 3 copies in the print screen prints an empty page.

When I posted my question and during our discussions I used A5 papers, that's why I had this problem.

Now I want to know so that I won't have this problem with A5 papers what should I do.

For information, I can print multiple copies of a document on windows in A5 papers without any problem, on the other hand via SAP it prints only one copy and when I indicate more than one copy it is prints an empty page.

Thanks.

Read only

Sandra_Rossi
Active Contributor
0 Likes
6,906

Are all your smart form pages defined as A5? (which means that you can choose A5 or larger page format)

Do you have copy windows in your Smart Form?

Or any specific processing related to the copies?

  • spool-free attributes S_COPY*
  • variables SFSY-COPY*

What number of copies is indicated in the spool?

Does the smart form trace say anything?