Ansicht
Dokumentation

RNASRE00 - IS-H: Create Collective Invoice

RNASRE00 - IS-H: Create Collective Invoice

BAL Application Log Documentation   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Description

You can use this report to create collective invoices.

A collective invoice is created by assigning the same collective invoice number to all the invoices that belong to it. The collective invoice number is copied to the SD and FI documents. In this way, an invoice can be assigned exclusively to one collective invoice.
After a collective invoice has been created successfully, the corresponding invoice selection is normally deleted.

A collective invoice with its unique collective invoice number offers the following advantages:

  • Reprint of a collective invoice
It is easy to reprint a collective invoice that has already been printed, since all the invoices belonging to a collective invoice can be identified by their collective invoice number.
  • Incoming payments
When an incoming payment is received for a collective invoice, you can determine all the open items for this collective invoice in Financial Accounting using the collective invoice number. This simplifies incoming payments.

Note

If you reverse an invoice in IS-H, it is not cleared automatically in Financial Accounting. Before you enter the incoming payment in Financial Accounting, it is essential that you clear the reversed invoices, since when a single invoice is reversed in the IS-H system, the collective invoice number is not copied to the FI reversal document.

If you post the incoming payment in Financial Accounting using the collective invoice number, none of the invoices in the collective invoice can be partially reversed. Invoices containing errors must always be fully reversed.

Program Execution

Include Invoices Without FI Posting
Select this indicator if you want the system to include invoices that have not been transferred to FI when creating the collective invoice.
If you do not select this field, the system only takes account of invoices that have been transferred to FI.

Include Reversal Documents
Select this indicator if you also want to include reversal documents when creating the collective invoice.
If you do not select this field, the system only takes invoices into account.

Collective Invoice Category
The system can include customer-specific checks in invoice selection in BAdI ISH_COLLECTIVE_INVOICE in the enhancement spot ES_COLLECTIVE_INVOICE using the collective invoice category. The collective invoice category is assigned to the new collective invoice as an attribute. The collective invoice category assigned can influence processes such as form determination when printing the collective invoice.

Test Mode and Update Mode
If you execute the program in test mode, the system does not change the SD and FI documents. The list displays a temporary collective invoice number, which is not written to the database. A temporary collective invoice number is prefaced by an '$'. The numbers are assigned consecutively within a program run.

We recommend that you execute the program in test mode first. If no errors occur, you can create the collective invoice in update mode. In this processing mode, the system copies the collective invoice number to the corresponding SD and FI documents. The system also records the status of the collective invoice in table NBRKS. If serious errors occur in update mode, the system automatically returns to test mode. No changes are made to the database, so that you can correct the errors. The following errors may occur:

  • An invoice is included in more than one of the invoice selections to be processed.
In such cases, you must delete the duplicate invoices from the invoice selections in question using program RNASELR1, Edit Invoice Selection.
  • An error occurred when the first FI document was modified.
This is most likely a basic error (for example, the Collective Invoice Number field in FI is not ready for input). As a result, data cannot be saved to the database.
If an error occurs when modifying a subsequent FI document in the selection, the system does not cancel processing. You can find out which FI (and SD) documents were not modified by referring to the error log generated.

The system does not switch processing mode if the invoice selection to be processed includes invoices that are already assigned to a collective invoice. These invoices are not taken into account when the collective invoice is created.

Deletion of Invoice Selections
Once a collective invoice has been created successfully, the corresponding invoice selection is normally deleted from the system. You can specify whether or not the invoice selections are to be deleted automatically using the selection parameter Delete Invoice Selections.
If you decide not to have the system delete invoice selections automatically, you must delete the old selections yourself. You can do this using program RNASELR1, Edit Invoice Selection.

Requirements

Before you can create a collective invoice, you must create an invoice selection using program RNASELR0, Create Invoice Selection. The invoice selection contains all the invoices that are to be combined in a collective invoice.

Specify at least the institution and an invoice selection on the selection screen. Alternatively, you can specify an insurance provider or a payer. The program then determines the corresponding invoice selections automatically.

Note:

The system runs various checks when creating an invoice selection. For performance reasons, these checks are not run when the collective invoice is created. In this case, only the following checks are run:

  • The invoice is not yet assigned to a collective invoice.
  • An invoice is only included in one of the invoice selections to be processed.

The system takes active implementations of BAdI ISH_COLLECTIVE_INVOICE into account both when creating the invoice selection and when creating the collective invoice.
Customer-specific checks in the BAdI may result in the system interpreting reversal documents, or documents that have not yet been transferred to FI, as irrelevant for invoice selection and therefore filtering them out.

We recommend creating the invoice selection and the collective invoice in direct succession, to ensure, for example, that invoices are not reversed between the two processes.
However, if you do need to delete particular invoices from an invoice selection, you can do this using program RNASELR1, Edit Invoice Selection.
If an FI document exists for an invoice, the following applies:
When the collective invoice is created, the system copies its number to the Collective Invoice Number field (technical name BSEG-SAMNR) in the FI document. This means this field must be ready for input in Financial Accounting. If the FI transaction appears during the process for creating a collective invoice because this field is not ready for input, contact your system administrator.

To execute this program, you require the authorization S_PROGRAM and the authorization group N_A_STSR, which is specified in the program attributes.

Recommended Procedure

To create a collective invoice, please proceed as follows:

  • Create an invoice selection.
  • Check the invoice selection created. If need be, you can delete invoices containing errors from the invoice selection at this point.
  • Create the collective invoice using the checked and valid invoice selection.
  • Delete the collective invoice selection once the collective invoice has been created successfully and you have deselected the Delete Invoice Selection parameter on the selection screen.
This ensures that you do not use an obsolete or invalid invoice selection to create a collective invoice.
Example:
You create a collective invoice. After the collective invoice has been created, you reverse a number of invoices containing errors from the collective invoice. You specify in Customizing that the collective invoice number is to be deleted from the invoice document and FI document when reversal takes place. If you now create another collective invoice using this invalid invoice selection, it will contain all the reversed invoices.

Output

Collective invoices are output using the SAP List Viewer. In addition to the standard functions provided by the SAP List Viewer, you can use the Messages function to display all the messages that were generated while the collective invoice was being created.

Example






RFUMSV00 - Advance Return for Tax on Sales/Purchases   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 9681 Date: 20240520 Time: 073728     sap01-206 ( 197 ms )