‎2011 Jul 08 12:30 AM
Hi Gurus,
Our system is printing one of the output twice. Analyzed and found that form is executed only once but we see two files in SP01 screen.
Also checked NACE conditions of the output and found no issues. The output printing twice is a zebra label. All other outputs are printing fine.
What else need to be checked to fix this issue? This is causing so much wastage of print media. Any direction in solving this issue is a big help.
Best regards,
Pavan
‎2011 Jul 08 3:34 AM
Can u check in debug mode the value in
SAPscripts, OPTIONS parameter (structure ITCPO) of OPEN_FORM function module, field is TDCOPIES
Smart Forms, OUTPUT_OPTIONS parameter (structure SSFCOMPOP) of SSF_OPEN function module, field is TDCOPIES
also i believe there is some settings in SPAD under output attributes tab. please check
‎2011 Jul 08 5:22 AM
You mentioned you checked NACE, I would suggest you to still go and check then "Communication" (Communication Method F2) for that particular output type and make sure "Number of Messages" is set to 1. For example if it is billing document check VV12.
‎2011 Jul 08 4:54 PM
Hi SAP2011 and Jeevan Sagar,
Thank you so much for your time and replies. I checked both of your suggestions and found no issues. The smart form output control parameter has copies set to 1 before executing the form. NACE communication screen also shows number of messages as 1.
Can you please suggest any other options to be checked?
Best regards,
Pavan
‎2011 Jul 08 10:07 PM
Hi Pavan,
are you sure this is not caused by the driver? Is it custom? Did you try to debug it?
Sandra
‎2011 Jul 08 10:19 PM
Hi Pavan1,
you did not mention that you checked the call of function OPEN_FORM and PROCESS_FORM. If this is dome in background task, you can easily create an ABAP check group using transaction SAAB and put some LOG-POINT statements somewhere in the ABAP code.
Besides that you may analyze the output sent to ZEBRA printer - I remember you can insert some control character sequence triggering the number of output copies.
Regards,
Clemens
‎2011 Jul 08 10:21 PM
Hi Sandra,
Thank you so much for your time, I debugged the code and found that smart form is executed only once with copies = 1 but two spool files are created. This is happening with one output type. The output type is custom and working fine all the time. From past three days only we are have this issue. We print other labels/output to the printer and they are printing fine.
Once the smart form is executed what controls the spool file creation?
Best regards,
Pavan
‎2011 Jul 08 11:10 PM
Spool file creation is done inside the generated function module of the smart form. It writes one record in TST01 table which contains the spool request. Maybe you can do an SQL trace. For info, at the time of printing, it will create one output request (in TST02 table), by the way make sure if you are counting spool requests or output requests (you might have several output requests if something (?) reprints it, in that case, that would not be an issue with spool creation).
By the way, you should investigate what happened 3 days ago, was there a modification of the smart form, or anything else?
Did you check SAP notes?
BR
Sandra
‎2011 Jul 11 6:57 PM
Hi Sandra,
Thank you so much, with your input, I analyzed the issue further and found that one of the object in the process was changed by our global tem member caused this issue. We were able to correct the issue.
Thanks again for your help,
Best regards,
Pavan