In our system the calculation of Surcharge is wrong during MIRO.
So i write this issue to the SAP, the below solution is provided by them :
Use the user exit 'J_1I7_USEREXIT_PROCESS_TKOMV' to redetermine
the additional VAT condition type value. This user exit will be
called after the FM 'J_1I4A_TAX_CONDITIONS', where the
redetermination of the VAT will take place on the basis of
the changed excise duties.
So, userexit can be implemented by CMOD and SMOD, but this userexit actually a Function Module.
But now the problem is how can i implement the 'J_1I7_USEREXIT_PROCESS_TKOMV' function Module.
You can write code directly in this FM 'J_1I7_USEREXIT_PROCESS_TKOMV' ; no need to use CMOD \ SMOD because it is not part of enhancement...
Generally with function exit SAP also provide an include but in this FM there is no such include provided..
This FM called within method 'IF_EX_TAX_CONDITIONS~PROCESS_TKOMV' of class CL_IM_INDIA_TAX_CONDITIONS.
Thanks. I already make a enhacement in this function Module and write the below code:
ENHANCEMENT 1 ZMIRO. "active version
DATA : WA_XKOMV TYPE KOMV.
DATA : WA_KBETR TYPE KOMV-KBETR,
IDX TYPE SY-TABIX.
LOOP AT XKOMV WHERE KSCHL = 'ZSUR'.
IDX = SY-TABIX.
WA_KBETR = XKOMV-KBETR / 10.
READ TABLE XKOMV INTO WA_XKOMV WITH KEY KSCHL = 'JVRD'.
XKOMV-KWERT = WA_XKOMV-KWERT * WA_KBETR / 100.
MODIFY XKOMV INDEX IDX TRANSPORTING KWERT.
ZSUR is a custom surcharge condition type. But still surcharge is wrong calculated.