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: 

Determining Tax Code in ME21N

Former Member
0 Kudos

Hi All,

When you are creating a PO using transaction ME21N the tax code is determined automatically for you.

From a technical point of view how can I replicate what ME21N does to determine the tax code?

I have tried debugging the transaction but I was unable to figure it out myself.

Many Thanks for any help you can provide,

Colm

1 ACCEPTED SOLUTION

Pawan_Kesari
Active Contributor
0 Kudos

Try this [link|http://sample-code-abap.blogspot.com/2008/06/calculate-tax-of-purchase-order-line.html]

4 REPLIES 4

Pawan_Kesari
Active Contributor
0 Kudos

Try this [link|http://sample-code-abap.blogspot.com/2008/06/calculate-tax-of-purchase-order-line.html]

0 Kudos

Thank you for your suggestion however it doesn't quite meet my demands.

I think I should be clearer.

When the user is in ME21N, the user can input the Vendor, the material number, the quantity, the price and the plant.

If the user presses the return key after just entering this information the tax code is populated on the invoice tab.

I need to know how the ME21N transaction decides what tax code to populate in this field.

Many thanks again,

Colm

Former Member
0 Kudos

When debugging the code I found this Function Module: FI_F4_MWSKZ however when I test this in SE37 using the values i_kalsm = 'TAXIE' and i_lstml = 'IE' I get a table of results.

Hopefully this will narrow the search down for someone.

Many thanks again,

Colm

Former Member
0 Kudos

This message was moderated.