2019 Mar 06 7:09 AM
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?
2019 Mar 07 3:13 AM
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.
2019 Mar 06 8:23 AM
What do you mean with "it did not stop"?
Are you sure your smartform's data was only 1 page?
2019 Mar 06 8:43 AM
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).
2019 Mar 06 9:07 AM
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.
2019 Mar 06 9:10 AM
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.
2019 Mar 06 9:24 AM
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.
2019 Mar 06 9:39 AM
Put a break point before calling the smartform and check how many records your IT_MARA contains....
2019 Mar 06 12:52 PM
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.
2019 Mar 07 3:13 AM
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.
2019 Mar 19 9:06 AM
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
2019 Mar 19 10:31 AM
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.