Convert from Comma notation to Decimal Notation, Any FM ?

Hi Experts,
I am looking to convert from Europe format to US format for Quantity & amount fields, I mean
e.g. Europe:  12.3456,78 -> US: 12,3456.78
pls. i can not use offsetting, replace, pattern, overlay, concatenate etc.
So, pls. let me know that, Is there any SAP FM for this purpose of DECIMAL NOTATION conversion?
thanq
Edited by: Srinivas on Feb 22, 2008 10:48 PM

use.
Replace all occurances of ',' in w_value with '.'.
Check this thread.
REgarding converting  ','  TO  '.'

Similar Messages

  • Converting from a double to scientific notation

    does anyone know how I can convert a double value to scientific notation?

    java.text.DecimalFormat can do that.

  • Converting from BASE 64 to Decimal Base 10

    I have an requirement to convert a value from base 64 to decimal base 10
    for ex if i give b the resultant output should be 27
    as per the website -- http://convertxy.com/index.php/numberbases/
    I tried using the UTL_ENCODE.BASE64_ENCODE with UTL_RAW.CAST_TO_RAW
    select utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('b'))) from dual
    but i am not getting the desired result
    Kindly guide me in this issue
    With Warm Regards
    SSR

    The base64 encoding for 27 is not b
    SELECT UTL_RAW.cast_to_varchar2 (
              UTL_ENCODE.base64_encode (
                 UTL_RAW.cast_to_raw (
                    '27')))
              base64
      FROM DUAL
    BASE64
    "Mjc="27 ist the position of b in
    ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
    which you need in the first step to convert base64 to decimal.
    select
    instr(
      'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
    ,'b'
    ) -1 d
    from dual
    d
    27
    vice versa
    select
    substr(
      'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
      ,27 + 1
      ,1
    ) d
    from dual
    D
    "b"You dont get a result with your approach because b is not a valid base64-encoding.
    Otherwise thsi should give a result
    SELECT UTL_RAW.cast_to_varchar2 (
              UTL_ENCODE.base64_decode (
                 UTL_RAW.cast_to_raw (
                    'b')))
              base64
      FROM DUAL
    BASE64
    but it doesnt, it does in the case below
    SELECT UTL_RAW.cast_to_varchar2 (
              UTL_ENCODE.base64_decode (
                 UTL_RAW.cast_to_raw (
                    'Mjc=')))
              base64
      FROM DUAL
    BASE64
    "27"Edited by: chris227 on 12.03.2013 07:36
    Edited by: chris227 on 12.03.2013 07:41
    Edited by: chris227 on 12.03.2013 07:46
    Edited by: chris227 on 12.03.2013 08:20

  • Convert from int to char

    Hi,
    How can I convert from an int to char?

    The challange is to convert from int to String without using any API or automatic conversionWoah, what a challenge ! Why ?
    Anyway, what about a recursive call and switch statement. Something likepublic String intToString(int n) {
        if(n<0) {
            return "-"+intToString(-n);
        if(n<10) {
            return getStringDigit(n);
        else {
            return intToString(n/10) + getStringDigit(n%10);
    private String getStringDigit(int n) {
        switch(n) {
            case 0:
                return "0";
            // etc.
    }

  • Cannot convert from IPrivate{cn}view.I{cn}Element to IPublicTabComp.IPeople

    Hi,
    I have 2 context node Person and People in a view context and context node People in component controller's context ,now i want to create new People element in the implementation of view
    so when i had written code below in eventhandler method in view implementation:
    IPeopleElement newPerson = wdContext.nodePeople().createPeopleElement();
    it gives me an error :
    Cannot convert from IPrivateview.IElement to IPublicTabComp.IPeopleElement
    Any help will be appreciated.
    Thanks,
    Rashmi.

    Hi,
    i hope you mapped the component controller context "People "to view .
    then to create a element do like this,
    IPrivate<View Nmae>View.IPeopleNode pnode= wdContext.nodePeople().createPeopleElement();
    Regards,
    ramesh

  • 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 tackle " . " or " , "Comma DECIMAL notations in text file uploading?

    Hi Experts,
    I hv to upload the text file via LSMW and creating the Purchse Orders.
    So, issue is with QUANTITY and VALUE fileds, bcoz, the text file may some times contain " . " as DECIAML or may some times " , "(comma-Europe) as DECIMALs.
    And some times this LSMW may run by US guys, where " ." is DECIMAL and some times Europe guys, where " , " is DECIMAL.
    So, request u that, let me know that, How to handle all situations? Is there any FM?
    thank u

    Hello Srinivas
    The easiest approach would be the organizational one:
    Assuming that all relevant values have at most two digitals then export all values without decimal sign and interpret the last two digit of any values as decimals values (this approach is used in many EDI messages).
    The second approach would be to include a "marker" about the decimal notation in the file.
    However, I would always recommend to use the simplest approach (= 1st approach).
    Regards
      Uwe

  • Convert from scientific notation

    Can someone help me with this? I cannot get this working even using some of the tips I found on this site and elsewhere:
    Round this and format this with 2 decimals: '-2.58069E-11'.
    Now I realize this would end up -2.58, but it is giving me an error instead.
    Error converting data type varchar to numeric.
    SELECT CAST('2.58069E-11' AS NUMERIC(24,2))
    SELECT CAST('2.58069E-11' AS NUMERIC(24,12))
    I tried 12 just to make sure that there was enough room for the decimals
    If I use ISNUMERIC, it returns 1, so SQL Server considers it a number (at least with that function)
    The next example works, but it is not what I want.
    SELECT CAST('2.58069E-11' AS REAL) just returns the same thing with the 'E', (as REAL, of course)
    In these example I haven't done the rounding yet.
    I get all kinds of negative and positive numbers with different decimal lengths, but the scientific notation is particularly tricky.

    Before I put this to bed, I have found out both the above solutions are wrong when using a regular decimal:
    Try this:
    SELECT CAST(CAST('-1131658.27' AS REAL) AS NUMERIC(24,2))
    And this:
    SELECT CAST(CONVERT(REAL, -1131658.27) as DECIMAL(24,12))
    They both yield -1131658.25, and -1131658.250000000000, respectively.
    This is probably some floating point error, but how do I take care of it?

  • Currency decimal notation conversion

    I am getting finacial values from a subsidary company in comma notation instead of the decimal notation.  It is clear that their user profiles are setup with this in mind and they don't want to change them.  Is there a function out there that converts comma to decimal i.e. 123,45 -> 123.45?
    Thanks,
    Kevin

    HI Kevin May 
    USE THIS CODE: IT TAKES CARE OF DECIMAL NOTATION BASED ON USER PROFILE.
    WHAT EVER MAY BE THE USER PROFILE FOR DECIMAL NOTATION.
    <b>
    FIELD_NUM = 1,233.50
    </b>
    OR
    <b>
    FIELD_NUM = 1.233,50
    </b>
    OR
    <b>
    FIELD_NUM = 1 233,50
    </b>
    SELECT SINGLE DCPFM FROM USR01
                           INTO VAR_DCPFM WHERE BNAME EQ SY-UNAME.
              IF VAR_DCPFM EQ 'X'.
                REPLACE ALL OCCURRENCES OF ',' IN: FIELD_NUM WITH ''.
    *            TRANSLATE FIELD_NUM USING ','.
              ELSEIF VAR_DCPFM EQ ''.
                REPLACE ALL OCCURRENCES OF '.' IN: FIELD_NUM WITH ''.
    *            TRANSLATE FIELD_NUM USING '.'.
                TRANSLATE FIELD_NUM USING ',.'.
              ELSEIF VAR_DCPFM EQ 'Y'.
                TRANSLATE FIELD_NUM USING ',.'.
              ENDIF.
    THIS CODE WILL WILL RESULT INTO :   <b>
    FIELD_NUM = 1233.50
    </b>
    CHEERS,
    VIJAY RAHEJA

  • How to do setting of  decimal notation and arithmatic and character note

    Hi colleagues
    I do have one problem
    And the following setting tried in SAP netweaver so do not give any hint for Netweaver
    The problem is stated as follows
    in output type in Germany they use , instead of . the dot signifies point that is .
    and we use , as a seperator in means suppose we have to write 2000 we write like wise means as per our requirement whether we need to mention 2.000 or 20.00 but in germany they use comma ,
    so in output type display point the problems are increasing and they are not getting solved.
    so it is the question of compatibility
    what went wrong i am unable to understand
    is there is any significance of country specific setting of decimal notation
    or any thing need hint towards the same.

    Hi
    For your output type assign a smartform and in the smartfrom write the program that the decimals should come like , instead of . then your requirement can be fulfilled
    Also check in OY04 wheather you can maintain or not
    Regards
    Srinath

  • Issue on Decimal notation

    Hi Friends,
    Here i'm facing issue on decimal notation, which we maintained at User profile screen
    like 1.234.567,89 / 1,234,567.89
    In an report output, for a particular field, value is displaying as 1.25 - here i chose decimal notation 1.234.567,89 on my userid
    But the value is displaying as 1,25 or 1.25 based on their user profiles whatever they maintained decimal notations at their user profiles, so now i need to make this as common decimal factor to either 'comma' or 'dot' at report output irrespective of users profile...hope you understand
    Please provide me your valuable inputs.
    Thanks
    Suren

    hi,
    convert the amount before passing to the report.Pass teh amount to a char field before printing.
    use bapi to convert it to desired format:
    BAPI_CURRENCY_CONV_TO_INTERNAL
    BAPI_CURRENCY_CONV_TO_EXTERNAL

  • Decimal Notation in Forms as per his SAP Decimal Notation

    Hi,
    We need to display all numeric fields in the Adobe Form as per the Decimal notation of the User in his SAP user defaults.
    Also, we need to take care that the currencies have current decimal places.
    Please let us know if this is achievable in Adobe Forms. Is there a way we can set the number format of a field dynamically in Adobe.
    Any pointers in this regard is highly appreciated.....Thanks in Advance.,
    Raghavendra

    Hi Raghavendra,
    to be bale to decide in your abap-printprogram, which format to use for printing, you can read the decimals and number format from customizing (or user) and then pass into form through an additional interface parameter format_string of i.e. CHAR060.
    Place your format string in a hidden textfield on your form
    This format string can then be used in the adobe form to format the text-field using script:
    this.format.picture = your_hidden_textfield.rawValue;
    we do so for date-formats and currency-formatting we read out of the country customizing.
    regards

  • Change decimal notation as per user's profile

    Hi all,
    The input file has a price in the following format:
    1,000.50
    Is there any function module that converts the price as per the user's profile format.
    1,000.50 should be converted to 1.000,50  as per the user's profile setting of decimal notation.
    Regards,
    Chandan

    hi check this.....
    data: test1(10)  type c  ,
          test type p decimals 2 value '1000.50' .
    write test to test1 .
           replace all occurrences of ',' in test1 with '#' .
           replace all occurrences of '.' in test1 with '*' .
            replace all occurrences of '#' in test1 with '.' .
             replace all occurrences of '*' in test1 with ',' .
           write:/ test1 .
    regards,
    venkat.

  • New  Decimal Notation Format Required  For Indian Projects

    Respected Members,
    As at the user level or tcode SU01 only three decimal notations are provided.
    But for country India the decimal notation format is totally different.
    Given decimal notation format is
    1,234,567.89
    And the Required Format For India is
    1,23,456.78
    Becoz we mention the Rupees in this format only.
    And this second format is not available in SPRO also .
    How to create the desired decimal notation and add the corresponding functionality.
    And if we use the given format (1,234,567.89) then when we converting the amount in words through Function module
    SPELL_AMOUNT ,it is not converting properly even though we have maintain the entries in View V_T015Z.
    Suppose our amount is 1,00,000 that is One lakh but it will show in the output  ONE HUNDRED THOUSAND.
    I know that there is another function Module HR_ch_ something to convert in words according to indian currency.
    But it does not solve the issue properly.
    THis DECIMAL NOTATION format for Indian Projects is a BIG MESS.
    So kindly tell me any solution or it is the drawback of SAP.
    So that we can ask SAP to append this Decimal Notation and required Functionality for the Indian Projects.
    Kindly Send Your Valuable answer and Try To Make clear picture and SAP Technical People if Reading this thread then kindly give stress on the REQUIRED DECIMAL NOTATION.
    THANKS A LOT.

    Hi Manish please you can try this code
    REPORT ZAMOUNT_CONVERSION.
    DATA : RESULT1(20).
    PARAMETERS : NUM TYPE P DECIMALS 2.
    DATA : num2 type STRING.
    DATA :  col_amt(20) type n,"15
             col_b type i,
             num_1(20) type C,"15
             Length type i.
    num_1 = num.
    write : 'default format      :',num.
    uline.
    skip.
    IF ( num >= 999999999 ).
           write num_1 using edit mask 'RR__,__,__,__,______' to col_amt.
           CONDENSE col_amt.
           length = STRLEN( col_amt ).
           if length = 16.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
           write :/'amount indian format:',col_amt.
           endif.
    ELSEIF NUM < 999999999 AND NUM >= 9999999.
           write num_1 using edit mask 'RR__,__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           if length = 13.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
             write :/'amount indian format:',col_amt.
          endif.
    ELSEIF NUM < 9999999  AND NUM >= 99999.
           write num_1 using edit mask 'RR__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           write :/'amount indian format:',col_amt.
    ELSEIF NUM < 99999.
       data : dumy(10) type c.
       dumy = num .
       CONDENSE dumy.
       length = STRLEN( dumy ).
         if length <= 6.
           write :/'amount indian format:',num.
           else.
           write num_1 using edit mask 'RR__,______' to col_amt.
           write :/'amount indian format:',col_amt.
          endif.
       ENDIF.
       uline.
    create a function module with this code .hope this will solve the issue.

  • Reg : Interchange in decimal notation.

    Hi Experts,
    We have 1 client 110 for development 210 for testing and its a cross client for 110.
    We have one more client 300 for Testing and then client 400 production System.
    I am facing problem in Client 300.
    As in client 110 we have developed a program and tested in 210 Cross Client of 110 For testing. I have received a Perfect decimal Notation for amount.
    But when i transport the same program to test in 300 Client it interchanges the Decimal notation(i.e Instead of showing 3,015.25 it shows me 3.015,25)
    this problem Occurs in 300 Client only but not in 210 client where we have tested our data before sending it to client 300.
    I have checked OY01 and SU3 both where we can set the decimal notations in Client 300 in which i am facing the problem.
    This is an Implementation project.As according to me if its working fine in client 210 then same program should work in client 300. So kindly let me know all the possible solution which can be done for this from configuration (Functional) Side.
    So kindly let me know As soon as Possible what should i need to do to achieve the same in client 300.
    Thanks in Advance,
    Swapnil.

    Dear,
    where in currencies exactly i have do changes as i am ABAPer. I will tell my functional that way. As comma and dot is comming perfectly for USD but it is been interchanged For SAR. So kindly let me know where i have to maintain for SAR currency Except OY01 and SU3.
    Please let me know as its very very urgent...
    Thanks in advance,

Maybe you are looking for

  • SCVMM losing connection to cluster nodes

    Hey guys'n girls, I hope this is the right forum for this question. I already opened a ticket at MS support as well because it's impacting our production environment indirectly, but even after a week there's been no contact. Losing faith in MS suppor

  • Applet issue in jsf page

    dear All it is the first time i create an applet to include it in my jsf page ,i created the applet and it is working fine, i exported the applet as a jar file myNewApplet.jar like Frank Example http://www.oracle.com/technetwork/developer-tools/adf/l

  • Regarding EPM Services

    Hello,     We had a certain issue during the weekly Reboot process. The process involves :  first stop all services , Reboot the servers and Start all services . All is good till here where we could see the services started in a certain log file whic

  • Printer Setup Utility.app

    Is there no Printer Setup Utility.app in Utilities with SL? I can't remember if there was with Leopard.

  • Audio sounds hollow and tinny all of a sudden in iTunes

    Hi everyone - I'm having an audio issue when playing files in iTunes. I'm using iTunes 8.1.1 (10) on a Dual 2.7 Ghz PowerPC G5 running OS X Version 10.4.11. Recently I discovered that all of my audio files (music and spoken word podcasts) started sou