Skip to Content
avatar image
Former Member

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

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:


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. Date Time title or name of spool request 10010 07.11.2014 12:36 Invoice   20018810   2000 10011 07.11.2014 12:36 Invoice   20018810   2000 10012 07.11.2014 12:36 Invoice   20018810   2000

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

many thanks in advance

// Vicky

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 20, 2015 at 07:45 PM


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


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 07, 2014 at 01:41 PM

    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.


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

    Add comment
    10|10000 characters needed characters exceeded