How to Get Exchange rates based on the date ?

Hi Friends,
I have a table called "ZEXCH" with fields MANDT, BUDAT, WAERS, KURSF. This is a maintainable table .... (ie) user can keep on adding the Exchange rates for the currencies for a particular date....
My table contents are:
MANDT BUDAT      WAERS   KURSF      
080   30.08.2002 USD        50.00000
080   30.01.2006 USD        40.00000
080   09.03.2006 USD        30.00000
Now if i run the report with Budat = 31.12.2002 it should pick up line item 1.
similarly if i run the report with Budat = 31.03.2006 it should pick up line item 2.
similarly if i run the report with Budat = 31.05.2006 it should pick up line item 3.
How could i do this????
Expecting your answers
thanks in advance...
Cheers
R.Kripa.

Hi,
  Use the following code snippet, you need to have the 'exchange rate type' as one of the fields in order to distiguish between different rate types, the standard rate type used in most of the cases is 'M',
select KURSF from zexch
        into zexch-KURSF
        up to 1 rows
        where kurst = 'M'
        and   fcurr = 'USD'
        and   tcurr = 'INR'
        and   BUDAT >= Date given in the selection.
        endselect.
Hope this helps,
Rgds,

Similar Messages

  • How to get Exchange rate from SO to specific Document type in PO

    Dear Experts,
    I have an Intercompany scenario in which I need to have Exchange rate used in Sales Order into a specific document type in a PO. Is it possible to achieve this?
    Thanks
    Manish

    Hi ;
    To my knowladge , you have two options.
    1- Fix exchange rate in PO
    2- You can get exchange rate in Miro based on invoiced date.
    Another ways will be development ...
    Regards.
    M.Ozgur Unal

  • Exchange rate basing on the duedate or document date

    Hi Friends,
    While doing postings, system is always taking due date as date for exchange rate conversion instead of baseline date/
    Example :
    Contract cashflow : 100USD - 01/09/2010 to 30/09/2010 - due date 01/09/2010 (exchange rate : 45.50 on 01/09/10)
                                      100USD - 01/10/2010 to 31/10/2010 - due date 01/10/2010 (exchange rate: 45.00 on 01/10/10)
    When i am doing RERAPP on 01/10/10 for september cashflow line item, system is taking exchange rate as 45.50 instead of 45.00. My query is what is the base date for exchange rate determination whether it is due date for a line item in a contract or posting date while doing RERAPP.
    If anybody workks on this scenario, provide some idea.
    Srini

    Hi Srinivas,
    let me know how you are taking currency translation rate, there are two possobilites
    1. Rormula in condition record
    2.Currency translation rule.
    If 1. one u have to wirte a badi to pick up condition start data or calcution start date.
    if 2. while creation of  Currency transation rule, you have to select procedure as Calculation start data as translation date.
    Regards
    Jilani

  • How to get these substrings based on the string entered

    Hi friends
    i want the substring entered in the string
    the string is something like this: 1234,3653,7684,3254,8777,987,234
    now i want
    the substrings between commas
    can some one help me with it pls
    in the first substring i need 1234
    in the second i need 3653...
    so on till the end..
    what ever the string be until the last one
    pls help

    Hi,
    You can do something like this:
    SELECT     txt
    ,     REGEXP_SUBSTR (txt, '[^,]+', 1, 1)     AS part_1
    ,     REGEXP_SUBSTR (txt, '[^,]+', 1, 2)     AS part_2
    ,     REGEXP_SUBSTR (txt, '[^,]+', 1, 3)     AS part_3
    FROM     table_x
    ;If there are fewer than n parts, then the technique above will not raise an error; it will just return NULL for part_n.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain how you get those results from that data.
    What do you want if the input is like this"
    {code}
    'foo,,bar'
    {code}
    ? Do you want to consider this as 2 parts ('bar' is the 2nd) or a s 3 (the 2nd is NULL, and 'bar' is the 3rd)? Include examples in your sample data and results.
    Always say what version of Oracle you're using.

  • How to get  day if we give the date

    i want the day for tghis date(16-march-2006), how to get that
    select to_char(sysdate,'day') from dual,it gives the correct day but select to_char('16-mar-06','day') from dual it gives error,
    so how to get that day

    Hi
    First convert it '16-MAR-06' to date then give format
    select to_char(to_date('16-MAR-06','DD-MON-YY'),'day') from dual;
    TO_CHAR(T
    thursday
    Khuram Siddiqui
    [email protected]

  • How to get rid of zeros for the data which has been extracted with open hub

    Hi all
    I am trying to extract data from the cube thru an open hub, but the data which i have extracted, for a cost center i am able to see '0's which is expected to be an empty space, even in cube there is an empty space.
    Can anyone suggest me quickly, points will be rewarded
    thanks
    preethi......

    In the transformation of the Open Hub,use BAPI....
    Create a target structure with all fields as type characters,move data from source structure to target structure in the BAPI using ABAP codes.When there is no value in character fields it would not show up 0's.

  • How to get invoice price based on order date or delivery date?

    Hi,
    Our system is configured to create invoices with pricing based on date of delivery.
    But we have a number of customers who get pricing based on date of order.
    Right now, people are manually changing the price and then generating the invoice.
    Is it possible to:
    1) add a ZZ field in the customer master that indicates which pricing date to use?
    2) have SAP generate the invoice with the correct pricing date based on this selection?
    Thx.
    Andy Jacobs

    Hi Andrew,
    We do have the exact same problem.
    One solution would be to create a new order type. Within that new type you can specify what date should be proposed as pricing date by SAP.
    Unfourtantely, here we are not able to add a new type. Does anyone know how this can be solved in another way?
    Thanks,
    Tim

  • Tell me to get exchange rate on system date?

    hi all,
    plz tell me how to get exchange rate on current date or system date.I am using this query:
    select * from tcurr into table itab where  FCURR = final_tab-waers and TCURR = 'INR' .
    loop at itab where GDATU = sy-datum.
    l_rate  = itab-UKURS.
    endloop.
    In table tcurr format of date is different then that of system adate
    suppose system date is 27.06.2006 but it store like this
           79939372. pl tell me how to convert that date?
    thanx in advance.
    regards,
    hemlata

    Hi Hemlata,
    Its simple use write statement..
    Write:itab-GDATU. * if u want to dipslay on output
    write to var. * if u want to store in variable..
    <b>WRITE</b> will automatically convert to date format..
    Regards,
    sridhar

  • How to enter exchange rate on the fly in the forex revaluation screen?

    Hi,
    Can i enter an exchange rate on the fly and overwrite the valuation area exchange rate in the FAGL_FC_VAL forex revaluation screen which will be used to revalue the open forex documents?

    Hi Raja,
    You can do it. Not at all a problem.
    In anycase it is one of the steps to Update the Exchange Rate before running the Foreign Currency Valuation.
    If you want to Maintain a different Exchange Rate for only Foreign Currency Evaluation.
    Create a userdefined Exchange Rate Type with your own Currency Exchange Rate.
    Create your own Valuation Method in OB58 and set your Exchange Rate type in this Valuation Method.
    While Running Foreign Currency Valuation select your Valuation method.
    It will solve your problem
    Regards
    Andrew

  • How system calculate Exchange Rate for material?

    I have some doubt how system calculate exchange rate for material when doing GR.
    For example, standard price of material is 0.01 USD per ea. PO is created in foreign currency (THB) with qty: 40,000 ea (THB 2,852.00)
    Actually when I do GR ea then accounting doc is:
    Dr. Inventory 400 USD (12,800 THB)
       Cr. GR/IR    88.64- USD (2,852.00- THB)
       Cr. Variant 311.36- USD (9,948.00- THB)
    for 2nd and 3rd line item, exchange rate M (THB -> USD) is 0.03108 which is correct.
    Could anyone advise where system get exchange rate for 1st line item?

    Hi
    First of all, as mentioned by you, the exchange rate for Item 2 and 3 is not 0.03108.. It is as below, based on the figures given by you...
    Dr. Inventory 400 USD (12,800 THB)........ Exch rate is 0.03125
    Cr. GR/IR 88.64- USD (2,852.00- THB)....... Exch rate is 0.03108
    Cr. Variant 311.36- USD (9,948.00- THB).... Exch rate is 0.0313
    I guess the item 3 is just a derivation from Items 1 and 2.. The Price diff results as a difference between std cost and purchase price...
    I believe, the exchange rate would have been 0.03125 at the time of GR... You need to check this in your system... For sure, it uses  exch rate type M in the standard... Check if 0.03125 (USD -> THB) or 32 THB -> USD exists in your system at all
    Item 2 is based on your PO negotiated rate...
    Regards
    Ajay M

  • Exchange rate diff at the time of GR

    Hi All,
    l have an issue which is, when l fix the exchange rate in my PO, at the point of goods receipt, differences are generated. that is,
    at date 01.02.09, exchange rate on PO is fixed.
    at date 11.02.09, goods receipt is done and when the accounting document is checked
    it post a difference between the fixed PO rate and what's maintained on the exchange rate table
    to the forex account. So l get this:
    Dr Stock account
    Dr Price diff account
    Cr GI/IR account
    Cr Forex account
    Note: that IV is not yet carried out here at all. Price control is moving average.
    My understanding is that differences arise between the time of GR and IV, if PO is not fixed.
    Regards

    Hi
    If you fix the exchange rate indicator in purchase order, and doing GR (different exchange rate has been maintianed in OB08), then you inventory will be valuated at PO exchange rate. Difference will go to gain/loss on exchange rate (foreign currency exchange rate account). Same will be negated by price difference account.
    You have one more setting for IV exchange rate in MM - LIV - incoming invoice - how exchange rate difference are treated. Here you maintain the settings for GR and IR exchange rate differences.
    Checking the exchange rate fix in PO has nothing to do with GR and IR rate differences as through out the process the rate is constant.
    Thanks

  • OBA1 exchange rate maintenance for the new accounts

    Dear All,
    The following three bank G/L accounts 1833280, 1833285 and 1833288 have been created in India Charts of accounts IN01 and extended to company AE10.
    The G/L accounts can now be used in AE10.
    Now tell me how can I make OBA1 exchange rate maintenance for the new accounts.
    Please share your valuable opinions with me.
    Thanks a lot in advance!!

    Hi,
    The relevant transaction in OBA1 for the bank accounts is KDF.
    Double click on KDF, a new screen will open up, where you do the following:
    You enter the bank GL account here.  If the account is to be differently handled at the level of the currency and currency type then you can further limit the exchange rate difference based on these 2 parameters.
    Once you have entered the bank GL, save and then double click the bank GL account.  A new screen will open up where you define accounts for the following:
    The accounts below will carry the forex gain loss that you when you clear foreign currency transactions.
    1.  Exchange Rate difference realised:
    Loss                 XXXXXX
    Gain                 YYYYY
    The accounts below will carry the difference while valuating you open items for
    2.  Valuation:
    Val.loss 1           XXXXXX
    Val.gain 1           YYYYY
    Bal.sheet adj.1      ZZZZZZ
    The accounts below will carry transaltion losses.
    3.  Translation
    Loss
    Bal.sheet adj.loss
    Gain
    Bal.sheet adj.gain
    Cheers...

  • How to shynchronizes exchange rate

    hi gurus,
    we need to shynchronizes exchange rate between Central System and Sub System.
    how to transfer exchange rate from Central System to Sub System using IDOC / ALE
    thanks for help
    rgds
    echo

    Hi Prashanthi,
                 I just came across the same problem that you happend to cross thru, If u can please share your tots on how u distributed Exchange rate it wlll be very helpuful, I have done the following configurations;
    1. Partner profile configs, Outbound message type give as CURR_A ( Created this message type in WE81? ), and basic type as T_CURR01, correct if my configurations for partner profile are wrong,In the parnter profile i have give message type as CURR_A .
    2. In BD64 i distributed the logical system, added the method exchangerate.getdetail
    3. Then i used RFALEX00 report to distribute it.
    But cudnt get the idocs in WE05...
    Please let me know the reason for not posting the idoc..all your help will be highly appreciated..Hoping you wud reply.

  • FM exchange rate differences during the invoice posting

    Hello Experts,
    We are working in a public project and we are facing the following:
    Due to the exchange rate an invoice is bigger in local amount (EUR) than the PO. In other project, we were moving that difference to another P&L account out of budget. However, here in this project, due to the legal requirements all amount of the budget has to consume budget. Could you help me to resolve this isssue please?
    Thanks in advance.
    Regards.
    Ahmed.

    Hi,
    Then you need to change the exchange rate based on your LIV posting date.
    Check in OB08 with exchange rate type "M" , as when ever the difference in PO and Invoice you need to ask the finance team to change exchange rate  as per date on which you receive the Invoice so the posting is done as per the vendor invoice exchange rate.
    Do refer the below KBA which explains you in detail how the exchange rate works during MIRO.
    KBA: 1700942 - Exchange rate cannot be changed as changing the posting date during logistics invoice verification

  • How to change exchange rate type for specific pricing condition type

    Hello every one,
    I have a requirement for billing ie VF01.
    currently  all the exchange rate are being calculated with exchange rate type 'M' by default.
    but now client want it should calculate exchange rate with type 'E' for two pricing condition type for all others it should calculate with type 'M'
    Please any body can help me with the exit and code which i can use.
    I have checked exits SDVFX008.
    but how to change exchange rate with type 'E' only for two conditions.
    as changing exchange rate at document header will change exchange rate for all condition type.

    You need to assign KOMK-KURST = 'E', for those two condition types. If it had been item number specific, you could have used USEREXIT_PRICING_PREPARE_TKOMK(RV60AFZZ).
    Do one thing, put a breakpoint on FM 'PRICING' and then do selective runtime analysis.
    Check whether any user exit/BADI/ explicit enhancement are available when condition types are processed in a loop. If nothing is available, try implicit enhancement.
    Link to refer for selective runtime analysis - Runtime Analysis for VOFM
    Also try with VOFM requirements ( not sure whether changing KOMK-KURST is permissable in requirement as normally  we only set sy-subrc values to suppress/allow condition types ). Don't forget to assign requirements against condition types in pricing procedure.

Maybe you are looking for