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

Problem in Pricing Formula

Former Member
0 Likes
417

Hi,

For specifyic condition types, i need the condition values to be displayed always in 'INR', i have created a formula routine for this and assigned to my pricing procedure .

structures i am changing are XKOMV and KOMK.

using 'CONVERT_TO_LOCAL_CURRENCY' i am converting the amount

( xkomv-kwert ) into indian currency value and for currency key

i have passed 'INR' to komk-waerk field

here i am facing 2 problems, after coming out of my include xkomv-kwert is getting overridden by old value in some other include, hence i am getting the same old value on the screen and currecny key is getting dislayed as 'INR' for all the records not just only for my condition type.

Can you pls correct me if what is done by me is wrong

Regards,

Sowjanya

1 REPLY 1
Read only

Former Member
0 Likes
345

An amount in local currency is calculated from a specified foreign currency amount. For this, you may either specify the translation rate manually (Parameter RATE) or have the system determine it from table TCURR on the basis of the rate type, date and currency key. Because the ratios for the units of the currencies involved in the translation are significant for this translation, table TCURF is always read by the program, and there must be a valid entry there for the data specified. IF exchange rate fixing is defined for the exchange rate type TYPE_OF_RATE or an alternative exchange rate is defined for the currency pair, this information is transferred to the calling program.

When table TCURR is read, the foreign currency key is always taken as the first part of the key and the local currency as the second part.

or you can also do the manual conversion by taking the exchange rate from table TCURR for the particular date and multiply this exchage rate to foreign amount then to get the amount in local currency.

hope this will work.