Ansicht
Dokumentation

FI_TAX_SERVICES - Steuerinfo (BSET) ermitteln für BAPI 2070697

FI_TAX_SERVICES - Steuerinfo (BSET) ermitteln für BAPI 2070697

ROGBILLS - Synchronize billing plans   ABAP Short Reference  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

Funktionalität

SAP Note 1873588 has provided a method for the derivation of the tax data for BAPIs. The method is to facilitate the filling of tax data for bapi_acc_document_post or bapi_acc_document_check, specifically for the determination of the parameters for the line-by-line tax using SAP Note 1873588 because this has made fundamental changes in the standard SAP system. SAP Note 2070697 enhances the method for the calculation of taxes (VAT, sales tax, and use tax) including non-deductibility and down payments for currency type 0. Most of the parameters are identical with the parameters for the bapis mentioned above. Other parameters are e.g. TAXAMOUNT, DIFFERENCE_IS_TAX and ITEMNO_ACC_ZERO_BALANCE, ACCOUNTTAX_INPUT, CURRENCYAMOUNT_INPUT and RETURN_CODE.

You can specify a tax total (TAXAMOUNT) for the document that is distributed according to the calculated taxes then and returned (optional). You can also specify the tax per tax indicator and/or tax jurisdiction code (ACCOUNTTAX_INPUT, CURRENCYAMOUNT_INPUT). This tax is distributed like the tax total but per tax indicator and/or tax jurisdiction code. The parameter DIFFERENCE_IS_TAX can be used to let the method know that the document balance is the missing tax that has to be distributed (optional). If you don't set these parameters, the tax calculated is returned.

The parameter ITEMNO_ACC_ZERO_BALANCE was introduced (optional) to refer to the item which should be used as a template to generate a 0 balance if you pass a document with balance not equal 0 e.g. because the tax is missing. You can put an additional item with the required parameter to ACCOUNTGL with amount equal zero and without tax code or you can refer to an item which should also be part of the final document. If you don't set the parameter, just the first item (ACCOUNTGL) is used for this (default). Please keep in mind that this additional item is internally generated and internally used for bapi_acc_document_check and that the tax code is removed from this artificial item before this bapi call is performed but you could get a tax code not equal space through substitution or other features but the tax calculation would also take this item into account then. To avoid such issues beforehand you can put a separate item to ACCOUNTGL without tax code and substitution rules just for creating the zero balance item.

The parameter RETURN_CODE contains 0 if the call was successful and else it contains value not equal 0. If it is equal 16, no tax will be returned, one reason could be e.g. that no item with tax code and/or tax jurisdiction code was input.

A calculation is performed only for documents that are not mixed documents, that is, for example, documents with down payments and tax-relevant expense items in a document are not supported. Taxes for India and Brazil are not supported by this method. Direct taxes (DIRECT_TAX='X') are also not supported. The parameter RETURN_CODE is not equal 0 if there is an error either returned by the internal bapi call or for some other reason. The tax calculation assumes that the amounts are net amounts (excluding tax). The distribution algorithms for tax and non-deductibility amounts do not always work like in FI Online transactions. The distribution algorithm is not identical. Thus, there can be differences. If the algorithms cannot be aligned and you cannot put up with the differences, you might consider to fill the BAPI as before delineated by note 626235.

In addition, all changes, including those of SAP Note 1873588, are also available for SAPKH60000-60404. This means that this SAP Note 2070697 has down ported the changes, where the line-by-line tax transfer is available only as of SAPKH60405 because SAPKH60405 has added the parameter ITEMNO_TAX to the BAPIs. The service class is therefore available as of SAPKH60000 and is the same in all Enhancement Packages as of SAPKH60000. In addition, the RFC-enabled function module FI_TAX_SERVICES_CALCULATE is provided. This function module can be called via RFC. It calls the above-mentioned method in the SAP system and returns the parameters of method FI_TAX_SERVICES=>CALCULATE.

If you use S4CORE103 or higher it is strongly recommended to use the function module FI_TAX_SERVICES_CALCULATE instead of using the method FI_TAX_SERVICES=>CALCULATE because LONGER amount fields have been added to the interface of the bapis mentioned above, function module FI_TAX_SERVICES_CALCULATE and method FI_TAX_SERVICES=>CALCULATE. The method is foreseen for SAP internal developments and only works with the new LONGER fields whereas the function module FI_TAX_SERVICES_CALCULATE can handle both.

Beziehungen

Beispiel

Hinweise

Weiterführende Informationen






ROGBILLS - Synchronize billing plans   TXBHW - Original Tax Base Amount in Local Currency  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 5006 Date: 20240426 Time: 045308     sap01-206 ( 177 ms )