Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Prob. in Implement User Exit for wrong calculation of Surcharge during MIRO

Former Member
0 Kudos

Dear All,

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.

Regards,

Nitin Garg

4 REPLIES 4

krishnendu_laha
Active Contributor
0 Kudos

Hello,

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

Krish

0 Kudos

Dear,

Thanks for quick reply.

On what point i need to write this code. it is required to modify Standard Program of MIRO .??

Nitin Garg

0 Kudos

Hello,

SAP message is asking you to code inside the FM 'J_1I7_USEREXIT_PROCESS_TKOMV' and for that you need access key.

Please ask your basis team for same.

Thanks

Krish

0 Kudos

Dear,

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.
  ENDLOOP.

ENDENHANCEMENT.

ZSUR is a custom surcharge condition type. But still surcharge is wrong calculated.

Nitin Garg.