Currency translation code at transformations

hi
i ahve written this code for source currency to target currency usd based on system date. please and let me know any modifications nedd
DATA : w_to_amt     TYPE /bi0/oiamount,
           w_from_curr  TYPE /bi0/oicurrency,
           calmonth type sy-datum.
    CONSTANTS: c_bs     TYPE tcurv-kurst VALUE 'BS'  ,
               c_usd    TYPE tcurr-tcurr VALUE 'USD' .
      CALL FUNCTION 'CONVERT_FOREIGN_TO_FOREIGN_CUR'
        EXPORTING
          date             = sy-datum
          type_of_rate     = c_bs
          from_amount      = SOURCE_FIELDS-/BIC/ZSR_TVSTV
          from_currency    = SOURCE_FIELDS-LOC_CURRCY
          to_currency      = c_usd
          local_currency   = c_usd
        IMPORTING
          to_amount        = w_to_amt
        EXCEPTIONS
          no_rate_found    = 1
          overflow         = 2
          no_factors_found = 3
          no_spread_found  = 4
          derived_2_times  = 5
          OTHERS           = 6.
      IF sy-subrc EQ 0.
      RESULT = w_to_amt.
      endif.

hi Suneel,
the code looks fine, since your local_currency same as to_currency (USD), using one of following function module may give same result.
CONVERT_FOREIGN_TO_FOREIGN_CUR you used is actually combination of these 2 function modules :
*first convert fcrom FROM_CURRENCY to LOCAL_CURRENCY
  CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
next convert fcrom LOCAL_CURRENCY to TO_CURRENCY
  CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
hope this helps.

