Divide DMBTR by exchange rate ( SAp filed BAPI1093_0- EXCH_RATE)

Hi
I would like the divede the value of DMBTR(Amount in Local currency) by EXCH_RATE(Direct Quoted Exchange Rate - SAP field BAPI1093_0- EXCH_RATE)
In my data, I have Exchnage rate as           3.25000 and amount as 310000.00
Exchange rate was stored in the field : V_EXCH_RATE, the data type is  BAPI1093_0- EXCH_RATE
Amount was stored in the field : Amount_dmbtr, the data type is BSID-DMBTR.
Result have to stored in Result_dmbtr, the data type is BSID-DMBTR.
That is
Result_dmbtr = amount_dmbtr / v_exch_rate.
Result_dmbtr = 310000.00 / 3.25000
expected result is : 9538.461538
But I am getting value as :           0.10.
If I multiply amount_dmbtr by 1000 then this will become 31000000.
If  I do calculation as 31000000 / 3.25 getting result as 95.38. Again I am muliplying this by 100 and got result as 9538. I would like to know the logic behind this.
see the piece of code
data :  gv_fx_rate_EUR_DUE type UKURSP , "(BAPI1093_0-EXCH_RATE, Direct Quoted Exch Rate)
          gv_from_factor type FFACT_CURR, "BAPI1093_0-FROM_FACTOR(From Factor)
         gv_to_factor type TFACT_CURR, "BAPI1093_0-TO_FACTOR(To factor)
         Amount_dmbtr type dmbtr.
Start-of-selection
gv_fx_rate_eur_due = 325.00000
gv_from_factor  = 100
gv_to_factor type = 1
AMOUNT_DMBTR = 31000.00
  GV_XCH_F_EUR =  GV_FX_RATE_EUR_DUE * gv_to_factor.
  GV_XCH_F_EUR_DUE_01 = ( GV_XCH_F_EUR / gv_from_factor ).
   Result_dmbtr  = amount_dmbtr  / GV_XCH_F_EUR_DUE_01
final output :
result_dmbtr = 0.10.
But expected output is : 9538.46.
Regards
Vijay

Check this output.
data : gv_fx_rate_EUR_DUE type UKURSP , "(BAPI1093_0-EXCH_RATE, Direct Quoted Exch Rate)
gv_fx_rate_EUR_DUE1 type UKURSP ,
gv_from_factor type FFACT_CURR, "BAPI1093_0-FROM_FACTOR(From Factor)
gv_to_factor type TFACT_CURR, "BAPI1093_0-TO_FACTOR(To factor)
Amount_dmbtr type dmbtr.
data:GV_XCH_F_EUR type p decimals 2,
       GV_XCH_F_EUR_due1 type p decimals 2,
       result_dmbtr type p decimals 2.
Start-of-selection.
gv_fx_rate_eur_due = '325.00000'.
gv_from_factor = 100.
gv_to_factor  = 1.
AMOUNT_DMBTR = '31000.00'.
GV_XCH_F_EUR = GV_FX_RATE_EUR_DUE * gv_to_factor.
GV_XCH_F_EUR_DUE1 = ( GV_XCH_F_EUR / gv_from_factor ).
RESULT_DMBTR = amount_dmbtr / GV_XCH_F_EUR_DUE1 .
end-of-selection.
write: RESULT_DMBTR.

