cancel
Showing results for 
Search instead for 
Did you mean: 

How to Identify the SD invoice is printed or not

former_member203806
Participant
0 Kudos

Hi All

Using VF02 we are printing the SD invoices.

Issuse :   Using VF02 we can print any number of invoice copies.

               i need to put Control 'This is dublicate copy' when the invoice print in more than one time...

How can i trace is this invoice is already printed or not........

Rgds

PP

Accepted Solutions (1)

Accepted Solutions (1)

former_member183607
Contributor
0 Kudos

Hi,

     use T-code SE16 or SE16N .

     table NAST is having details regarding invoice printing, You can pass your billing doc no to the field

     OBJKY, KSCHL is output type, nacha for Sucessfully printed indicator, U can also get Date, Time      and      User name from This table .

Regards

Soumendra

Answers (2)

Answers (2)

former_member259807
Active Participant

Check table NAST on object key <invoice number> (and check message type if applicable), and status 1 (VSTAT).

FredericGirod
Active Contributor
0 Kudos

Hi,

that's look like a French requierment

have a look of the standard program, there is this code:  RVADIN01

*---------------------------------------------------------------------*
*       FORM CHECK_REPEAT
*
*---------------------------------------------------------------------*
*       A text is printed, if it is a repeat print for the document.  *
*---------------------------------------------------------------------*

form check_repeat.

   clear repeat.
   clear anzal.
   select * into *nast from nast where kappl = nast-kappl
                                 and   objky = nast-objky
                                 and   kschl = nast-kschl
                                 and   spras = nast-spras
                                 and   parnr = nast-parnr
                                 and   parvw = nast-parvw
                                 and   nacha between '1' and '4'.
     if *nast-vstat = '1'.
       anzal = anzal + *nast-anzal.
       repeat = 'X'.
     endif.
   endselect.

endform.                    "CHECK_REPEAT