Convert decimal to currency

Hi everyone how ı convert to data decimal to currency?
thkns for your help?

Hi onyedili,
look this SAP help:
REPORT demo_list_write_currency LINE-SIZE 40.
DATA: num1 TYPE p DECIMALS 4 VALUE '12.3456',
num2 TYPE p DECIMALS 0 VALUE '123456'.
SET COUNTRY 'US'.
WRITE: 'USD', num1 CURRENCY 'USD', num2 CURRENCY 'USD',
/ 'BEF', num1 CURRENCY 'BEF', num2 CURRENCY 'BEF',
/ 'KUD', num1 CURRENCY 'KUD', num2 CURRENCY 'KUD'.
Regards,
Allan Cristian

Similar Messages

  • How to determine the second decimal of currency is equal to 0.

    Hi guys,
    My problem is how to determine the second decimal of currency is equal to 0.
    i.e: 130.23 the second decimal is 3.
    Thx in advance.
    Points will be rewarded.

    Hi Vincent,
    if you want to check the internal currency value, you can not know from the field contents what is the second decimal. Because ABAP currency fields (CURR) are connected to currency key CUKY. For USD or EUR you have two decimals, japanese yen have no decimals where as some arabian pound have three decimals. The default are 2 decimals; all excetions can be found in table TCURX.
    If you WRITE the value it is converted correctly according to the connected currency.
    Just multiply the value with 10 to the power of decimals, e.g. USD value * ( 10 ** 2 ). Then do a MOD: second_decimal_of_currency = ( value * ( 10 ** decimals ) mod 10.
    If result is zero, then the second decimal of currency is equal to 0.
    Regards,
    Clemens

  • Function module for converting the foreign currency to words

    hi,
    can anybody tell me about the function module for converting the foreign currency to words format.
    Like 25.50 USD
    should be "Twenty Five Dollar & Fifty Sents."
    foreign currency can be anyone like USD, JPY, EUR etc.
    Regards
    Nitin Varshney

    Hi,
    Try using the FM SPELL_AMOUNT
    Check this wiki
    [SPELL_AMOUNT|https://wiki.sdn.sap.com/wiki/display/Snippets/SpelltheAmountenteredin+words]
    Regards
    Sarves

  • Alternate Exchange Rate Type Not Picked while converting from Document Currency to Group Currency

    Hello Gurus,
    We have setup an alternate Exchange Rate type MNB for rate M for the postings happening in Hungary. Local currency is HUF. Group currency is USD.
    If the document currency is, lets say, EUR, latest MNB rate is correctly picked up (EUR to HUF) and postings are correctly converted into local currency (HUF).
    Although, for the same document, when a group currency is being calculated (EUR to USD), exchange rate type M is being picked up. Same happens if  document currency is HUF. Even then, the conversion is based on exchange rate type M.
    Is this a normal SAP behavior? How to prevent/correct this? This is also throwing off balances when we check in FAGLB03 or BSEG values in local and group currencies. In OB22, we have local currency1 and local currency 2 setup with exchange rate type M and we may not want to make any changes there as it is setup at global level.
    Do we need to run any valuations after the fact? if so, how?
    Thank you for your inputs in advance.
    Regards,
    Sagar

    Hi,
    You mentioned that "in OB22, we have local currency1 and local currency 2 setup with exchange rate type M". Then, I'm wondering how MNB is picked up for the first local curr. conversion to HUF? It should be 'M' instead. There must be some settings in your instance for such behavior. Can you check that?
    Actually, Group Curr. conversion happens with the rate defined for 2nd Loc.Curr.in OB22 which is 'M' in your case. Therefore, all the transactions are converted with M instead of MNB.
    Since you can't change OB22 per global co.policy, the exch.rate defined in OBA7 will overrule OB22. However, you've to make sure it's set up for all doc.types which are affected and posted in different curr. than HUF.
    As a workaround, another thought would be to maintain the same conversion rate for both exch.rate types MNB & M, for eg. HUF > USD rate is the same both exch.rate type MNB & M. This way, you ensure all transactions are posted with correct exch.rate irrespective of whatever rate type is used.
    From business, & global org. perspective, I'm sure they are sending the 'M' exch.rates to all their sister concerns monthly, so they would like to consolidate results as per standard rate in their system. Then, why ,as a local company, would you like to fiddle with standard process? It's a management decision, please run them through again before going ahead.
    Thanks,
    Nirav

  • Currency INR convert in EURO currency in MIRO

    Hello MM Sapperu2019s,
    Let me know the reason from forum when I enter the tax code in MIRO autoamcaally the Currency INR convert in EURO currency. Please provide your inputs what could be the reason for this and how I can resolve this case.
    Cheers,
    Kumar.S

    HI,
    Because your main vendor has currency EURO so its coming there  and IN po your currecny will be EURO
    check vendor currency
    If you don want it thne
    do following
    in MIRO after execution before giveing PO number chnage currency to INR and enter and then give PO number it will not chnage then
    Regards
    Kailas Ugale
    Edited by: kailasugale on Feb 9, 2012 11:51 AM

  • Function module - convert to local currency

    Dear all,
    I need to use a function module to convert to local currency a document that has been posted in foreign currency, which function module can I use? I tried convert_to_local_currency but I dont get any output...
    Else I need a function module to reverse a GL document, which function module should I use?
    Thanks and best regards!

    Hi,
    Please use the following linke and see if this helps.
    Re: FI Reverse Document BAPI
    Regards
    K.R

  • FM for convert to local currency other than CONVERT_TO_LOCAL_CURRENCY

    Does anyone know any other FM which converts into local currency???
    But it should be other than CONVERT_TO_LOCAL_CURRENCY..

    Hi Ajay,
    Just you can check it out in SE37.
    CONVERT_TO_LOCAL_CURRENCY_N
    CONVERT_TO_LOCAL_CURRENCY_O.
    CONVERT_TO_FOREIGN_CURRENCY
    Chk this Link
    convert to local  currency
    Reward Points if Useful
    Regards
    Gokul

  • How to convert decimal notation to comma notation

    Hi Folks,
    I have an issue in converting decimal notation to comma notation for France.
    I have changed the decimal notation in SU01 from 123.4 to 123,4 but when i run some custom program written by me it is extracting output as 123.4 than 123,4.
    So i want to have the output of report to conver all numerical values(from decimal format to comma format) i.e., 123,4 format from the 123.4 format.
    Please help me in fixing this issue
    Edited by: Nishanth Kumar Reddy Chenchu on Apr 24, 2008 1:16 PM

    Hi Nishant,
    U can use the statement WRITE TO. This will write the data as per the user settings. When ever user changes his settings like decimal notations then this statement will write the data as per the current settings of the user.
    DATA: l_amount1 TYPE wrbtr VALUE '123.45',
              l_amount(16) TYPE c.
    WRITE:/1 l_amount1.
    WRITE l_amount1 TO l_amount.
    WRITE:/1 l_amount.
    Just copy paste above code in a sample program. First execute this program and note the output. Then change the user settings for decimal notations and log of from SAP(Because user settings will become active only after fresh login). Now execute ur report and see the difference. In this way u no need to change the program when ever user changes his settings.
    This thing not pnly applies for amount but also for date, time Quantity fields
    Thanks,
    Vinod

  • How to convert decimal numbers to Hours and minutes

    Hi,
    I am using SSRS 2005. I want to convert decimal numbers to Hours and minutes.
    Say suppose, I am adding daily work hours and minutes and the total is 208.63.
    Here 208 hrs and 63 minutes. How to convert this to 209 hrs 03 minutes in SSRS.
    Any In-built function is there? or how to do using custom code?
    Appreciate your help.
    Regards,
    Bala

    suppose if field name is TotalDailyHours you can do it as below
    =CStr(Cint(Floor(val(Fields!TotalDailyHours.Value)) + ((val(Fields!TotalDailyHours.Value)-Floor(val(Fields!TotalDailyHours.Value)))*100)/60)) + ":" +
    Right("00" +Cstr(Cint(((val(Fields!TotalDailyHours.Value)-Floor(val(Fields!TotalDailyHours.Value)))*100) Mod 60)),2)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Hi I would like to know if you can convert decimal to binary using actionscript 3.0?

    Hi I would like to know if you can convert decimal to binary using actionscript 3.0?

    Hi thanks for the response Ive tried to implement the code as you stated but it is not outputting please if you could check the following code and let me know where Ive gone wrong that would be much appreciated Thanks!.
    miles_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKilometres);
    miles_txt.restrict ="0-9";
    function convertKilometres (k:KeyboardEvent):void {
    var miles:Number;
    var kilometres:Number;
    if (k.keyCode == Keyboard.ENTER){
    miles=Number(miles_txt.text);
    kilometres=miles* 1.609344;
    kilometres_txt.text = kilometres.toPrecision(2);
    kilometreConvert_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKiloToMile);
    kilometreConvert_txt.restrict = "0-9";
    function convertKiloToMile(k:KeyboardEvent):void{
    var kilometreConvert:Number;
    var milesAnswer:Number;
    if (k.keyCode==Keyboard.ENTER) {
    kilometreConvert=Number(kilometreConvert_txt.text);
    milesAnswer=kilometreConvert* 0.621371192;
    milesAnswer_txt.text = milesAnswer.toPrecision(2);
    binary_txt.addEventListener(KeyboardEvent.KEY_DOWN, checkEnterKey2);
    function checkEnterKey2(e:KeyboardEvent):void{
    if(binary_txt.text != '' && e.keyCode == Keyboard.ENTER){
    decimal_txt.text=binaryToDecimal(binary_txt.text).toString();
    function binaryToDecimal(s:String):Number{
    var n:Number = 0
    for(var i:int=0;i<s.length;i++){
    n+=Number(s.substr(i,1))<<(s.length-1-i)
    return n;
    function decimalToBinary(n:Number):String{
    return n.toString(2);
    return_btn.addEventListener(MouseEvent.CLICK, goBackToCalculator);
    function goBackToCalculator(e:Event):void
    mybuttonSound.play();
    gotoAndStop("Calculator");
    clear_btn.addEventListener(MouseEvent.CLICK,clearField);
    function clearField(e:MouseEvent):void{
      mybuttonSound.play();
      miles_txt.text ="";
      kilometres_txt.text ="";
      milesAnswer_txt.text ="";
      kilometreConvert_txt.text ="";
      binary_txt.text ="";
      decimal_txt.text ="";

  • Nesting CONVERT(DECIMAL)

    SUM(CONVERT(DECIMAL(12,2),CONVERT(DECIMAL(12,2),DATEDIFF(mi,StartTime,FinishTime))/60) - ISNULL(Breaks,0))
    From the query above, I had to nest Convert decimal twice before getting the result. What is the logic behind this sort of query? I got the result I wanted but I want to equally know the reason for having decimals repeated the way I just did.
    Thank you.
    Zionlite

    Hi Yookos/Zionlite, It looks like Himanshu explained as shown below, the third one. Am not getting what you are trying..Please eloborate.
    >>>SELECT
    CONVERT(DECIMAL(12,2),DATEDIFF(mi,GETDATE()-3,GETDATE()))
    -- 4320.00
    SELECT
    CONVERT(DECIMAL(12,2),DATEDIFF(mi,GETDATE()-3,GETDATE()))
    /60
    --72.000000
    SELECT
    CONVERT(DECIMAL(12,2),CONVERT(DECIMAL(12,2),DATEDIFF(mi,GETDATE()-3,GETDATE()))
    /60)
    --72.00

  • Convert decimal to char type

    Hi all,
    How to convert decimal type length 3(e.g:25.0) to char type.......
    Thanks in advance

    hi,
       data : var_dec type p decimals 3,
              var_char(10).   
    <b>move var_dec to var_char.</b>
    else use FM
          CALL FUNCTION <b>'CEVA_CONVERT_FLOAT_TO_CHAR'</b>
               EXPORTING
                    FLOAT_IMP  = P_ORIGEN
                    FORMAT_IMP = CAMPO_FLOAT
               IMPORTING
                    CHAR_EXP   = C_DESTINO.
    Regards,
    Santosh

  • Convert decimal to comp-3 format

    how do i convert a decimal value i.e. 01 to comp-3 format i.e. 001C?

    Hi Swapna,
    Please go to SU01 --> Enter user id --> display --> Anc click on default tab and check the decimal notation.
    Declare one field to currency type and then try
    Use FM BKK_AMOUNT_CONV_TO_INTERN_MAIN.
    you can check by changing the values in su01.but remember your change reflect only when you logoff SAP and again login.so once logoff is needed.
    regards,
    Ranveer.

  • AP Account Analysis Report USD not converting to Functional Currency

    When I am running AccountAnalysis Report , USD not converting to SGD\
    08-JUN-09 3D NETWORKS SINGAPORE PTE TI10050729 Invoice Nonrecoverable GST Yes
    USD 8,395.36 8,395.36 530000844
    Regards,
    Ajit
    Edited by: Ajit Raut on Jul 27, 2009 8:10 PM

    Resolved,
    ==============================================
    Please find below notes;
    Not all reports are appropriate to run under MRC responsibility.
    The reports that do not have set of books as parameter cannot show thedata in reporting currency as
    sob is not supplied. So all such reportsnot having set of books parameter cannot be expected to show
    the outputin reporting currency.
    Refr to the document "Multiple Reporting Currencies in Oracle Applications"
    Appendix A: MRC Reporting Responsibilities:
    Section Request Groups (page A-8)
    Extract from the document:
    The predefined MRC request groups allow you to access only those reports
    and programs that are "appropriate" to run when using a reporting responsibility.
    Pre–defined MRC request groups are in the format MRC Programs <product code>.
    Payables
    =======
    The following reports are available in the MRC Programs AP request group:
    • Accounts Payable Trial Balance Report
    • Posted Invoice Register
    • Posted Payment Register
    • Posting Hold Report
    • Transaction Reconciliation Report
    • Journal with GL Details Report

  • Currency Conversion in BEX - Converting to Two currencies

    Hi,
    My requirement is to give the user the option of displaying currency in either EUR or USD in BEX / BO report.
    in other words to convert Document currencies amount to EUR or USD.
    I have created a currency translation type
    Exchange rate  = M
    Currency Tab -> Target Currency ->  target currency from variable OP_CURPR
    Time reference = Standard infoObject 0CALDAY.
    When I  try to run the report, the variable OP_CURPR  gives me all the currencies loaded but my actual requirement is to see only EUR or USD and I also noticed that if I do not have EUR / USD then I cannot convert it.
    how do I resolve this.
    thanks,
    Edited by: Bhat Vaidya on Mar 5, 2012 8:12 AM

    Hi,
    I have created a new variable and the result is the same. i.e the document currencies that I have are EUR and CNY. In the selection prompt, I get these same values. but not USD. so it means that I cannot convert to USD since its not in the document currency field.
    my source currency is source currency from data record
    thanks
    Bhat
    Edited by: Bhat Vaidya on Mar 5, 2012 8:47 AM
    Edited by: Bhat Vaidya on Mar 5, 2012 8:55 AM

Maybe you are looking for

  • How to read new vlaues in adobe form in ZSCENARIO in MSS

    hey guys,   i have created Zscenario in MSS.... it has a Adobe form in it... the form has certain fields editable and requires user entry.. i have to save the fields into R/3 now... how to do it? is it possible..?

  • Powerbook plug not working...PLEASE HELP

    So I have a powerbook and when I plug in the cord it charges the battery (the green light turns on around the plug). However when it charges the battery completely the cord stops, so my computer runs off battery power until it dies or until I notice

  • Why no Quad Core option on T510? How about USB 3?

    I've been waiting for the T510 for some time now as my refresh cycle is up. However, my hard requirements are: - FHD 1080p display (check - but option cost is unreasonable) - Quad Core (fail - at least a 7i 720QM) - USB 3.0 (fail) Lenovo - please get

  • One Server Multiple Clients

    Hello, This server code accepts only one client connection at a time. However, I have several lines that are specifically for the server to accept more than one client. What do I need to do in addition for the server to recognize that it can accept m

  • Download Error...Mac OS X 10.8.2

    I just signed up for Creative Cloud and trying to initiate install first app, but I keep getting 'Download Error. contact support' even after cleaning out all adobe apps using CSCleanerTool. I am using Mac OS X (10.8.2).