Creating and Processing Tax Invoices (Customers) 
In the R/3 System, programs have been developed to create and print tax invoices on official pre-printed forms.
The print programs create tax invoices for the invoices posted on the customer account. The user can create either a tax invoice for a single invoice or create one tax invoice for all invoices posted to the customer account in one month. The data for the print out of tax invoices is read from the accounting document. If the invoice is posted in the SD module, the system reads the information from the corresponding SD document.
Example of the process flow:
· SD invoice # 1001
100 units of material fmat-01 and
200 units of material rmat-03 are sold to customer cust-1
· SD invoice # 1002
200 units of material fmat-01 are sold to customer cust-1
· FI invoice # 1000001
DR: customer 2200 CR revenue 2000
VAT 200
· FI invoice # 1000002
DR: customer 1100 CR revenue 1000
VAT 100
The tax invoice created has two line items. The first line item shows 300 units of material fmat-01 sold and the second line item shows 200 units of material rmat-03.
The tax invoices created receive a unique number and are stored internally for later usage. The numbering for the tax invoices is the standard numbering for documents. The tax invoice in the technical sense is a normal clearing document. The tax invoice should be customized by a separate document type and number range to distinguish them from normal FI-documents (see chapter about Customizing of Tax Invoices). The report RFIDKRTC which creates the tax invoice in the system clears all selected items against a new open item. Internally the transaction FB05 (transfer posting with clearing) is called to create a new document. This newly created document is the tax invoice for the R/3 System. If we look at the example from above it means that the two open A/Rs are cleared against a new one. This new open item can be cleared by the following payment from the customers. With the payment the whole process is closed.
The tax invoice summary report RFUMSV45, which has to be filed to the tax authorities at the end of a three month period, selects all the data from the issued tax invoices from this table.
If there are more than four line items to print out in the tax invoice, the program only prints out a sum in the first line and summarizes all items in a separate list which is not liable to a legal form.
If an invoice is posted directly into the FI module because the SD module is not used in your company or because the invoice does not proceed from a SD transaction, then the data on quantity and material description cannot be shown on the tax invoice.
Of course, it is possible to create a tax invoice for each FI-invoice.
After the successful creation of the tax invoice in the system the print report for tax invoices is started automatically. But this print report can be started manually as well if the first print-out has been destroyed or the or if the customer requires a second copy. If the creation of the tax invoice cannot be done for some reason the program shows a message window. After clicking to the button for the error protocol you see what kind of error happened during the clearing process.
The report RFIDKRTC creates and calls the print report of the tax invoice in the system after creating the tax invoice. Once executed after filling the selection criteria the report RFIDKRTC shows a list of possible documents (either SD or FI-documents) of which the tax invoice can consist of. All documents, which match the selection criteria, are displayed. Here, you can select the invoices you want to include in the tax invoice. This list is made by the ABAP List Viewer, a new tool for list design. For more information see Cross Applications -> ABAP List Viewer. When you have made the choice of either SD or FI-invoices (of course, you can select just one item as well as several items), click on save button to create the tax invoices. Please refer to the documentation of the report for the details of the functionality.
If a particular tax invoice can be found in the system you can assume that the tax invoice has been created and printed once. The link between the tax invoice which is just a 'normal' FI-document (should be customized by a separate document type and number range) and the FI- or SD-invoices are made by references on the document. Every FI-document has a reference filed which is filled when being transferred from SD. And also a reference field is filled if the document is cleared. By those fields the references are made to the information like material description and quantity.

One-time customer: For one-time customers the VAT-no is not filled when posting from SD to FI. Therefore maintain first the field 'tax code2' with the VAT-no before executing the tax invoice report (RFIDKRTC) in case that you want to process one-time customers.
Tax Invoice Printout
The report RFIDKRTP prints the created tax invoice. Usually this report is called automatically after creation of the tax invoice when executing RFIDKRTC. But if copies of the tax invoices are destroyed or the customer needs another copy the report RFIDKRTP can handle the single print-out. Fill in the selection criteria upon your needs in the selection screen.
The SAPscript layout set is FTIV_KR_DEB. For adjustment of the print-out it might be necessary that the form is set according to your preprinted forms.