Application Development and Automation 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: 
Read only

BAPI for retrieving tax code & percentage from SAP?

Former Member
0 Likes
4,925

Hi all,

Does anyone know of a BAPI who can retrieve a list of available tax codes for purchase (field MWSKZ) in a company code, and eventually their percentages?

Thanks in advance,

Ioana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,504

MWSKZ is the tax code .

you dont have to use any bapi to retrieve tax percentage.

only do this.

you select KNUMH (Condition number) from A003 (taxe code table) with the key fields ALAND and MWSKZ.

you select KBETR (tax percentage) from KONP with key KNUMH (Condition number)that you have retrived in the previous step.

A+

Ihsen ABROUG

Hi all,

Does anyone know of a BAPI who can retrieve a list of available tax codes for purchase (field MWSKZ) in a company code, and eventually their percentages?

Thanks in advance,

Ioana

4 REPLIES 4
Read only

Former Member
0 Likes
2,504

Hi Loana,

not sure abt getting the tax codes, but by using FM 'CALCULATE_TAX_ITEM' , u can get the percentages n values of the taxes by inputting the tax code n purchase data.

Hope it helps,

Regards,

Bikash

Read only

Former Member
0 Likes
2,504

Hai Virtosu,

I think these two will work out for you..

<b>CALCULATE_TAX_FROM_GROSSAMOUNT or

CALCULATE_TAX_FROM_NET_AMOUNT</b>

also just check this link....

http://www.sapfans.com/sapfans/forum/intface/messages/4192.html

Regards,

Srikanth.

reward points if helpful.

Read only

Former Member
0 Likes
2,504

Hi guys,

Maybe my question wasn't clear enough - these functions calculate tax amounts, but you have to pass the codes yourself. What I'm looking for is a function which returns a list of available tax codes - so the only parameter to pass to the function should be the company code and/or the procedure, and it should return the list of all available codes, like an F4-list but in an internal table or such.

Read only

Former Member
0 Likes
2,505

MWSKZ is the tax code .

you dont have to use any bapi to retrieve tax percentage.

only do this.

you select KNUMH (Condition number) from A003 (taxe code table) with the key fields ALAND and MWSKZ.

you select KBETR (tax percentage) from KONP with key KNUMH (Condition number)that you have retrived in the previous step.

A+

Ihsen ABROUG