cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicated spool doc number of batch created Invoices (spool/ email subject)

Former Member
0 Kudos
814

Hi gurus

We have a batch job which generates invoices using program RSNAST00 (VF04), then we use the program SD70AV3A (VV33) to either print or email the invoice out.

In the output condition screen (VV33) for invoices (RD00) we have a standard condition for all invoices from XXXX Sales org. In the communication screen in this condition the "Text for cover page" (print parameters) = TDCOVTITLE is set:

"Invoice &XVBRK-VBELN& &XVBRK-VKORG&

This is so that in the spool list (SP01) the column "Title or name of spool request" AND the email subject title (if sent out by email) will show the relevant information for this document.

Unfortunately when the batch job runs and generates multiple invoices to the same Bill To party (BP)  both the name of the spool request (in SP01) AND the subject title of the emails for all of the invoices are identical.

For example

- the spool numbers are different (separate spool for each individual invoice)

- the date is identical

- the time is identical

- the title/ spool request name is identical

- BUT these are three different invoices tot he same bill to (reference three separate sales orders)

Spool No.DateTimetitle or name of spool request
1001007.11.201412:36Invoice   20018810   2000
1001107.11.201412:36Invoice   20018810   2000
1001207.11.201412:36Invoice   20018810   2000

Does anyone know how to fix what appears to be an SAP bug?

many thanks in advance

// Vicky

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Vicky,

I am having the same problem.  Did you ever find a solution or an SAP note?

Thanks.

Former Member
0 Kudos

Hi Tami,

yes I found a solution myself in the end. See OSS Note 718017 - just a slight modification in the routine.

Another OSS Note which also might be helpful is 537832.

// Vicky

Former Member
0 Kudos

Thank you very much for the help!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vicky,

This might be buffering issue, SAP is not able to clear the variables XVBRK-VBELN andXVBRK-VKORG between processing two invoices, hence it is taking the description from the first invoice to all.

As the programs are standard, you can search for OSS notes.

Or

you can debug the driver program with execution of VF31 to see if you have a chance to clear these variables there.