cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript

Former Member
0 Kudos

hi,

how to calculate the Tax( which table and fields and wht is the logic).

then how will we add it to our script , in sapscript and smartform.

Accepted Solutions (1)

Accepted Solutions (1)

raguraman_c
Active Contributor
0 Kudos

Hi,

If it is for PO here's the solution.

There are tables available in the syatem to get the tax rate and percentage.

first you need to pass the PO no into EKKO. Against a PO you shall get a unique condition record no - KNUMV from the table. Pass this KNUMV along with the line item no - EKPO-EBELP into table KONV.

In this table pass the EKKO-KNUMV into KONV-KNUMV and EKPO-EBELP into KONV-KPOSN and KAPPL as 'E8'. Execute the table. You shall get all the entries respected to tax details - condition type wise. From this you can pick up all the fields KWERT(condition value) for each condition type, add it and give the Total tax amount.

Hope this will help in solving your problem.

Feel free to revert back.

--Ragu

Former Member
0 Kudos

hi,

thnx for the info.

very helpful.

points given

Answers (1)

Answers (1)

former_member193831
Active Participant
0 Kudos

Hi Amar,

Just Tax in SAP would be a very general term.

There will be different tables and fields for all kinds of Tax.

E.g. For sales order you can get the tax amount from

VBAP-MWSBP field.

Regards,

Vivek Kute.

Pls reward points if helpful.