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: 

Calculation in Excise invoice

Former Member
0 Kudos

Hi,

While running the Excise Invoice (J1IIN), the values are flowing properly. But when i am going to save system throwing error

"Divide by 0 (type F) in the program "SAPLJ1I6"...

I have observed that in program SAPLJ1I6,after executing this function module 'J_1I7_USEREXIT_QTY_UNIT_CONV'

the new_unit(condition price unti) is ZERO.

After this the calculation goes on like this,

num_unit = j_1iexctax-kpein.

cal_amount = new_qty * j_1iexctax-amount / num_unit.

since kpein value is zero,its unable to calculate the amount.

i have checked the values in the table j_1iexctax also,kpein value is ZERO...

Can anybody tell me how to overcome this issue,

Thanks in advance.

Regards,

Sharmista

4 REPLIES 4

Former Member
0 Kudos

Please check the condition below.



if j_1iexctax-kpein is not initial.
num_unit = j_1iexctax-kpein.
cal_amount = ( new_qty * j_1iexctax-amount ) / num_unit.
else.
cal_amount = ( new_qty * j_1iexctax ) .
endif.  

Regards

Satish Boguda

0 Kudos

Hi Satish,

Thank you for your response.

I cannot chage the code here,its standard program..

Regards,

sharmista

0 Kudos

Hi Sharmista,

You need to check why j_1iexctax-kpein value is zero.

I believe this field gets populated while doing the transaction.

Please check where it is becoming zero.

Thanks,

Sai

Former Member
0 Kudos

Hi,

Please check in the view J_1IVTXRAT, whats the value of kpein is maintained ?

you can use J1ID T.code, there you can find excise tax rates. You can check there.

Thanks,

Sai