Ansicht
Dokumentation

V_TXS_ENHANCMENT - Enhance Localization Interfaces for External Tax Calculation Engines

V_TXS_ENHANCMENT - Enhance Localization Interfaces for External Tax Calculation Engines

CL_GUI_FRONTEND_SERVICES - Frontend Services   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you can set your own classes to be executed in place of the standard localization classes that are used in the integration with external tax calculation engines, for certain interfaces. Setting your own classes allows you to extend the integration of the external tax calculation engines according to your localization needs.

  • You have implemented and activated a class implementing one localization interface (directly or inheriting from the localization class that implements the same interface).
  • You have ensured that the external tax calculation engine covers your scenario.

You can define your classes according to country/region or you can define a default class (called independently of country/region) by setting the Ext. Ctry/Rgn field to a blank value.

The external tax calculation engine integration calls the following sequence while instantiating a class from the available interfaces:

  1. Check if there is an interface key and a value for the Ext. Ctry/Rgnfield available in V_TXS_ENHANCMENT
  2. If not, check if there is an interface key and a blankvalue for the Ext. Ctry/Rgnfield available in V_TXS_ENHANCMENT
  3. If not, call a standard class (country/region specialization or generic).
Note
All external tax calculation engine integration classes that are available for enhancement implement the IF_TXS_CLASS_ENHANCEMENT interface.
You can see more details about each interface by choosing the information button on this view or accessing the transaction SE24-> Display Interface-> Documentation.

Assume that John, an employee of a papermaking company, was informed of a prospect sale of goods to a foreign country/region. He wants to use the SAP Cloud Integration to connect to an external tax calculation engine in his SAP S/4HANA system to calculate the tax implications of this sale. However, the external tax calculation engine integration is not extended to have country/region specific payload information, which is necessary for this tax calculation. John completes one of the following process to access the payload and make the necessary changes:

  • John creates a new class and inherits methods from the standard class CL_TXS_PAYLOAD:
  1. Access transaction SE24
  2. Enters the name of his class (example: ZCL_TXS_PAYLOAD)
  3. Chooses Createand Save
  4. Goes to the Propertiestab
  5. Chooses the pushbutton Superclass
  6. Enters the localization class that implements his chosen interface (CL_TXS_PAYLOAD)
  7. Chooses Save
  8. Makes the necessary changes and chooses Activate.
  • John creates a new class and implements the interface IF_TXS_PAYLOAD:
  1. Accesses transaction SE24
  2. Enters the name of his class (example: ZCL_TXS_PAYLOAD)
  3. Chooses Createand Save
  4. Goes to the Interfacetab
  5. Enters the interface name (IF_TXS_PAYLOAD)
  6. Implements each method according to his needs
  7. Chooses Saveand Active.

John’s class is now available in the Enhance Localization Interfaces for External Tax Calculation Engines customizing activity. John can set his own class in place of the standard localization class and calculate taxes for a country/region specific payload.






General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5102 Date: 20240523 Time: 192240     sap01-206 ( 75 ms )