cancel
Showing results for 
Search instead for 
Did you mean: 

Tax percentage and rate in PO out put

Former Member
0 Kudos

Hi Gurus

We are developing the smart form for PO.I have given logic for all the feilds in the PO, but im not not getting the tax logic how to link it up.we are not using CIN.we have only taxes like CST, VAT and service taxes for different percentages.So kindly tell me how to fetch the Tax rate and percentage linking from PO.

Thanks in Advance......

Sri.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Tere is only updation of tax values from the tax procedure.

Go to OBQ3 and here the calculation happened as per that only the values updated in Invoice tab.

The data is not directly updated for the pricing conditions,

So you have to retrieve the data from the Functonal module to the internal table . Then put logic as per that one.

Regards,

Andra

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All,

Im maintaining tax codes in the po invoice tab and I can see the tax rate and percentage in that tab only.

So how to get those tax values and percentages in to the smart form.

Is there any way to have a tax condition type in the PO conditions tab ? if yes please suggest me the condition type and how it will be automatically updated by the tax code value.

Thanks in Advance.

Sri devi.......

Former Member
0 Kudos

Use function module PRICING.

The sample code is given below..

Re: Functinal Module : PO Tax Conditions

Posted: May 29, 2009 12:37 PM in response to: anis bazmi Edit Reply

select single * from ekko where ebeln = wa_ekko-ebeln.

select single * from ekpo where ebeln = wa_ekpo-ebeln

and ebelp = wa_ekpo-ebelp

and loekz = ' '.

komk-mandt = ekko-mandt.

komk-aland = ekko-lands.

komk-bukrs = ekko-bukrs.

komk-waerk = ekko-waers.

komk-hwaer = ekko-waers.

komk-lifnr = ekko-lifnr.

komk-kappl = 'TX'.

komk-kalsm = 'TAXINN'.

komk-prsdt = ekko-aedat.

komk-ekorg = ekko-ekorg.

komk-mwskz = ekpo-mwskz.

komk-txjcd = ekpo-txjcd.

komp-kposn = ekpo-ebelp.

komp-matnr = ekpo-matnr.

komp-werks = ekpo-werks.

komp-matkl = ekpo-matkl.

komp-wrbtr = ekpo-kzwi1.

komp-meins = ekpo-meins.

komp-mglme = ekpo-menge.

komp-mtart = ekpo-mtart.

komp-mwskz = ekpo-mwskz.

komp-mgame = ekpo-menge.

komp-vrkme = ekpo-meins.

komp-wrbtr = ekpo-netwr.

refresh t_komv.

call function 'PRICING'

exporting

calculation_type = 'B'

comm_head_i = komk

comm_item_i = komp

tables

tkomv = t_komv.

loop at t_komv into wa_komv where kvsl1 is not initial.

wa_final-taxamt = wa_komv-kwert + wa_final-taxamt.

clear wa_komv.

endloop.

wa_final-totamt = wa_final-taxamt + wa_final-netwr.

refresh : t_komv.

clear: ekko,

ekpo.

Former Member
0 Kudos

Hi Amit,

Thank you very much for your inputs.

I jhave question on this coding.whethere this coding setch the tax from the condition types or from the tax code in the PO.

Because I'm maintaining only tax codes in the PO but not condition types.

please advise me

Cheers,

Sri.

Former Member
0 Kudos

Hi,

The VAT or CST can be calculated on the basis of condition types mentioned in the pricing procedue.

The logic is same and get the relavent field from the mentiond condition types in the pricing procedure.

Check in M/08.

Regards,

Andra