Ansicht
Dokumentation

ISU_SAMPLE_R413 - Event R413: Tax Code Determination for Billing Documents

ISU_SAMPLE_R413 - Event R413: Tax Code Determination for Billing Documents

CPI1466 during Backup   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function modules called at event R413 can overwrite the VAT detemination functionality used in contract billing or bill creation.

You can replace the VAT code for the net amount of a billing line determined in the standard system, and also divide up the net amount and charge it tax in different ways.

Apart from the VAT determined at billing document level in the standard system, you can also use other information on this event. The business partner and contract account, as well as the contracts for which a bill is created and the contracts for which there are billing documents to be invoiced and open items for the contract account, are all on the interface. The posting date and document date of bill creation, as well as additional parameters can also be used.

In Invoicing, the event is triggered before the CA document is created from the consumption billings and the print document lines are structured. The VAT information is taken into account during posting and in the bill display.

Example

During bill creation, you want to take into account VAT paid as part of unsettled payments.

Notes

The interface contains the following data:

  • X_PARAM : Start parameter for invoicing
  • X_UNIT_PARAM : Parameter for each invoicing unit
  • X_BUPA : Business partner
  • X_FKKVKP : Contract account header
  • X_FKKVKP : Contract account (partner-specific)
  • T_CONTRCL : Table of billed contracts with billing transactions or billing documents
  • T_BILL_DOC : Table of all billing documents to be invoiced
  • T_OPEN_ITEM : Table of all open items for the contract account
  • TY_ERCHZ_MWSKZ: Table of billing lines with the corresponding tax information

If you want to change the standard tax determination function, change the corresponding tax information for a billing line in table TY_ERCHZ_MWSKZ. Note that the entry in the ERCHZ_KEY structure uniquely represents the billing line and table T_MWSKZ contains the amount to be taxed with the tax indicator.

You can only change the entries in the TY_ERCHZ_MWSKZ table. After the event, the following checks are performed:

  • For each billing line there must be one entry in the TY_ERCHZ_MWSKZ table
  • The sum of the amount to be taxed must be equal to the net amont of the billing line.




Parameters

TY_ERCHZ_MWSKZ
TY_ERDTAX_ADD
T_BILL_DOC
T_CONTRCL
T_OPEN_ITEM
X_BUPA
X_FKKVK
X_FKKVKP
X_PARAM
X_UNIT_PARAM

Exceptions

Function Group

E21U

ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Length: 3049 Date: 20240605 Time: 150114     sap01-206 ( 77 ms )