Ansicht
Dokumentation

ISU_SAMPLE_R402 - R402: Extend or Suppress Posting Documents in Invoicing

ISU_SAMPLE_R402 - R402: Extend or Suppress Posting Documents in Invoicing

Vendor Master (General Section)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function modules called for event R402 enable you to add new business partner items and G/L account items to the contract accounting documents that are generated in invoicing and posted in contract accounts receivable and payable. It also enables you to enter new contract accounting documents. All contract accounting document data except the document number and due date are available for this event, together with the business partner, the contract account and the contracts for which the bill is created.

The posting date and document date from bill creation are also available.

The event is started in invoicing before the bill due date is determined and before the account maintenance modules are called. The business partner items that are added are then available for settlement in account maintenance; they affect the bill sum total and you can include them on the bill.

Documents that are created are linked with the bill number as a reference and are reversed automatically if the bill is reversed.

Example

In periodic invoicing you wish to levy charges on the bill items from the electricity and water divisions and invoice them immediately if this bill amount exceeds a given minimum amount. You add up the amounts for the business partner items of the contract accounting documents for the electricity and water billings. If the receivables total exceeds the minimum amount, you create a business partner item with the charge amount and the transactions for charges, and you create the appropriate G/L account item.

You can print the charge that is due with the bill on the bill.

Notes

The following information is available on the interface:

  • X_VERART: Settlement type for bill creation
  • X_BLDAT: Document date for bill creation
  • X_BUDAT: Posting date for bill creation
  • X_BUPA: Business partner
  • X_FKKVKP: Contract account
  • T_CONTRCL: Table of billed contracts with billing procedures of the
    billing documents
  • T_VKK_DOC_ID: Table of contract accounting documents that are
    generated in invoicing. Since the document numbers are
    not yet available, a consecutive number for identifying
    the documents is provided, together with an ID.
    Possible values for the ID are:
  • A: Leading contract accounting document from billings

  • B: Document for settlement of budget billing payments

  • D: Interest document from cash security deposits

  • E: Interest document from open receivables

  • S: Contract accounting document for SD billing documents

  • N: New documents from event R402

Sample coding is available for read access to the individual contract accounting documents in the source code.

At the same time you can process these documents by entering new items in tables N_FKKOP und N_FKKOPK using the FORM routine UPDATE_VKK_DOC_ID_R402. The calling program copies these new line items.

  • Y_VKK_DOC_NEW: new contract accounting document

The calling program transfers the document header FKKKO and the line items from tables N_FKKOP and N_FKKOPK and adds the ID N and the consecutive number.

The invoicing origin, the posting date and document date from invoicing and the bill due date are added to the document before it is checked and transferred to the posting interface.

The system determines a contract accounting document number on the basis of the document type assigned in event R402.





Parameters

T_BILL_DOC
T_CONTRCL
T_VKK_DOC_ID
X_BLDAT
X_BUDAT
X_BUPA
X_FKKVKP
X_INVOICE_UNIT
X_PARAM
X_VERART
Y_CONSIDER_LOCAL_AMOUNTS
Y_CONSIDER_TOTAL_ICS
Y_VKK_DOC_ICS
Y_VKK_DOC_NEW

Exceptions

Function Group

E21U

General Material Data   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 4696 Date: 20240523 Time: 143748     sap01-206 ( 48 ms )