Similar Messages

  • Exchange Rate Upload Error

    Hi,
    I am getting, "47.2% difference to current exchange rate" error, when I try to upload beyond certain range. The percentage varies depending upon the exchange rate though.
    What/Where is this "current exchange rate" SAP is checking from and where should I clear this off.
    You help is appriciated.
    Thanks.

    HI
    Please go to SPRO -> Financial Accounting -> Financial Accounting global Settings -> Document -> document header -> Maximum Exchange Rate diff -> Define diff per foreign currency.
    See if a tolerance limit has been set here. If yes, then SAP would compare the current valid exchange rate with the one that you are trying to maintain.
    Regards

  • Exchange rate difference in SAP MM

    Hi experts,
    Is there any way to bring the exchange rate difference at time of invoice to some other account rather than stock account.
    The scenario is; for eg.
    in PO :   1 USD = 50 INR
    @ GRN 1 UDS = 55 INR
    @ INV    1 USD = 60 INR
    At the GRN, inventory will be updated with 55 INR.
    At the INV, system will value vendor at 60 INR, but in Standard SAP, the difference of 5 INR will be updated as below.
    1.  exchange rate diff. will be posted to stock account if available stock qty is >= invoice quantity
    2.  exchange rate diff. will be posted to exchange rate diff acct (as per KDM) ,if available stock qty is 0
    3.  exchange rate diff. will be posted propotionately to stock account and exchange rate diff acct (as per KDM) ,if available stock qty is <  invoice quantity
    Is there any way, that system will post the exchange rate difference to separate account , rather than inventory.
    It is because in client audit, the audit concern say, according to Indian standards, inventory should be valuated only one time in imports. In case of any differences, it should post to separate account and not inventory. They say SAP allows that. Client asked us the same.
    I have checked, OMRW, but even after giving 'N' in ERD setting, system is posting to stock account only.
    Any way to meet this??
    Regards
    sBk

    Dear Sujith,
    Exchange rate differences for a moving average price material will be
    posted to the stock account, provide there is sufficient stock coverage.
    Transaction OLMR -> Incoming invoice -> Configure how exchange rate
    difference are treated.
    If you set this selection field then the settings in the ERD Setting
    column for this currency type are no longer relevant. The system
    calculates and posts exchange rate differences between order-related
    goods receipts and invoices not just for materials with standard price,
    but also for:
    * Materials with moving average price
    * Account-assigned transactions
    * Planned delivery costs
    Because of this setting the exchange rate differences are posted to KDM
    account  instead of stock (BSX) or price difference (PRD) account
    If you uncheck the field, exchange rate differences will be posted to
    the stock or price difference account, for a moving average price
    material, based on the stock coverage.
    Please refer Sap note  980402 in detail
    regards,
    lalita

  • Exchange rate SAOP-AXIS adapter - SAP PO 7.4

    Hi Expert,
    My requirement is to fetch exchange xml file from web link : http://www.nationalbanken.dk/DNUK/rates.nsf/rates.xml . I have gone through Michael blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/05/michals-pi-tips-exchange-rates-from-an-xml-file-on-a-web-page--rest-axis
    And I have done everything same but nothing happening to sender adapter.
    It is showing running but no log updated.
    I am working SAP PO (Process Orchestration) 7.4 SP3.
    I have gone through ......../XIAxisAdapter/MessageServlet and it show below details:
    Axis Adapter Message Servlet
    Component Versions
    Adapter Common Library Version: 1.7.4003.20130911141725.0000, NW731EXT_08_REL (2013-09-11T18:40:12+0000)
    Adapter Application Version: 1.7.4003.20130911141725.0000, NW731EXT_08_REL (2013-09-11T18:40:22+0000)
    Axis Version: ???
    Required Components
    Apache-Axis
    Error: required component missing --- looking for org.apache.axis.AxisEngine in com.sap.aii.af.axisproviderlib/axis.jar; see http://ws.apache.org/axis/
    Jakarta-Commons Discovery
    Error: required component missing --- looking for org.apache.commons.discovery.Resource in com.sap.aii.af.axisproviderlib/commons-discovery.jar; see http://jakarta.apache.org/commons/discovery/
    Jakarta-Commons Logging
    Error: required component missing --- looking for org.apache.commons.logging.Log in com.sap.aii.af.axisproviderlib/commons-logging.jar; see http://jakarta.apache.org/commons/logging/
    Optional Components
    Thanks in advance!
    Kumar

    HI Amit,
    I see status as error:
    Required Components
    Apache-Axis
    Error: required component missing --- looking for org.apache.axis.AxisEngine in com.sap.aii.af.axisproviderlib/axis.jar; see http://ws.apache.org/axis/
    Jakarta-Commons Discovery
    Error: required component missing --- looking for org.apache.commons.discovery.Resource in com.sap.aii.af.axisproviderlib/commons-discovery.jar; see http://jakarta.apache.org/commons/discovery/
    Jakarta-Commons Logging
    Error: required component missing --- looking for org.apache.commons.logging.Log in com.sap.aii.af.axisproviderlib/commons-logging.jar; see http://jakarta.apache.org/commons/logging/
    Number of Missing Components: 3
    Status: Error
    Thanks,
    Kumar

  • Exchange  rate in sap

    Dear sap guru
    My company code currency is SGD group currency is SGD. PO document type is OPO, PO date is 03.06.2009
    today when i am canceling PO then system is sowing error is "Enter rate SGD / EUR rate type EURX for 03.06.2009 in the system settings"
    But when i am running same scenario in testing server there is no error , in testing when i was creating PO then i got same error so i created in ob08 after po i deleted that exchange rate type for testing purpose . even after deleting i did not get any error. i canceled PO without any error.
    can anyone help me
      thanks
       vivek

    Hi,
    you have to configure the Exchange rate in OB08 for the particular date.
    Please check with SAP FI consultant he can give better inputs .Basically  this is a FI config .As a MM consultant we are aware
    of this t.code: OB08
    Regards
    Ganesh

  • Exchange rate, plan exchange rate Programs & Function modules in SAP ....

    Hi Friends,
    Could anybody please tell me  what are the  " Exchange rate " & Plan exchange rate "  standard programs, function modules  avaialble in SAP  .
    Thanks in advance,
    Ramesh.

    Check via transaction OB07 (or SPRO - General Settings - Currencies - Check exchange rate types) usually you will find a "M" average exchange rate (which is used operationally everywhere in Logistics) and a "P" planned exchange rate (used for cost planning)
    Exchange rates are maintained via transaction OB08 (or SPRO, same tree - last node - Enter exchange rates)
    When programming, use tables TCUR* or FM of function groups like SCUR "Translation of Currency Amounts etc." (CONVERT_TO_FOREIGN_CURRENCY, CONVERT_TO_LOCAL_CURRENCY and READ_EXCHANGE_RATE among others)
    Regards,
    Raymond

  • Exchange Rate being multiplied twice instead of divide and then multiply

    Dear All SAP Gurus,
    When my client was posting an Import PO (Foreign Currency =  USD - Local Currency = PKR) in MIGO & MIRO, which were both entered on different dates, there was an exchange rate difference which was posted to the correct GL Account but with the wrong amount. Although I have defined the exchange rate correctly in OB08 for both direct quote and indirect quote. I have also maintained the translation ratio as 1:1 in OBBS.
    I have checked that the correct rate in being applied in FB60 and F-53.
    Exchange rate I am using is as follows:
    15.10.2010 = 1 USD = 85.65
    19.10.2010 = 1 USD = 85.90
    The system should behave like this:
    15.10.2010 - 700,000 PKR =  8,172.80 USD
    19.10.2010  - 8,172.80 USD =  702,043.20 PKR
    The system is behaving like this:
    15.10.2010 - 700,000 PKR =  59,955,000.00 USD
    19.10.2010 -  59,955,000.00 USD =  5,150,134,500.00 PKR.
    I am a FI Consultant. Let me know if I am missing something. My MM Consultant is also testing whether is there something missing from his side. Kindly guide me on the above issue.
    Best Regards,
    Anss Shahid Essani

    I have checked that the local currency is the same as my company code currency. I have also checked the ratio in OB08 and that is 1:1.
    The PO is partially made in USD and Partially in PKR. In MIGO the conditions made in USD is correctly picking up the rate, that is 1USD = 85.95 PKR, but the condition maintained in PKR is showing the rate as follows, 1 PKR = 85.95 USD.
    In MIRO, the system is then  multiplying the rate again  85.95 USD = 85.95*85.95 PKR.
    Although this is an unusual error, though we are still checking the conditions maintained in PO.
    Kindly highlight me if you come with anything that we may be missing...

  • Euro exchange rate in sap 6.00 ecc version

    dear all,
    We are recently implementing sap in our company.we are following sap 6.00 ecc version. we have taken E.rate types B for selling , G for buying , M for average.
    But for EURO it is asking for type EURX only.but I want to define buying and selling rates for EURO also.can anybody tell how to define buying and selling for EURO also.

    Hi,
    nevertheless you will always do the postings in M. If you want to post to use G or B you have to put in the rate type manually. That means you can maintain the KNVV-KURST manually with another course type.
    to your problem. It is also possible to use the EURX. And in special cases like KNVV-KURST you can choose the exchange rate G or B manually. The document in this case will be posted later with G or B. KNVV is only an example
    Please check. But it should work.
    Best regards
    Volker

  • SAP Query Exchange Rate from Sales Order

    I have created a SAP query which has has a field which converts the sales invoice values in a foreign currency to the local currency using function 'CONVERT_TO_LOCAL_CURRENCY' this uses the rates stored in OB08.
    Now we want to change this so that the exchange rate on the actual order line is used(VBAK-WAERK)  instead of the current exchange rate, do you know how I can do this? Do I need to create bespoke function to do this?
    thanks
    Joe

    Hi,
    Please do following steps :
    IMG --> Sales and Distribution --> Billing à Maintain Copying Control For Billing Documents (VTFL).
    Write following logic in include  -  RV60AFZC. In this write code in exit USEREXIT_FILL_VBRK_VBRP
    if vbrp-kursk <> vbrk-kurrf.
    vbrk-kurrf = vbrp-kursk  .
    vbrk-kurrf_dat = vbrp-kursk_dat.
    endif.
    Maintain Exchange rate type in XD01 - Sales data - in Sales tab maintain new Exch. Rate Type.
    Please check whether after doing above steps your issue gets resolved.
    Regards,
    Tejas

  • Automatic update of exchange rate in SAP B1

    Dear All,
    How to do automatic update of exchange rate in SAP B1as per the market variation
    Regards,
    Kumararaja

    Hello,
    after you defined exchange rates in define foreign currency exchange rates, you could run exchange rate differences in the module financials and set execution date to be today.
    Regards,

  • Where are the Exchange rates filled in SAP?

    Hi All,
    could anyone tell me where Exchange rates are filled in SAP?
    Thanks

    Hi,
    You can fill the exchange rates in the path in SPRO :
    Path : SAP Customizing Implementation Guide -> SAP NetWeaver-> General Settings-> Currencies -> Enter Exchange Rates
    Click "New Entries" Button for enter a new exchange rate.
    Enter the fields in below table
    -ExRt = Exchange rate type
    -ValidFrom = Effective date of the exchange rate displayed.
    -Ratio(from) = always 1 (default)
    -From = Originating currency for the transaction (e.g. USD)
    -Dirquot = Direct Quotation e.g. 1 USD = JPY.114.06
    -Indir.quot = Indirect Quotation e.g 1 JPY = USD. 0.0088
    This field is not in use and always display "0.00000"
    -To = always 1 (default) this is reporting currency (e.g. JPY)
    Thanks
    Neel

  • Daily Exchange rate updation in SAP (GRIR)

    Hi,
    How to update the daily exchange rate in GRIR account?
    Regards,
    Ashish Gupta

    Hi Ashish
    In the standard business practice, the exchange rate of the PO and exchange rate at GR will never remain same. The reason is, suppose you have created PO in Apr and at that time the exchange rate was 44 and after 2 months i.e. in Jun, you received the material and at that time the exchange rate was 47, then as per the accounting standards the inventory should be valuated at exchange rate 47 and not at 44.
    Suppose you have posted GR with exchange rate 47 and invoice is posted in the next month at this time the exchange rate was 48. Then in MIRO, you will get the exchange rate differences gain/loss depending upon the exchange rate fluctuations.
    In the standard SAP system, without using 'Exchange rate fixed' indicator in PO, you will not get the same exchange rate at GR. You have to use enhancement in GR which will validate the exchange rate maintained in PO with the exchange rate maintained in OB08. But still i think you should go with the standard system.
    You can check the below link, it will help you.
    Exchange rate difference in goods receipt

  • Maintain company code wise Exchange rate in SAP

    Dear SAP Experts,
    Is there any additional configuration to maintain company code wise Exchange rates in SAP?
    Awaiting for your valuable inputs......
    Thanks
    Madhusudhan.B

    Hi,
    Exchange rate table is not company code dependent. You can maintain, though, different exchange rate types.
    Regards,
    Eli

  • Exchange Rates in SAP

    Hi,
    Please could someone let me know where I can find Exchange rates in SAP, I mean which table I could find them.
    Thanks
    Ram.

    (Transaction OB08 or S_BCE_68000174)
    Table is TCURR.
    Many FM use this table, eg CALCULATE_EXCHANGE_RATE.
    Regards.

  • Report inventory at historical exchange rate with standard SAP

    Has anyone had to run reports for inventory at historical exchange rates in the US.
    Can this be achieved with standard SAP?
    Thanks in advance for all help.
    Mahantesh Nashi

    Hi
    To understand why the system behaves in that way, the most important
    thing is to understand how area 01 is posting its values:
    As you will know, area 01 is the only area that is posting its values
    "online" (this means that APC values will be updated in the G/L directly
    when posting to an asset). It is a technical matter that this "Online"-
    posting will always be done to ALL(!) ledgers that are defined in the
    company code. So whatever Ledger group you assign to depreciation area
    01, this will not be considered by any APC value posting, APC
    transactions (as well as write-ups) will always be posted in ANY ledger
    group in G/L with the values from area 01.
    If you then want to setup a scenario in Fixed Asset Accounting, where
    you post different valuations (local GAAP / IFRS) to a different ledger
    group in G/L for parallel valuation, then you have to use (in total) 3
    depreciation areas in the following way. For each additional "valuation"
    for which you have additional ledgers defined in G/L, and for which you
    want to get different values as those posted in area 01, you need also
    two additional depreciation areas (1 real and 1 derived area) in
    asset accounting.
    So a typical dep.area setting for a parallel ledger is like:
               Real      Posting to G/L         Ledger
    Area 01     X            1                   0L
    Area XX     X            3                   XX (your ledger code)
    Area YY                  6                   XX (your ledger code)
    Acquisition/transf/retirement postings in area 01 go to all ledgers
    independently of your setting in OADB. And, if any difference occurs
    between area 01 an area XX this is posted trough the derived area YY
    (posting indicator 6).
    blaz

