cancel
Showing results for 
Search instead for 
Did you mean: 

ROUTINE 366

Former Member
0 Kudos

Hi Gurus,

Can anyone send me details regarding routine 366 in pricing procedure and its functionality in CIN.

regards

vandana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Thats basically assigned to the tax Ctyp's. This is used to determine tax codes based on certain conditions automatically.

Reward if it helped

Chandru

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vandana,

I try to explain routine 366 to you.

Formula 366 is mainly used for calculating Education Cess, NCCD .

<b>Let me explain it for Education Cess calculation :</b>

##################################################################

Remember that we assign this formula to condition JECS in tax procedure as well as in pricing procedure.

Goto T.Code VOFM --> click on button Formulas in top panel --> select Condition value ---> now select routine 366 and display source code .

You will see the ABAP code which drives this routine.

This code works as follows :

See for the code section :

***************************************************************

form frm_kondi_wert_366.

check komk-trtyp ne 'A'.

data :

<b>land1 like t001-land1,

kalsm like t005-kalsm.</b>

  • NCCD changes starts

data: wa_excdef like j_1iexcdef.

<b>select single land1 from t001 into land1

where bukrs = komk-bukrs.

select single kalsm from t005 into kalsm

where land1 = land1.

select single * from j_1iexcdef into wa_excdef

where j_1itaxcal = kalsm.</b>

*********************************************************************

You can see the table <b>j_1iexcdef</b> which is actually excise default table.

You do the configuration of Excise Default under the path:

T.Code J1IT --> Global Settings --> Maintain Excise Defaults

The conditions maintained in Excise Defaults are only considered by the system for calculation.

I suggest you go to T.Code SE16 and have a look at <b>j_1iexcdef</b>.

You will ensure that you have maintained the education cess condition type JECS and JECX in ECS relevant fields.

Now Formula works as follows :

First it selects the right tax procedure e.g TAXINJ for country India.

It do so by the code section which is bold above.

e.g.

// select single land1 from t001 into land1

where bukrs = komk-bukrs //

Select the Country(land1) corresponding to Company Code (bukrs)

// select single kalsm from t005 into kalsm

where land1 = land1 //

Select Tax procedure corresponding to Country.

// select single * from j_1iexcdef into wa_excdef

where j_1itaxcal = kalsm. //

Now, select all the default excise conditions for this tax procedure.

Exactly from here it will pick up the condition for Educatiopn Cess i.e. JECS

and starts processing it according to further code .

I just explain the functionality now :

In condition record of JECS where 100% is maintained.

Then checks FTXP percentage of JECS in tax code determined via UTXJ.

Suppose you maintained there 100% ( which is usual ).

This mean it will pick up 100% of what has been maintained in ECS percentage column under "maintain excise rate" in J1ID.

If you maintained 25 for ECS in J1ID, then finally takes 2% for JECS.

Now it takes the base value from procedure itself.

and calculates 2% of it.

Finally it displays the calculated value.

##################################################################

Similarly , the formula calculates NCCD etc. as per the case.

I suggest you refer SAP Note 753581( when education cess was introduced and formula 366 originally designed for AED was modified further for ECS needs initially ).

Hope this will help you to some extent.

Please reward points if found useful.

Regards,

Gaurav Raghav.

Former Member
0 Kudos

Correction :

In above post of mine, For the line:

" If you maintained 25 for ECS in J1ID, then finally takes 2% for JECS."

replace 25 by 2% .

Thanks.

Former Member
0 Kudos

hi,

Can u send me more details regarding comparison of routine 366 and 17.

regards,

vandana