Similar Messages

  • Currency Translation and Account Transformation Business Rules Together?

    Hi I am fresh out of college and working on a BPC project. I have this working but fear down the road problems.
    We are using currency translation and struggling with getting our NetIncome to write the correct value to the Current Year Retained Earnings when it converts from LC to USD; USD value did not match Net Income in P&L.
    Initially, we did the Account Transformation first in our default logic only on LC, then FX runs and creates the corresponding USD value which does not match the Net Income.
    It looks like the logic is correctly summing the YTD value but it converts using the AVG rate for the period (as opposed to multiplying each month by that monthu2019s average rate) creating a variance.
    Weu2019ve moved the account transformation to run after FX and have it also running on USD. This currently works but seems like a workaround, and as we configure the remaining CTA rules will we run into problems?
    Have any experts run into this issue before and what should I do?
    Edited by: MichaelUCF2010 on Oct 12, 2010 10:18 PM

    Hi, perhaps this is my lack of accounting knowledge rearing itself.
    RE = BS = End (if you take into account translation adjustment for Net Income and Additions/Substractions & OB)
    However If you are talking about the RE Reserve (and computing that correctly)
    RE Reserve
    OB - Opening
    Inc - Avg
    Sub - Avg
    NI - Avg [I assume it is this line you are talking about - please try the apply periodic option for avg]
    CTA - calculated
    CB - End

  • Currency Translation - Rolling Forecast

    Hi,
    Scenario is: We're doing 13 months rolling forecast which goes beyond one year. When currency translation happens, as part of default logic, it converts the records only for the year of forecast (selected in current view) and not beyond the current view year.
    For instance, if selected forecast period 2011.JAN, we expect user to input numbers from 2011.JAN through to 2012.JAN. System run the currency conversion package and translate records for periods 2011.JAN - 2011.DEC, and doesn't convert 2012.JAN because it is the next year (not selected in current view).
    Following is the code I'm using in the FX Conversion package:
    *RUN_PROGRAM CURR_CONVERSION
          CATEGORY     = %VERSION_SET% 
          CURRENCY = USD
          TID_RA = %TIME_SET%
          RATEENTITY = GLOBAL
          OTHER =  ENTITY=%CURRENCY_SET%
    *ENDRUN_PROGRAM
    Can you please suggest any resolution, i.e. how I can enhance the code to convert records whatever I get from runtime (template) and not just restricted to CV Year?
    Many thanks,
    Shabbar

    Hi Shabbar,
    While executing Currency translation, if you can select 13 months (say,from 2011.Jan to 2012.Jan ) in data manager parameter, Conversion executes for all 13 months as %TIME_SET% take value from your data manager prompt.
    If you are identify %TIME_SET% based on Year in Category dimension, you can try below code.
    *SELECT(%YEAR%, [YEAR], CATEGORY, "[ID]='FORECAST'")
    *SELECT(%TIMEMBR%,[ID],TIME,"[YEAR]=%YEAR%")
    *XDIM_MEMBERSET TIME=%TIMEMBR%,%YEAR+1%.JAN
    //standard currency translation code.
    If you are working on BPC NW 7.5, you can consider using TMVL(OFFSET,Time member) to define the scope.You can refer to http://help.sap.com/saphelp_bpc75_nw/helpdata/en/c8/d961d0dbfd4745af4b667279573702/content.htm for more details on TMVL.
    Pls post here if you require further clarification.
    Regards,
    Kranthi

  • About currency translation

    Hello Gurus,
    when source key figure currency is fixed, and target key figure currency is variable, there is no currency translation in the transformation rule. so how can I do currency translation?
    when source key figure currency is variable, and target key figure currency is variable, approach for currency translation is CT or  assignment possible . what does  "assignment possible" mean?
    Many thanks,
    Frank

    In both the cases you can do currency translation at reporting level...
    Use the transaction RSCUR to create a currency translation type which can be used at reporting level..
    In the transaction RSCUR you can mention if your target currency is fixed or variable

  • Currency translation routine - pls correct ABAP code

    Hi,
    I am trying to implement a scenario for currency conversion at the transformation level.(i am using BI 7.0)
    My source data is flat file.
    My scenario here is like
    I have 2 masters - country & supplier.
    I added 0loc_currcy as an attribute to the country.
    The master data of country is as below:
    Cid    cname         local currency
    C1     INDIA         INR
    C2     SWISS         CHF
    C3     America       USD
    For supplier master data is:
    supp id  Sname
    S1         raghu
    S2         tej
    S3         harish
    S4         reddy
    I defined 2 key figures one Zprice1 & Zprice2.
    Zprice1 has currency type 0DOC_CURRCY
    Zprice2 has currency type 0LOC_CURRCY
    In the PSA the data is as below:
    cid    sid     0calday         price1         doc_curr
    C1     S1     01.01.2007    300,00        INR
    C1     S2     01.02.2007    400,00        CHF
    C1     S3     03.01.2007    350,00        USD
    C1     S4     15.04.2007    450,00        EUR
    C2     S1     31.05.2007    600,00        INR
    C2     S2     21.06.2007    250,00        CHF
    C2     S3     01.01.2007    900,00        USD
    C2     S4     01.02.2007    1.300,00      EUR
    C3     S1     03.01.2007    1.250,00      INR
    C3     S2     15.04.2007    500,00        CHF
    C3     S3     31.05.2007    50,00         USD
    C3     S4     21.06.2007    300,00        EUR
    I am expecting my data in the cube to be as below:
    cid  sid  0calday     price1 doc_curr   price2    loc_curr
    C1  S2  01.02.2007 400,00   CHF      350,00    INR
    (bcoz c1->INR)
    C3  S1  03.01.2007 1.250,00 INR       25,00     USD
    (bcoz c3->USD)
    Based on cid the loc_curr value(amount & currency after conversion) should be displayed.
    in the transformation i assigned
    /BIC/zprice1 -> zprice1
    DOC_CURRCY -> zprice1
    /BIC/zprice1 -> zprice2
    DOC_CURRCY -> zprice2
    For zprice2 i selected rule details.
    In IOassignment of source fields i assigned ZPRICE1
    and 0DOC_CURRCY.
    In currency tab of rule details now it is like :
    Target Currency                 0LOC_CURRCY
    Currency                           from source
    Source Currency                DOC_CURRCY
    Now in rule type i selected routine and inserted code shown below:
    data: ZResult_Val type f,
    CALMONTH type rsgeneral-chavl .
    CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
      EXPORTING
        I_CTTNM                = 'ANYCALMON'
        I_AMOUNT              = SOURCE_FIELDS-/BIC/ZPRIC1
        I_SCUR                = SOURCE_FIELDS-DOC_CURRCY
        I_TCUR                = 'EUR'  --- (what should i give here for target currency should be taken based on cid)
        I_TIME_IOBJVL         = CALMONTH
      I_SCUR_IOBJVL         =
      I_TCUR_IOBJVL         =
      I_PERIV               =
        I_RATE                = 'M'
      I_VDATE               =
      IR_MSG                =
      I_MSG_TYPES           =
    IMPORTING
        E_AMOUNT              = ZResult_Val
        E_RATE                = 'M'
        E_SCUR                = SOURCE_FIELDS-DOC_CURRCY
        E_TCUR                = 'EUR'
    EXCEPTIONS
      SCUR_NOT_FOUND        = 1
      TCUR_NOT_FOUND        = 2
      DATE_NOT_FOUND        = 3
      CTT_NOT_FOUND         = 4
      SCUR_CONFLICT         = 5
      TCUR_CONFLICT         = 6
      DATE_CONFLICT         = 7
      INVALID_SCUR          = 8
      INVALID_TCUR          = 9
      RATE_NOT_FOUND        = 10
      X_MESSAGE             = 11
      INHERITED_ERROR       = 12
      OTHERS                = 13
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    RESULT = ZResult_Val.
    I am new to ABAP coding; infact this is my first peace of code.
    Can any one tell me some tips of writing code-
    ->how to see all the syntax error at a time ; By clicking on check(ctrl+F2) i could see only the first syntax error.
    -> how to check what each perameter mean? like what does I_CTTNM in this function call 'RSW_CURRENCY_TRANSLATION'. mean?
    please help.
    Thanks,
    Raghu

    I have written a test program as below:
    <code>
    REPORT  ZCURRENCY.
    data: tgtcurr type /BI0/OILOC_CURRCY,
          ZResult_Val type F.
    select LOC_CURRCY into tgtcurr from /BIC/PZCONTRY1 where /BIC/ZCONTRY1 =
    'C3'.
    endselect.
    CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
        EXPORTING
        I_CTTNM = 'TEJ5' --currency trans type defined in RSCUR
        I_AMOUNT = 10
        I_SCUR = 'INR'
        I_TCUR = tgtcurr
    *I_TIME_IOBJVL = CALMONTH
        IMPORTING
        E_AMOUNT = ZResult_Val
        E_TCUR = tgtcurr.
        write: ZResult_Val
    </code>
    It is working fine
    But the following code is not working for my scenario can some debug pls:
    <code>
    data: ZResult_Val type f,
    ZSrc_val type f,
    locvar type /BI0/OILOC_CURRCY.
    Zsrc_val = SOURCE_FIELDS_RULE-/BIC/ZPRIC1.
    select LOC_CURRCY into locvar from /BIC/PZCONTRY1 where /BIC/ZCONTRY1 =
    SOURCE_FIELDS_RULE-/BIC/ZCONTRY1.
    endselect.
    CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
    EXPORTING
    I_CTTNM = 'TEJ5'
    I_AMOUNT = 10
    I_SCUR = 'INR'
    I_TCUR = locvar
    IMPORTING
    E_AMOUNT = ZResult_Val
    E_TCUR = locvar
    RESULT = ZResult_Val.
    </code>

  • Currency translation at the time of transformation

    Hi All,
    Can any body please explain me the procedure for currency translation at the time of transformation with some example.
    Thanks and Regards,
    Prashant

    Hi Prashant,
    take a look:
    Currency Translation During Transformaiton
    http://help.sap.com/saphelp_nw04s/helpdata/en/de/6372426f0f9041e10000000a1550b0/frameset.htm
    How Tou2026 Routines within Transformations
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19
    Regards
    Andreas

  • Transformation Currency translation error

    Hi,
    I'm afraid I have a problem while implementing transformation from 3.5 to 7.0.
    source - 0net value  unit 0doc_currcy target: 0incordval unit 0stat_curr.
    the sysetm saw the currency translation (from 0doc_curry to 0stat_curr), but not the conversion category, I get no F4-help for this field (msg RSTRAN170 Fields of the rule invalid for a conversion.
    When I would like to change the conversion category, I can see all I created in 3.5 do I have to implement them also or do I have to do some other regarding the error message?
    could somebody help me please?
    Kind Regards Manuela

    Can you please check that 0doc_curry and 0stat_curr are the reference characteristics of 0CURRENCY
    I think these two currencies are not referencing to 0CURRENCY. That is why you are getting the error.
    Thanks,
    DK
    (Giving points is another way to say thanks )

  • Currency translation at transformations

    Hi
    I am getting one kf (internal wage cost) from 5 deffirent global systems. 5 deffireny curriencies are there. i want to laod into target with usd only based on calday i need to convery exchange rate from source to target.
    i heared rscur is ther to create currency
    ple let me know what steps what i need take

    Hi Suneel,
    It would be better if you change the Currencies at Report level to USD.This will be easy way to achieve.
    Create a Currency Translation by using RSCUR t-code.
    It will be for Calday for any given currency & Target curr will be always USD.
    And use this in the Properties of that Key figure in Currency Conversion Tab.
    I think this should work........!
    Best Regards,
    VNK.

  • Currency Translation in Planning sequence with variable for target currency

    Hello ,
    i have a requirement, the cube contains multiple data in the Group Currency for multiple company codes. & I want to convert these amounts to another KF as local currency using planning sequence only (not using transformation, as the users want to do this when they require.)
    For this, i defined a Aggr level , filter & Planning function with Currency translation selecting the source field as AMOUNT_GC & target field as AMOUNT_LC using the Currency Translation type ZCTGCLC.
    The target currency is not know beforehand, as it depends on the company code of each records that comes in.
    Hence, Currency translation type uses  a Customer exit variable 'Z_R_0026' for target currency.
    This is customer exit variable which searches the Master data table of the Company code & replies back with the local currency of that particular company code (derived value from the company code variable also in teh filter).
    However, when i execute this planning sequence, it gives me an error saying, "no value found for variable 'Z_R_0026'
    1. when edit the CMOD code, to return only say "EUR" the planning sequence runs fine.However when i use this select statement to fetch the corresponding value of the currency using the company code reference from the company code master data table, it gives the above error. it seems to be a problem with the select statement.
    below is the code for that exit
    when 'Z_R_0026'.
         data: l_curr type /BI0/OICURRENCY.
         IF i_step = 2.
           LOOP AT i_t_var_range INTO loc_var_range
                              WHERE vnam = 'Z_S_0003'. " Company Code Single
             CLEAR l_s_range.
        Filling Currency Key from Company Code
             select single currency
             from /bi0/pcomp_code
             into l_curr
             where comp_code = loc_var_range-low
             and objvers = 'A'.
             if sy-subrc = 0.
               l_s_range-low = l_curr.
             else.
               l_s_range-low      = 'ABC'.
             endif.
             l_s_range-opt      = 'EQ'.
             l_s_range-sign     = 'I'.
             APPEND l_s_range TO e_t_range.
             clear l_s_range.
             EXIT.
           ENDLOOP.
         ENDIF.
    2. there is a option of using infoobject for target currency in the RSCUR itself, however, when i try to input the 0COMP_CODE for finding the attribute currency from this infoobject, it doesnt accept.
    has anyone tried this earlier ?
    Any help/suggestions , guys, pls?
    Thanks
    John

    Hi Praveen ,
    Thanks for that.
    I have a Question.
    If RSCUR were to only accept a Date InfoObject , it would be placed under a differnt heading.
    The Tab is "Currrency"  & the sub-Tab is "Target Currency"
    so i guess, it should accept other infoObjects as well.
    Moreover, the help on that InfoObject buttons says
    "Specification of an InfoObject (Characteristic) in which a currency
    attribute is stored in InfoObject maintenance. At runtime, the
    associated currency attribute is determined using the characteristic
    value and this is interpreted as source or target currency."
    & i have already defined 0currency as a attribute of 0comp_code. so this should work ideally.
    almost similiar CMOD code i have used for other too, but i dont know why only this one is getting struck.
    any help, pls.
    Thanks
    John
    Edited by: John Lewis on Apr 17, 2009 3:24 PM
    Edited by: John Lewis on Apr 17, 2009 3:25 PM

  • Currency Translation in InfoCube

    Hello,
    I have my Master Data InfoObject which contains the currency (USD, EUR, INR) and the currency values are stored in a DSO. The InfoObject as well as the DSO have a field (CARR_ID) which is common to both.
    I wish to unite the Master Data InfoObject as well as the DSO in an InfoCube and perform Curency Translations so that I see the source currencies as well as a fixed target currency and their respective values in the BeX Report. This I wish to implement with ABAP code in the Transformation Routine.
    Do I need to use an InfoSource or is there any other method to do this.
    Please advise. POINTS WILL DULY BE AWARDED!!!
    Thanks,
    SD

    Dear Sebastian D'Souza ,
    I think for your case there is no need for IS. Please go through these for more information
    Currency translation
    Currency translation allows you to translate key figures with currency field that are present in the source system with different currencies to a standard currency in the BW system,
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/076f3b6c980c3be10000000a11402f/frameset.htm
    Currency transaltion feautures
    http://help.sap.com/saphelp_nw04s/helpdata/en/ec/076f3b6c980c3be10000000a11402f/frameset.htm
    Procedure for Currency conversion*
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/076f3b6c980c3be10000000a11402f/frameset.htm
    Trnsactions for Doing Currency conversion
    If you are using SAP Netweaver 2004s and BI 7.0, use Tcode RSCUR
    RRC1 Create Currency Conversion Type
    RRC2 Edit Currency Conversion Type
    RRC3 Display Currency Translation Type
    Transaction for maintaining currency translation is OBBS and for exchange rates OB08
    Step by step procedure (sample with example)
    1. try to go to RSCUR:
    2. create or modify your currency translation type
    3. exchange rate type could be "M" (standard) and choose dynamic exchange rate determination
    4. in Currency Tab set: source currency from record, target is USD
    5. and now TIME Tab: use Variable Time reference: "END of MONTH" with standard InfoObject "0CALMONTH" or "END of PERIOD" with Standard InfoObject "0FISCPER"
    Attention: the InfoObject 0CALMONTH or 0FISCPER has to be in your Cube. Otherwise choose special InfoObject "ZYOUROBJECT" which has the date (like 20.03.2008)
    its better to choose "Beginning of Period", because your table in OB08 has to be filled with values starting 01.MM.YYYY
    (like 01.03.2008) is exchange rate = 28
    01.04.2008 is exchange rate = 29 etc. not to think about how many days are in Februar, March, April etc.
    Currency Transalation in Bex
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a682de07211d2acb80000e829fbfe/content.htm
    Ad Hoc Currency Translation in BEx
    Take a look at the blog for currency conversion overview.
    /people/rasim.manavoglu/blog/2007/04/30/currency-currency-currency
    *OSS Notes on Currency Conversion
    oss note 168334 - Currency translation with variable time reference
    Hope it helps
    Revert back to me if you have further queries
    Regards
    Bala

  • Currency Translation from local to group currency in AP /AR

    Hi Gurus,
             I have reporting requiremtents where in i need to show KF;s in local and group currency. I am using standard extractor AP_4 and AR_4. These extractors does not bring KF's in Group currency but only in local and document currency.
    Can anyone tell me what is the best way to go about carrying out the currency translation from local to glocal currency for AP and AR.
    Thanks in advance and yeah points guranteed for helpful answers...
    Cheers..
    Sam

    I take it you mean the extra currency in the company code config (ie group reporting)
    Just unhide the fields DMBE2 and HWAE2 from the extract structure and allocate a new infoobject to them - then add to eith your transformation or transfer rules/update rules and add to the cube

  • Currency Translation at Infocube Level

    Hi All,
    Currency Translation is possible at Infocube Level ? I am working on BI 7.0.
    I am working on Infocube 0IC_C03 where i have 2 key figures. 1) 0ISSVS_VAL 2) 0RECVS_VAL. I am getting value in USD,DKK & EUR. I have a requirement to add more 2 keyfigures 1) ZISSVS_VAL (USD) 2) ZRECVS_VAL(USD) where both my keyfigures will transfer all the values in USD.
    Here i see a problem is 0ISSVS_VAL & 0RECVS_VAL is getting calculated in start routine  and getting stored in 0IC_C03 info cube now i want 2 more keyfigures  to be added in Infocube and should get calculated from 0ISSVS_VAL & 0RECVS_VAL. i think it may be possible by END ROUTINE ? Correct me if i am wrong. if it is correct then I haven't worked on End Routine before. if anyone can let me know the ABAP for the same, i really appreciate..
    Regards,
    Komik Shah

    Hi Sudeep,
    Thanks for your response. Can you send me some ABAP code as from where to start ?
    Regards,
    Komik Shah

  • Currency Translation feature in BEx reports

    Hi colleagues,
    As you know, when creating queries, you can right click a given key figure and from Currency Translation frame you can select a customized Currency Conversion Key so OLAP engine displays the "converted" value of such Key figure. Standard TCURR table is used for the conversion.
    Also, RRC1 txn. code can be used to create Currency Translation Keys to be used in query designer as described before.
    I have created a "currency translation key" (let's name it ZTAXILOC) in RRC1.
    I have changed my query in the query designer to use this "customized Currency Conversion Key (ZTAXILOC)". My query uses an InfoSet as "infoprovider".
    However, when executing query on BEx Analyzer, I receive error message "Cannot apply currency translation type ZTAXILOC in infocube ZTXA04LA3", where ZTXA04LA3 is the name of my infoset that feeds my query.
    The Diagnosis is: "You tried to translate a query element with the currency translation type ZTAXILOC. The translation type ZTAXILOC, however, has VARIABLE TIME REFERENCE, relevant to "DH Document Date" characteristic, which is not available in ZTXA04LA3 infoprovider....".
    The "DH Document Date" characteristic exists in the ZTXA04LA3 infoset, but technical name changes since for Infosets, BW system dynamically assigns a technical name for each element in the join and it differs from technical in source ODS.
    My question is:
    Can I use custom "currency translation keys" in query designer if my query uses an infoset as infoprovider? or is custom "currency translation key" just allowed in queries that use an ODS/InfoCube as infoprovider? or should I provide RRC1 with technical name for "DH Document Date" existing on ZTXA04LA3 infoset?
    Please advise.
    Thank you.
    Mario Vallejo.

    We are running into similar currrency conversion issues on an infoset.  We have an existing currency conversion key created using RRC1.  The existing currency key is set up as follows: 
    TO_USD     Convert to USD (Billing)
    Exchange Rate Type = Standard translation at average rate
    Dynamic Exchange Rate Determination = Yes
    Inverse Exchange Rate = No
    Source Currency from Data Record = Yes
    InfoObject for Determining the Source Currency = No
    Selection of Target Currency with Translation = No
    Fixed Target Currency = Yes = USD
    InfoObject for Determining Target Currency = No
    Fixed Time Reference = No
    Variable Time Reference = Yes = To the Exact Day = Special InfoObject (0BILL_DATE)
    Query Key Date = No
    We convert sales amounts to USD using this conversion key on existing cubes.  When trying to apply the same conversion key to the new infoset, we received the following error: 
    Diagnosis:You tried to translate a query element with the currency translation type TO_USD. The translation type TO_USD, however, has variable time reference or variable target currency relevant to characteristic Billing doc. date. Characteristic Billing doc. date is also not available in InfoProvider ZBILLCOST and it references either none or more than one characteristic () of the InfoProvider for Billing doc. date, or Billing doc. date is not a base characteristic.
    We have tried to steps in the response to this thread and continue to receive the error.  
    In Step 1, the only thing that we think we can change is the info object text in the infoset, not the technical name, is this correct?
    In Step 2 & Step 3, we have never used variables for currency conversion.  We create the currency key using the RRC1 and select the info object for conversion.  We did try creating a new currency key in RRC1 and tried to find the newly named (text) info-object for billing date on the infoset, but it wasn't listed as an option under special info-object.  Do you have more information on how to create the variable in query designer and how it is used and how to assign to the currency translation?

  • Currency Translation based on Last Day of the Acquistion month

    Dear all,
                Request to help me in understanding how we can calculate the currency translation rate as per the last day if the acquistion month..
    For Example if the  Acquistion date : 01/01/2008 (mm/dd/yyyy) the currency translation should happend based on the rate maintained as on 31/01/2008.
    Thanks
    Pavan Kumar Prakhya

    First, you will need to convert the actual acquisition date to the end date of the Fiscal Period. This can be done by using two separate Function Modules. First, get the actual Fiscal Period by entering the date and Fiscal Year Variant into the DATE_TO_PERIOD_CONVERT Function Module. Use the Fiscal Year and Fiscal Period from this and determine the end date of the Fiscal Period by using Function Module LAST_DAY_IN_PERIOD_GET with Fiscal Year, Fiscal Period and Fiscal Year Variant as your inputs.
    For the conversion, use the Function Module CONVERT_TO_LOCAL_CURRENCY. The inputs for this would be the last date of the Fiscal Period, the amount to be converted, the from currency code, the to currency code, blank in rate, AS01 in type of rate and X in read TCURR. This assumes, however, that month-end rates (rate type = AS01) have been loaded into your source system and these rates have been transferred to your BW environment.

  • Currency Translation for Calculated Key figures

    Hello Friends I want to use the Currency Translation for Calculated Key figures.
    But when I go to Query and go to conversion tab it is always greyed out. Does that mean we can set the fixed conversion type for calculated key figures. like ZSAD Total debit - credit -flow value.
    What is the way to do fixed currency translation in query for calculated key figures.
    All the below is done now just want to specify this in query but I can'nt since it is greyed out.
    All the below is done
    I have created a Currency Translation Type " FiscperConversion" "ZVHGR" now this has Exchange Rate Type from Variable "ZVARN" (Which is a variable single value manual input on 0RTYPE Infoobject for exchange rate.)
    2. Now Currency Tab: Target Currency is selected from Variable placed in the Report. ZRPVAR.
    3. Now the Variable Time Reference is used. Standard Infoobject 0FISCPER
    which is beginning of period.

    Hi soniya
    Your calculated KF is result of some calculation ...so system will not allow u to do any translation on it...to get CT on CKF you should do it on base key figure...still if you wish to do then you can create a formula variable having processing type a customer exit...write code in cmod to rad exchange rate and multiply ur CKF by this formula variable....
    Thanks
    Tripple k

Maybe you are looking for

  • How do I select a autofill selection on safari on ipad 2

    Ok, I set up my ipad2 safari browser to remember my multiple Comcast email accounts and their passwords. Now when I open my Comcast email window it brings up my first selection. Ok, I can deal with that. I just clear the address field and start typin

  • TS1500 How to transfer edited pictures from iPad to Windows 7

    Hi, This seems pretty obvious, but I couldn't get the answer with google. I imported pictures with the camera kit, then opened the photo gallery, click on edit for many pictures to do mostly crops and save. Now, I want to transfer all the imported pi

  • Sales order Partial confirmation

    Hi, I have an issue: 1. When i create the order with KIT material it is confirming the Partial quantity as There is no sufficient quantity. 2. When i create the order with Standard material it is NOT confirming the Partial Quantity even there is no s

  • Built in print button works but does not print full screen

    I am using Captivate 7 and trying to use the built in print widget to print off a slide in my project.  The problem I'm having is when I attempt to print off a slide using the button it only prints off half of the slide.  It seems as if it is not sca

  • Keyboard settings, MAJOR HELP NEEDED QUICK!!!

    Ok all my keyboard settings are messed up, I can't use my volume control and I can't changes the brightness, etc. (Basically all the command functions!?!?!) (new to macs) anyways F12 which is volume up control now opens my dashboard and so forth, ok