Currency conversion...urgent..please

Dear Friends
On my hand a field vbrp-netwr and I want to convert it related with ckmlcr-curtp. In other words IF ytab-waerk = s_curtp it keep same else I have to convert this netwr according to the s_curtp(ckmlcr-curtp).And I have to limit F4 choices of s_curtp.It shows possible selections but how can I define this areas will be seen .
Your helps will be highly appreciated.

Dear Friends I use 'CONVERT_TO_FOREIGN_CURRENCY' function but it doesn't works properly .Please let me know how it can assigned as a date vbrp-fbuda and how it can be assigned as a amount netwr and also other fields will be required..

Similar Messages

  • Currency Conversion- Urgent

    Hi
    Currency S_WAERS is in my selection screen.
    If i enter USD For S_waers the amount should convert to USD.
    If i leave blank it should  take local currency.
    Any one pls give me the coding for this.
    Thanks
    Kumar

    Hi,
    First, you should judge the amount's reference currency.
    I take other currency as example, that is, the amount stores as neither USD nor local currency.
    Functions will be used:
    get local currency's FM:
    1) LOCAL_CURRENCY_GET:
    (this function returns the local currency by sales organization and distribution chanel  or plant )
    CALL FUNCTION 'LOCAL_CURRENCY_GET'
                       EXPORTING
                            PI_VKORG                =  ??sales organization
                            PI_VTWEG                =  ?  distribution chanel
                            PI_WERKS                =  ?  Plant
                       IMPORTING
                            PE_HWAER                = ?  local currency
                       EXCEPTIONS
                            INVALID_INPUT           = 1
                            CURRENCY_NOT_DETERMINED = 2
                            OTHERS                  = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                   ENDIF.
    2) FMR3_GET_LOCAL_CURRENCY:
    (this function returns the local currency by company code)
    CALL FUNCTION 'FMR3_GET_LOCAL_CURRENCY'
         EXPORTING
              I_BUKRS       =  ? company code
         IMPORTING
              E_HWAER       =  ? local currency
            E_FIKRS       =
            E_KOKRS       =
       EXCEPTIONS
            INVALID_WAERS = 1
            WRONG_BUKRS   = 2
            OTHERS        = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    convert the amount to the target currency amont:
    CONVERT_TO_LOCAL_CURRENCY
    (this function returns the target amount)
          CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
               EXPORTING
                    DATE             = SY-DATUM
                    FOREIGN_AMOUNT     =   ? amount
                    FOREIGN_CURRENCY =   ? currency the amount stores
                    LOCAL_CURRENCY     =   ? target currency
               IMPORTING
                    LOCAL_AMOUNT         =    ? target amount
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Therefore, the logic is :
    if usd,  CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'   set the target currency as USD then you'll get  target amount
    if blank, call the  get local currency's FM  and CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' ,set the target currency as the local currency you get.
    Hope it can help you.
    regards
    vincent.

  • Error while report conversion (URGENT, PLEASE!!!)

    Hi, everyone
    I am converting Reports from 1.0 version to Developer 2000. I
    issue this statement:
    rwcon60.exe userid=als/ur2nice@sefindv stype=rexfile
    source=rep_describe_tables.rex dtype=rdffile dest=xx.rdf
    overwrite=yes
    and get back:
    REP-3300: Fatal error in the object store
    ROS--29: Error while opening or saving a document.
    I also appreciate any information on where I can find
    documentation related to the issue.
    Thanks a lot in advance,
    Eduardo

    hello,
    you might want to consult the documentation/release notes. it is
    most likely, that direct migration between those two versions is
    not supported.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Currency conversion variable

    I have a question regarding currency conversion variable.
    We have USD and CAD currencies in BW. I created a currency conversion variable in the properties of a key figure using average rate for current date (0MEANTODAY) and that variable was working fine for a long time. Now I noticed that variable got corrupted in BWD but still works in BWQ and BWP systems. I can see in BWD that variable has nothing in a Variable Represent box and Ready for Input checkbox is not checked. It doesn’t let me to fix or repair this variable. I cannot run any existing queries in BWD that use this variable. The error message is “Variable 0MEANTODAY is not permitted for the target currency”
    I created another currency conversion variable that works in BWD. I know it is ok to have multiple variables for a dimension, let’s say Cal Year/Month has a number of variables. I am not sure whether it is allowed to have multiple currency conversion variables and use different currency conversion variables in different queries. We have about 40 queries that use old currency conversion variable in BWP. If I’ll move new query with a new currency conversion variable to BWP, will it cause any problems for the existing reports that use an old variable? I want to know whether it will present a problem running 40 reports that are already in prod besides the fact it will be inconsistent for a while until I’ll switch all reports to use a new variable.
    I don’t know why that variable got corrupted.  A few weeks ago basis applied some patches in BWP and copied it to BWQ and BWD systems but I am not sure that caused a problem.
    I am relatively new to BW and will very much appreciate any help. I haven’t done transport to production for more that a week and cannot wait any more.
    Thanks,
    Polina
    BWD – DEV;  BWQ – QA  and BWP - Production

    I was dealing with this problem for more than a week. Finally I got help from SAP today. As it was explained to me, we were using very old version of BW front end (part of SAP GUI) which became incompatible with the new patches we applied in BWP and copied to BWQ and BWD. Basically, I was told to upgrade BW front end that caused problems especially in the Variable Wizard area.
    I repaired the currency conversion variable and move it to production. So far all reports run ok in production.
    If anybody will have problems with currency conversion variables, please check your front end version.
    Thanks.

  • Currency Conversion using RRC1-Urgent!!

    I have a requirement where I need to create a new currency conversion type. The query displays invoices posted in a particular period and their value in USD. The conversion rate gets posted somewhere in the middle of the period.The conversion happens such that the invoices posted before the date on which the rate was posted pick the previous period's rate, which those posted after that date use the new rate.
    Business requires all invoices falling in a period to use the rate posted in that period and to use the previous month's rate only when the new rate is not available. Can someone let me know what variable time ref. I am supposed to use to acheive this.Any kind of response will be greatly appreciated as this is pretty urgent.
    Thanks
    Akhila.

    Hi Akhila,
    I did not want to say, that the currency rates have to be maintained at a certain date. What I wanted to know is, if the <b>validity date</b> could be influenced as this would be the simpliest solution.
    Nevertheless, what you need is a currency conversion type, that has a variable time reference and is based on 0CALDAY (or another appropriate time InfoObject). Check the period definiton for the time reference. Maybe, "End Month" (respectively "End of Period", ...) could solve the problem. As you probably know, all this has to be done in transaction RRC2.
    If this does not help, it could be useful to describe the currency conversion type's definition as well as a description what validity date is stored in table TCURR.
    Kind regards,
    Stefan

  • Currency COnversion Error: RUN_LOGIC:Member LC not exist.......Please help

    Hi All,
    I am trying to run currency conversion and following is my script logic.
    *RUN_PROGRAM CURR_CONVERSION
          CATEGORY  = %CATEGORY_SET% 
          TID_RA = %TIME_SET%
          RATEENTITY = GLOBAL
          CURRENCY = %RPTCURRENCY_SET%
          OTHER = [ENTITY=%P_CC_SET%]
    *ENDRUN_PROGRAM
    I have also tried the following reading from other post
    *RUN_PROGRAM CURR_CONVERSION
          SELECT(%RptCurrency_SET%,"[ID]",RptCurrency,"[CURRENCY_TYPE]='R'")
          CATEGORY  = %CATEGORY_SET% 
          TID_RA = %TIME_SET%
          RATEENTITY = GLOBAL
          CURRENCY = %RptCurrency_SET% 
          OTHER = [ENTITY=%P_CC_SET%]
    *ENDRUN_PROGRAM
    My RPTCURRENCY dimension had following entries
    ID REPORTING CURRENCY_TYPE
    USD Y R
    EUR Y R
    LC       L
    Also my Currency Conversion data package selection is as follows:
    P_CC: ALL
    CATEGORY: ACTUAL
    RPTCURRENCY: ALL
    TIME: 2008.JAN
    Following is the error
    RUN_LOGIC:Member "LC" not exist
    Failed
    Application: PLANNING Package status: ERROR
    Please help.
    Thanks,
    Diksha.

    Hi All,
    My LGX files is as follow
    *RUN_PROGRAM CURR_CONVERSION
    SELECT(,[ID],RptCurrency,[CURRENCY_TYPE]='R' )
    CATEGORY =
    TID_RA =
    RATEENTITY = GLOBAL
    CURRENCY =
    OTHER = [ENTITY=]
    *ENDRUN_PROGRAM
    If I am not wrong it should have substituted vales for variable %RptCurrency_SET% to USD and EUR.
    Please let me know.
    Diksha.
    Edited by: Diksha Chopra on Dec 22, 2010 5:27 AM

  • URGENT:currency conversion from oracle financials 10.7 to 11i

    Hey all, Any one has the idea about the currency conversion from oracle financials 10.7 to 11i?? how to handle it?? do we need seperate code for currency conversion or is there any software that we can use??

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Shenba ([email protected]):
    Hey all, anyone has idea how the currency conversion is handled during upgrade of
    for oracle financials 10.7 to 11i. Is there any software available or do we need to do coding for currency conversion.
    Thanks<HR></BLOCKQUOTE>
    null

  • End routine for Currency conversion

    Hi,
    I have a requirement in which i have to convert sales and cost into three types of currency as GBP, INR and EUR in cube. i made 3 different fields for sales as well as for cost. But i am unable to write end routine for it.
    Can anyone please help me that how can i solve this problem.
    Roma

    Hi,
    In transformation itself you can do your currency conversion.
    http://help.sap.com/saphelp_nw70/helpdata/en/de/6372426f0f9041e10000000a1550b0/content.htm
    If you want to write a routine in to do conversion, you have to go for start routine instead of end routine.
    Thanks
    BVR

  • Currency Conversion  on Piticular date

    Dear All,
                   I have a requirement where in I have to convert the  Purchase Document Currency into USD on  PO Creation Date.
    I did the Currency Conversion in the BEX by creating a currency translation type using the tcode RSCUR. Following are the   settings I have Used for Conversion
    1. Exchange rate type  M
    2  target currency         USD.
    3 Time reference          Current Date.
    Problem is the values are not getting converted to USD on PO Creation date.
    Moreover I wanted the records whose values are more than 50,000 USD.
    Question.
    How to convert the currency from one to another on a Particular date.
    Date for each record is different from one another as stated above.
    Help me out in this case.
    Thank You All
    Regards
    Mahesh

    Dear Raj,
    Thank you for the reply.
    Iam using BI 7 and the tcode rrc1 is obselete in this version.
    So I went to the new tcode rscur and created the currency translation type with the settings below.
    1. Exchange rate type M
    2 Target currency USD.
    3 Time reference Current Date.
    Used this translation key in the Key figure properties for currency translation.
    I went to the source system and on context menu I transferred global settings.
    Do I need to maintain currency keys and exchange rates manually even after transferring global settings?
    I have set in the time reference the PO creation date
    as Special Info Object. Will this work?
    Please let me know.
    Regards,
    Mahesh

  • Issue regarding currency conversion

    Hi Experts,
    I'm having issue with currency conversion. Default report output values are displaying in 'EURO' and I had created a toolabar with currency conversion buttons. When this button is selected, values has to be changed into user select currency like INR, USD, AUD. Here im triggering with issues, all the values are converted into 0's. Total value is only converting for first time. From next time. its not converting. I'm using FM's  CONVERT_FOREIGN_TO_FOREIGN_CUR,CONVERT_TO_LOCAL_CURRENCY,READ_EXCHANGE_RATE.
    Please provide ur solutions to solve the issue.  
    Thanks and Regards,
    Bharat

    Hi ,
    You can use this block of code..It is used in our project.
      data : l_rate type ukurs_curr,           "Exchange rate
             l_rate_type type kurst_curr,      "Type of rate
             l_l_fact type i,                  "Local factor
             l_f_fact type i.                  "Foreign factor
    check local currency ,foreign currency local amount are not initial
      check foreign_currency is not initial and
            local_currency is not initial and
            local_amount is not initial.
    Calculate exchange rate
        if local_currency = 'MXN' and foreign_currency = 'USD'.
          l_rate_type = 'MXNT'.
       else.
         l_rate_type = 'M'.
       endif.
    *Call FUNCTION module to get exchange rate
      call function 'READ_EXCHANGE_RATE'
        exporting
          date                    = sy-datum
          foreign_currency        = local_currency
          local_currency          = foreign_currency
          type_of_rate            = l_rate_type
       importing
         exchange_rate           = l_rate
         foreign_factor          = l_f_fact
         local_factor            = l_l_fact
       exceptions
         no_rate_found           = 1
         no_factors_found        = 2
         no_spread_found         = 3
         derived_2_times         = 4
         overflow                = 5
         zero_rate               = 6
         others                  = 7
      if sy-subrc eq 0.
    if l_rate le 0.
      l_rate = l_rate * -1.
    endif.
    Foreign amount
      if l_rate_type = 'MXNT'.
        foreign_amount = local_amount / l_rate .
      else.
        foreign_amount = local_amount * l_rate .
    endif.
      endif.

  • Currency conversion error in SAP HANA

    Hi,
    I am new to SAP HANA and learning to create information views in HANA studio (SAP HANA SP6 on Cloudshare, HANA studio 1.0.68). I am trying to create a simple analytic view (on purchaseOrderItem table in SAP_HANA_EPM_DEMO sample database) to have GrossAmount converted to EUR.
    I added a calculated column as follows:
    When i click on "OK", i get error -
    The check box “Calculate before aggregation” has been unchecked, because the definition of the calculated column contains measures with currency conversion, restricted measures or operands with input parameters. For such a calculated column the calculation is always done after the aggregation."
    and checkbox "calculate before aggregation" get unchecked. See screenshot below:
    Please suggest what could be reason? Thanks in advance.
    Regards,
    Amit

    Hi Amit,
    If you uncheck the "Calculate before aggregation" checkbox and activate the view, you will see in the generated log that a Calc scenario is created. (a view with /olap wrapper). Due to the calc scenario, the aggregation is defined as the default behavior for the KFs and hence the calculation cannot be done before aggregation.
    By the way, I did not understand why do you need calculate before aggregation for a KF which is just a copy of another KF. If you need Gross amount in Local currency and EUR, then just perform the currency conversion without "Calculate before aggregation" checkbox. It will work.
    Regards,
    Ravi

  • Error during currency conversion and consistency check in a sales order

    Hi Experts,
    I am facing the below error in the sales order. The sales order is having so many items. The below error is coming for few items only. I have checked the currency exchange rates also. All are maintained properly.
    Please advice me how to fix this error or which class,methods are responsible for checking the above details while saving the order.
    Thanks,
    Sri

    Hi Christophe,
    FYI
    Error during currency conversion frm &1 to &2 (date &3, ref. curr. &4)
    Message Class - CRM_CUMULATED_I
    Message No     - 013
    Error during currency conversion for &1 and &2
    Message Class - CRM_CUMULATED_I
    Message No     - 008
    Consistency check: Logical key does not match
    Message Class - CRM_CUMULATED_I
    Message No     - 011
    Thanks,
    Sri

  • Credit memo request with currency conversion to EURO

    I have a requirement in which i need to create a Credit Memo Request for the newly created sales organisation using the old billing document number created for old sales organisation.New sales org will have its currency changed to EURO.I referred to a FM named 'Pricing' where the currency conversion is done.
    The requirement is to get the current price in EURO from the price list instead of currency conversion to EUR.The current price has to be extracted from new pricelist.
    Your inputs in this regard is highly appreciated.

    HI
        Am not on SAP system now, so will try to give you
    info with what i can recollect.
       You can use FM: SD_SALESDOCUMENT_CREATE for creating
    Credit Memo Request. Note that reference document and
    reference type should be passed for identifying the
    reference document as invoice. Please consider these as
    initial inputs to explore on the same. Regarding the
    pricing, it can be configured either at order type or
    copy control to carry out new pricing so it can take
    directly from condition records.
        Hope the above info can help you in exploring on the same.
    Kind Regards
    Eswar

  • Currency Conversion based on condition in BW

    Hello,
    I have gone through the cople weblogs/links/doc whatever information I found on currency conversion. However I am not able to figure out what could be done in below scenario. Please guide.
    Scenario -->
    I have STATUS and POSTING_DATE in my Cube. Key Figure in this cube is AMOUNT. Transactions are created in source system in local currency. When data is extracted to BW, I get AMOUNT in local currency and with right clicking on this column in Bex, I can convert it in Fix Target currency or I can permanently create one new column in my report which will always shows fixed target currency for AMOUNT. So far so good.
    Now the problem is I wanted to use the conversison rate maintained in TCURR table based on some condition.
    Ex: IF STATUS=CLOSED, then use Conversion rate as of POSTING_DATE,
            ELSE, use current date exchange rate.
    Standard currency conversion always use curent date for calculating exchange rate, but can I use conversion rate as of POSTING_DATE?
    Please advice.
    Regards
    Pankaj

    Thanks everyone for reply. I really apprecite your help.
    I tried the suggested FM "CONVERT_TO_LOCAL_CURRENCY", just have one more clarification.
    I debuged this FM and saw that Date which we are passing get's inverted as this is how date is maintained in TCURR table. So far so good. But TCURR table normally get's loaded once a month (say at the start/end of month) and so we will have only one date there. However input date which I am passing into thi FM can be any date (as this is the date maintained at transaction level). How do you handle this case?
    Please advice.

  • Currency conversion issue while creating PO from Shopping cart

    Hello Experts,
    I'm facing an issue in SRM during Limit purchase order creation from Limit shopping cart.
    Scenario:
    Shopping cart was created on 1st of June and Approved on 20th June & Po was created on the same day. But the currency conversion is no ware matching and couldn't able to trace out the same. I have tried several times to replicate the issue it never done in test environments.
    But the PO is creating with refer to Vendor currency. For example if SC was created in USD and vendor order currency in EUR then PO is created in EUR.
    the relevant notes were already updated in the system and it is working fine when the SC is created and approved on the same day.
    Please give me some idea how to fix this issue.
    Is there any way to make SC currency is priority than Vendor Order Currency while creating PO?
    Regards
    Pratap J

    Hello,
    Read information available in KBA 1862453.
    It mentions this issue.
    Regards,
    Ricardo

  • Changing preferred vendor to fixed vendor in SRM PO- no currency conversion

    Hi All,
    We are on SRM_SERVER 550, SP11, ECS scenario.
    Users create carts where they enter preferred vendor.
    After approval we found that the PO's were created only in "Held" Status.
    So we did a conversion of the preferred vendor (PF 39) to Fixed vendor (PF 19) during PO creation using BBP_DOC_CHANGE_BADI- BBP_PO_CHANGE.
    We also implemented BBP_GROUP_LOC_PO,GROUP_PO so that all items with same preferred vendor are grouped into a single PO.
    We observed that PO is now getting created in ordered status, where the preferred vendor is getting converted to fixed vendor as per our code change. But we also found a problem- that the line item price doesnt get converted to Vendor order currency after the Po is created. For ex: If line item price is 10 GBP and Vendor order currency is EUR, the line item price in the PO shows 10 EUR. The currency conversion fro GBP to EUR does not happen.
    This does not happen for catalog items/PO's where the cart comes with a fixed vendor (PF 19).
    So there surely seems to be something missing in our code for converting Preferred vendor to fixed vendor which is preventing/not converting the currency as well.
    Please find below the code we are using in DOC_CHANGE_BADI for PO, is there any step in this which is causing the currency conversion to be skipped?
    CONSTANTS:C_FIXED_VENDOR   TYPE BBP_PDS_PARTNER-PARTNER_FCT
                           VALUE '00000019',
               C_PREFERRED_VEND TYPE BBP_PDS_PARTNER-PARTNER_FCT
                           VALUE '00000039'.
       READ TABLE ET_PARTNER INTO LS_PARTNER WITH KEY
                             P_GUID      = IS_HEADER-GUID
                             PARTNER_FCT = C_FIXED_VENDOR.
       IF SY-SUBRC NE 0.
       READ TABLE ET_PARTNER INTO LS_PARTNER WITH KEY
                             P_GUID      = IS_HEADER-GUID
                             PARTNER_FCT = C_PREFERRED_VEND.
        IF SY-SUBRC EQ 0.
          CLEAR IDX.
          IDX = SY-TABIX.
          MOVE C_FIXED_VENDOR TO LS_PARTNER-PARTNER_FCT.
       MODIFY ET_PARTNER INDEX IDX FROM LS_PARTNER TRANSPORTING PARTNER_FCT.
       ENDIF.
       ENDIF.
    Regardas,
    Srivatsan

    there is nothing in your code which prevents the conversion between the two currencies,
    it can be the following reason
    1) system as standard is not performing the conversion.
    2) conversion factors are not maintained (or) conversion factors are maintained and the expiry date for the conversion factors has passed.

Maybe you are looking for