Showing results for 
Search instead for 
Did you mean: 

Substitution tax code in ME21N

0 Kudos

We want to be able to substitute the tax code when a user is making a purchase order (tcode ME21N). More in detail: when a person enters a certain cost center we want the tax code automatically to be filled with a certain tax code value.

The substitution enviroment (tcode GGB1..4) does not work with ME21N and also we cannot find a suitable user-exit.

Any suggestions?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Bret,

You have a very good scenario to use USER-Exit.

What you do is Create one Z Table having Cost-Center and its corresponding Tax Code. Add values to that.

Now create a field-exit on Cost-Center field of ME21N for searching right tax-code for that Cost-center. You can even restrict user to use cost-center here.

Tell me if you need any more clarification. Also tell me if it works.


Active Contributor
0 Kudos

Hi Bert!

How about changing the tax class to a different value. With a different tax condition, you can maintain a different tax code -> several values are available.

You can overwrite tax class in user-exit EXIT_SAPLMEKO_001 (field komk-taxk1).