Maybe you are looking for

  • Report erroring out with 'Invalid parameter requested' in Siebel.

    Hello - I have 9 parameters on a template, excluding the two delivered out-of-the-box by siebel to enter the Language and Locale. Recently, if i enter a language value of 'ESP' ( or any other language value), it errors out with 'Invalid parameters re

  • An intricate question rather than an idea: PDF structure LIVE EDITOR

    I am wondering whether Dom's outline here(1) is really impossible: For PoDoFoBrowser, I think it would be fine if you would have the preview side by side with the pages content stream. And if you type some PDF code into the content stream, like "0 0

  • When i open report its fetching junk data

    Hi, when i run the financial rport in workspace its fetching junk data and that is not showing all fields and same report is opening fine for some users, please suggest what could be the issue. Thanks

  • Installing JDK6u2532bits on Oracle Linux v6  64 bits

    Hello, I am having some dependency issues when trying to install JKD32bits on OEL 6 64 bits. When using the self-extracting JDK package I get the following error: $ sh jdk-6u25-linux-i586.bin Unpacking... Checksumming... Extracting... jdk-6u25-linux-

  • After updating to iOS 7.1 calling no longer works

    After I updated to 7.1, everything works fine except for calling/my phone number. iMessage and FaceTime only work when using my email but when people call me it goes straight to voicemail and when I call people I just hear nothing. The LTE works fine