Menu

SAP Function Module CALCULATE_TAX_DOCUMENT

Steuern auf Belegebene pruefen/rechnen

Recommended Now

All-new Echo Dot Smart speaker with Alexa

This bundle includes Echo Dot (3rd Gen) Charcoal and Philips Hue White A19 Medium Lumen Smart Bulb, 1100 Lumens. Built in Smart Home hub. Ask Alexa to control Zigbee-compatible devices. No additional Philips Hue hub required. Two choices for easy smart lighting - Start setting the mood with Hue Smart bulbs and your Echo device, supporting up to 5 Hue Bluetooth & Zigbee smart bulbs. Add the Hue Hub for whole-home smart lighting (up to 50 light points) and bonus features.

Check it out on amazon.com →

The Function Module CALCULATE_TAX_DOCUMENT (Steuern auf Belegebene pruefen/rechnen) is a standard Function Module in SAP ERP and is part of the function group TAX1 within the package FBAS.

Technical Information

Function Module CALCULATE_TAX_DOCUMENT
Short Text Steuern auf Belegebene pruefen/rechnen
Function Group TAX1
Package FBAS
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
I_BUKRS LIKE BKPF-BUKRS Company code to which taxes are posted
I_NOERR LIKE BSEZ-XMWST SPACE X - no error message for incorrect tax amount
I_XHWBT LIKE RFOPT-XNOHW SPACE X - LC amounts ready for input
I_XNOMS LIKE BSEZ-XMWST SPACE X - no warning for tax code in open item
I_XSIMU LIKE BSEZ-XMWST SPACE X - simulation mode

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
E_ITXDAT LIKE ITXDAT Total of all taxes in FC
E_XSTVR LIKE BKPF-XMWST Tax amounts were changed

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
T_BKPF LIKE BKPF Document headers
T_BSEG LIKE BSEG Line items
T_DBSEG LIKE DBSEG Detail line items
T_FICCO LIKE FICCO Values to be corrected in external company code
T_FICTX LIKE FICTX Tax data fr.external company codes

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
ERROR_CALCULATE_DISCOUNTB Error in cash discount base calculation
MWSKZ_EINHEITLICH_VORGEBEN Use only '**' or an explicit indicator
MWSKZ_NOT_DEFINED Tax code not defined
USER_EXIT Tax check ended with cancellation