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: 

Smartforms: Printing multiple copies

tan_michael
Active Participant
0 Kudos

Hi Experts,

I'm following a guide on creating a printing program through smartforms.

I created my first smartforms exactly what is in the guide and upon testing on printing, It printed what exactly in my smartforms however it did not stop printing the firstpage of my smartform so I stopped it manually on the printer.

I have checked if the problem lies on general attributes -> next page and it set to firstpage(what is on the guide)

I have checked on the net if they encountered the same issue but I can't find one.

I have checked the number of copies to be printed and it is only set to 1 copy

I tried to find if missed something on the guide but it looks the same.

In line with this, I would like to inquire what did I missed?

1 ACCEPTED SOLUTION

tan_michael
Active Participant

Hi Sandra,

Good Day!

Thanks for your comments, it seems that the loop program in the guide causing the issue, after removing it the page remains as 1 of 1.

10 REPLIES 10

SimoneMilesi
Active Contributor

What do you mean with "it did not stop"?

Are you sure your smartform's data was only 1 page?

Sandra_Rossi
Active Contributor
0 Kudos

Remark about what you said: the guide doesn't say that in the general attributes of the page, the next page is to be itself (but it should be).

tan_michael
Active Participant
0 Kudos

Good Day!

Hi Simone what I meant was after clicking the print button the program printed my firstpage multiple times and I'm sure it only have 1 page.

Hi Sandra, yes thank you for your remark.

As for my further I noticed that number of page is increasing every printed page, so I tried to add options TDCOPIES and set it to 0 and 1 but still the same.

Sandra_Rossi
Active Contributor
0 Kudos

Transaction code SP01 shows the spool requests, and for each spool request you can see the number of pages and the number of copies.

PS: in the print dialog, uncheck "print immediately" or don't "delete" the spool when printed, otherwise the spool request will be deleted after printing.

tan_michael
Active Participant
0 Kudos

Hi Sandra, thanks for your comments. I checked SP01 and the pages is 45. I'm confused where the value 45 comes from. Is it in smartforms or print options? where can I set it manually.

SimoneMilesi
Active Contributor

Put a break point before calling the smartform and check how many records your IT_MARA contains....

Sandra_Rossi
Active Contributor

Or put a break point in the smart form at the place where IT_BODY is filled... because the loop concerns IT_BODY. Note: it's filled from MARC and MARD inside the smart form, by the way it's a bad practice.

tan_michael
Active Participant

Hi Sandra,

Good Day!

Thanks for your comments, it seems that the loop program in the guide causing the issue, after removing it the page remains as 1 of 1.

tan_michael
Active Participant
0 Kudos

Hi sandra.rossi , I re-opened this because I think that your answer is the correct answer. How can we turn your comment to answer so that I can accept it as answer

Sandra_Rossi
Active Contributor

Tan Michael thank you, but you can also just post your own answer. My comments were just tips to help you, but I couldn't be sure what was the reason.