cancel
Showing results for 
Search instead for 
Did you mean: 

Printing invoices only once

Former Member
0 Kudos

Dear All,

I want to make the system allow printing the invoices ONLY one time, i tried to deselect the "Multiple Issuing" in output type but still not working!!

Thanks

Mostafa Ali

Accepted Solutions (0)

Answers (3)

Answers (3)

bsivasankarreddy_reddy
Active Contributor
0 Kudos

hi

please check below write routine , and assign this. at out put type level,  at processing routine level , you add this logic , then you will check

FORM ti_invoice_open_form .

  zoption-tddest    = 'INVOICE'.             "Output device (printer)

  zoption-tdimmed   = 'X'.                   "Print immediately

  zoption-tddelete  = 'X'.                   "Delete after printing

  zoption-tdcopies  =   1  .                 "p_no . " No of copies

Former Member
0 Kudos

Hai,

Your can create one ztable and enter the user name and number of times

that user can take the number of print outs ( In your case its one) and write down the

abap code in the driver programe of your invoice script to compare this number of

Print out with the number of records created in NAST with respect to Billing number by using the group by clause of the ABAP.

you take the help of your abaper.

regards

Khajahussain

Shiva_Ram
Active Contributor
0 Kudos

Develop a routine in VOFM and assign against the output type in t.code NACZ in requirement column.The routine logic can check the table NAST (with object key as billing document number and processing status as not processed). If the processing status is 1 - then don't allow.

Regards,