cancel
Showing results for 
Search instead for 
Did you mean: 

Credit note and invoices print error in SAP standard VF31

Former Member
0 Kudos

Hello,

Our accountants have detected an error that happens when printing a credit note together with one or many invoices.

-Credit note and invoices: These invoices were printed using vf31 and entering the invoice numbers. By chance the credit note number was entered first: 4080009386, 4094251466, 4094251467, 4094251468, 4094251469. The credit note 4080009386 printout is correct but the text "Abono Factura 4094251437" appears also in the 4 invoices printed at the same time. This is wrong, this text only applies to the credit note and not to the invoices.

-Invoices only : These invoices were printed using vf31 right afterwards, but this time the credit note was not included (i.e. 4094251466, 4094251467, 4094251468, 4094251469). In this case the wrong text does not appear.

This problem is not critical but it would be best to fix it to make sure no wrong invoices are sent to our customers.

Is there a SAP note to correct this problem ?

Regards,

Adrian Irimes

Accepted Solutions (1)

Accepted Solutions (1)

former_member1115366
Active Participant
0 Kudos

Do your credit note and invoices use the same output type? If so I would look for a problem with the print program assigned to the output type. Get the program name from t-code NACE and use it as the keyword in a SAP Note search.

If it is a custom program, have an ABAPer step through the code to see where the problem is. Likely some structure that needs to be cleared after each loop pass.

Regards,

Ken

Former Member
0 Kudos

Hello Ken,

Thx for answering.

The problem lies in the SAP standard program SD70AV3A. I have checked the SAP Notes, but din't find any refering to this problem.

The user are just entering the document numbers to be printed, without any other change. It seems to be a bug when different types are used in the same print run.

Regards,

Adrian Irimes

Former Member
0 Kudos

to me this sounds like a missing CLEAR statement in driver program.

former_member1115366
Active Participant
0 Kudos

Adrian,

SD70AV3A is the program called with t-code VF31. It does some authorization checks and ultimately invokes the u201Cprint programu201D or u201Cdriver programu201D for each document based on the output type(s) available in the billing documents in your selection.

Your issue is not with VF31, but with the program that calls the sapscript layout or smartform and populates it with data. This program, along with the layout, is assigned to the V3 (billing) output type in customization.

You can identify the driver program for an output type in t-code NACE. Select the V3 application and press the command button labeled Output types. One at a time, select the output type that gets printed in your scenario, and look at the processing routines folder. SmartForms, Sapscripts, and driver (processing) programs are displayed.

Use the processing program name in a SAP Notes search. Or take to the ABAPer.

Regards,

Ken

Former Member
0 Kudos

Hello Ken,

Thx for following up. We will investigate further the driver program for the prints, to see if custom updates has beed done for it.

Regards,

Adrian Irimes

Answers (0)