cancel
Showing results for 
Search instead for 
Did you mean: 

tax conditions in smartforms for purchase order

Former Member
0 Kudos

Hi,

If I want to display the Total taxes for all the line items(EBELP) in a purchase order, how I can do this??

Is there any function module available for that??

Please guide.

Regards,

Venkt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Venkat,,

You can use FM CALCULATE_TAX_ITEM as follows;

CALL FUNCTION 'CALCULATE_TAX_ITEM'
EXPORTING
i_taxcom            = ls_taxcom
TABLES
t_xkomv             = gt_komv
EXCEPTIONS
mwskz_not_defined   = 1
mwskz_not_found     = 2
mwskz_not_valid     = 3
steuerbetrag_falsch = 4
country_not_found   = 5
OTHERS              = 6.

But you have to write this inside the item loop and add all entries, then at last you can print the total tax value.

Revert back if u have doubts.

Regards

Karthik D

Answers (3)

Answers (3)

Former Member
0 Kudos

help full

Former Member
0 Kudos

Hi,

Use FM RV_PRICE_PRINT_ITEM to get condition values .

and then calculate total taxes for the tax condition type.

Regards,

Raju.

Former Member
0 Kudos

hi,

do u want taxes item line wise? or total taxes at bottom of main window?

1.if u want total u can get it from konv table .

for this first u get conition no for PO from ekko .

from that condition no extarct condition types & values from konv table.

condition type - kschl.

condition rate - kbetr.

condition value - kwert. etc

2. if u want item wise taxes -

use same logic.

only first u have to use funcition 'PRICING' for line item wise values.

i hope this will help u