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: 

My sapscript form gets printed twice in PRD.

aris_hidalgo
Contributor
0 Kudos

Hello experts,

We are currently facing a problem here. We just transported our sapscript tp PRD yesterday and today the users complained that the printout is always printed twice. But on our testing in DEV and QAS that isn't the case. Can you please give me possible causes of this problems and suggestions. Help would be greatlt appreciated.

Again, thanks a lot guys and have a nice day!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check the output condition record which is generating the output, it might have been set to issue 2 outputs (number of copies). Output condition records are not transportable and can be maintained directly in production, that gives more reason to belive that things might work different across landscape.

If you cannot figure out where to look for and exhaused all your options, debug the print program and check what is getting pass to FM OPEN_FORM call in "Number of copies".

Thanks,

Shashi Reddy

12 REPLIES 12

Former Member
0 Kudos

Check the output condition record which is generating the output, it might have been set to issue 2 outputs (number of copies). Output condition records are not transportable and can be maintained directly in production, that gives more reason to belive that things might work different across landscape.

If you cannot figure out where to look for and exhaused all your options, debug the print program and check what is getting pass to FM OPEN_FORM call in "Number of copies".

Thanks,

Shashi Reddy

0 Kudos

Hi Shashi,

Thanks for the helpful reply. But where do we check the output condition record? Also, what do you mean by

getting pass to FM OPEN_FORM call in "Number of copies"? Again, thank you and take care!

0 Kudos

Which Output type are you processing, and what is the transaction?

0 Kudos

Hi Shashi,

We are using transaction MB90 and the output type is WA03. Thanks again!

0 Kudos

Check what is the value in NAST-ANZAL for you output which printed 2 outputs. If that is 2 then your output condition is set to issue mutiple outputs.

0 Kudos

Hi again,

Sorry for many questions but we are currently on the desperate mode here. Where do we check NAST-ANZAL? Again, thanks for your helpful replies!

0 Kudos

NAST is a table which has the output record which is used to generate output.

Use Transaction NACR to look at the condition records for WA03. Go to "Communications" tab on the top of codition records screen to check for number of outputs.

Thanks,

Shashi Reddy

0 Kudos

Hi Shashi,

It says that condition WA03 is not defined.

0 Kudos

WA03 is output type, It is part of Standard SAP.

0 Kudos

Hi guys,

I need more suggestions as to why our sapscript form gets printed twice.

Again, thank you and have a nice day!

0 Kudos

Hi guys,

Run the script in debug mode and check for the printing conditions for the script, may be there 2 times calling perform and check for NAST-ANZAL field before geting output to the printer the value should be 1.

regards

Praveen k

Former Member
0 Kudos

I have a similiar issue.

We have SAP Quality Inspection Instructions and we have a custom Inspection report that both get printed to a printer we'll call X. I debugged these entire programs and I see that the copies = 1. But each time the user goes to the printer there are 2 there. I check the spool and it says 1 page and 1 copy. Any ideas where it would be getting the idea to do another copy from outside of the SAP spooler? Also on 4.0B.

Thanks,

Larry