Remove 0's after decimal.

Hi,
I have column value which returns values something like  123456.78 . This is sales information. I want the value to be returned something like this.
"123,456". No 0's after decimal. The datatype for field stored in DB is Money.
Can you any one help me here?
Thanks
Vikram

Usually you want to truncate the cents on the presentation at the report level, but not on the query of the data. Consider if you want to add up the values on the report. $5.40 and $3.40 should total to $8.80, which you might display as $9. If you remove
the cents on SQL Server and send the report $5 and $3, you would get a sum of $8, which isn't correct. So it's better to use Visakh16's solution of formatting the number in SSRS, and not in the SQL Server Database Engine. Then the sales numbers are changed,
just formatted without cents.
Rick Byham, Microsoft, SQL Server Books Online, Implies no warranty

Similar Messages

  • How to remove zero after decimal point.

    hi friends
    how to remove the zero after decimal points.
    example :
    123.450 -- if print only 123.45
    45.600  - 45.6
    any body help me.
    thanks
    pauldhama

    go through this example
    it may help u
    DATA: T(14) VALUE ' abcdefghij',
    STRING LIKE T,
    STR(6) VALUE 'ghijkl'.
    STRING = T.
    WRITE STRING.
    SHIFT STRING LEFT DELETING LEADING SPACE (or use 0 to detete 0).
    WRITE / STRING.
    STRING = T.
    SHIFT STRING RIGHT DELETING TRAILING STR or 0.
    WRITE / STRING.
    Output:
        abcdefghij
    abcdefghij
            abcdef

  • LEADING ZEROS AFTER DECIMAL

    Hi
    I want to remove leading zeros after decimal what should i do for that?.
    suppose lets thing my field is VAR and it gives value 150.000 and now i want to remove the zeros after decimal

    QMEL-QMNUM is a character 12 field, which internal format has leading zeros, simplest way to remove the leading zeros is to shift left.
    loop iords.
    shift iords-qmnum left deleting leading '0'.
    modify iords.
    endloop.
    can either use this function module also
    CONVERSION_EXIT_ALPHA_OUTPUT
    or
    SHIFT <yourField> LEFT DELETING LEADING '0'
    or
    try NO-ZERO option of WRITE statement
    or
    Another way is to create another variable of type I and assign the value into it
    example:
    DATA: L_NUMC(08) TYPE N.
    DATA: L_INT TYPE I.
    L_NUMC = '00000018'.
    L_INT = L_NUMC.
    Result will be = 18.

  • To Remove zeroes after decimal in screen field

    I need to remove the zeroes after a decimal like for a field of the type VBAP-KWMENG the is shown as 200.000 i need to show it as 200.I have to display this value inside a Table Control.

    hi,
    you can user "write to" statement with formating option.
    In your case,
    write  VBAP-KWMENG to l_var1 DECIMALS 0.
    so you will get l_var1 without any decimals and now you can populate this variable in your control.
    Please reward points if you find it useful.
    Regards,
    Jigs.

  • Eliminating zeroes after decimal

    HI all,
      I have a requirement to delete the trailing zeroes after decimal.
      It is a interest rate and it is denoted in EUR.
      i.e the number is 0,739000 % Internal declaration of this number is in DEC.
      the data type is AZINSSATZ.
    i want it to be displayed as 0,739 %
    How can i eliminate these zeroes?
    Thanx in Advance
    Regards,
    Hamsa Priya

    Hi Hamsa Priya,
    To remove leading zeros and leading blanks
    Please use FM
    CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal
    CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal->external
    Ex :
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = wf_version
                IMPORTING
                  output = wf_version.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • How to delete trailing zeros after decimal ?

    Hi,
    i want to delete trailing zeros after decimal.
    Example:
    if it is 22.000 then output will be 22
    if it is 22.010 then output will be 22.01.
    plz let me know hw to do this ?

    DATA:
      lv_decimal TYPE f DECIMALS 3,
      lv_string  TYPE string.
    lv_decimal = '22.010'.
    WRITE lv_decimal TO lv_string.
    SHIFT lv_string RIGHT DELETING TRAILING '0'.
    CONDENSE lv_string NO-GAPS.
    * now no trailing zeros are in the decimal stored in LV_STRING
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 12:10 PM

  • How to keep the zero after decimal

    Hi,
    I'm trying to store numbers into one of the custom table column. This column must contain unique value for each record.
    Now the issue is if i want to insert a record with zero after decimal point its removing that zero.
    Emp Id (number)
    1234.1
    1234.2
    1234.9
    1234.10 --> 1234.1 (this is what is getting stored in table)
    1234.11
    ...I want to store 1234.10 not 1234.1, is there any way that i can store zeros as well after decimal point for NUMBER data type column.
    Thanks in advance,

    Hi,
    Your appending sequence number should be with leading zeroes like
    1.001
    1.002
    1.003
    1.009
    1.01
    1.011 etc
    based on the numbe rof records you haveTry this and see if this fits for you
    DECLARE
       CURSOR c1 IS SELECT * FROM custom_table1;
       i              NUMBER;
       l_len          NUMBER;
    BEGIN
       SELECT LENGTH (COUNT (*))+(LENGTH(some_seq.currval)-1) INTO l_len FROM custom_table1;
       FOR c1_rec IN c1
       LOOP
          i           := some_seq.NEXTVAL;
          INSERT INTO test_tab (ID, NAME, amount, create_date)
               VALUES (c1_rec.ID || '.' || TO_CHAR (i, rpad ('0', l_len, '0') || '9')
                      ,c1_rec.NAME
                      ,c1_rec.amount
                      ,c1_rec.create_date);
       END LOOP;
    END;G.

  • How do I remove Norton Antivirus *after* I have installed Lion?

    How do I remove Norton Antivirus *after* I have installed Lion?
    The Norton uninstaller is a PPC native app and Lion won't run it.
    Thanks.

    You should run the removal applicaiton that came with your installation. Read this from the Norton web site..https://www-secure.symantec.com/norton-support/jsp/help-solutions.jsp?product=No rton+for+Mac+Products&version=current&lg=english&ct=united+states&pvid=f-mac&doc id=v64924250_EndUserProfile_en_us/
    Norton AV 12 for Lion is available online.
    If you want an AV program compatible with Lion then look at Intego Virus Barrier 6.

  • How to get values after decimal point

    Hi,
    source value is 12345.678 i wana the target side in 12345  in field and 678 in one field.
    the source value its not fixed  before decimal point value pass to one field and after decimal point value pass to other field
    please help to me how to do this one.

    Hi Swathip,
    You dont need to create 2 UDFs. You just need to create 1 simple UDF which takes one string array as input as usual and it has 2 Resultlist outputs. You need to map this 2 outputs from the UDF to the respective 2 target side fields where the values are to be mapped, one containing the portion before the decimal, and one after the decimal.
    I HAVE TESTED THE UDF AND IT WORKS ABSOLUTELY FINE.
    THE CODE FOR THE UDF IS AS FOLLOWS:
    public void sepDec(String[] num,ResultList wholeNum,ResultList afterDec,Container c)
      String part1=null;  // Stores the part before the decimal point
      String part2=null;  //Stores the part after the decimal point
                            if(num[0]!=null && num[0]!=""){
                   int index = num[0].indexOf(".");
                   part1 = num[0].substring(0,index);
                   part2=num[0].substring(index+1, num[0].length());
                         wholeNum.addValue(part1);
                   afterDec.addValue(part2);
    THIS UDF IS A CLASSIC EXAMPLE WHERE AN UDF HAS 2 OUTPUTS, WHICH IS VERY RARELY SEEN BUT VERY MUCH CORRECT
    PLEASE LET ME KNOW IF THIS CODE WAS HELPFUL TO YOU
    CHEERS,
    BISWAJIT
    Edited by: 007biswa on Feb 8, 2011 5:02 PM

  • How can i retain the trailing zeroes after decimal

    how can i retain the trailling zeros after decimal?
    values are showing in table like( 4.50,5.00) but i am trying to do some processing with these values then ithe zeroes are truncated like (4.5,5),
    how can i get values with zeroes

    If the values in the table have trailing zeroes, it's a character type column.
    Once you perform operations on them, they're implicitely converted to the number type, hence "losing" trailing zeroes.
    To get the trailing zeroes back, you have to convert them back to character data:
    TO_CHAR(1.5*3, '90d99')Have fun,
    K.

  • Suppressing zeroes after decimal

    Hi
    I need to suppress the zeroes after the decimal places in my form output if 00 appears after decimal.
    eg 123.00 shd be displayed as 123 .
         123.23 shd be dispalyed as 123.23.
    Could anyone help me with this
    TIA
    Regards

    hi Ankur do this way
    data: wa_input  type i,     
          wa_output type i.
    wa_input = '1.000'.
    CALL FUNCTION 'ROUND' 
      EXPORTING   
        INPUT              = wa_input
      IMPORTING  
        OUTPUT             = wa_output
      EXCEPTIONS
       INPUT_INVALID       = 1
       OVERFLOW            = 2
       TYPE_INVALID        = 3
       OTHERS              = 4.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write:/ wa_output.

  • Zeroes after decimal getting trimmed after 1:1 mapping of EDIFACT

    hi all
    i have created 1:1 mapping for XML->EDI.
    i took the output from XI and gave it as input.However, in the output of the mapping, the zeroes after decimal are getting deleted.
    for example if the input contain 2500.000, the output of the mapping contains 2500.
    I want 2500.000 in the output.
    Any suggestions as how to overcome the problem?

    hi Kai
    sorry ..i think i didnt convey properly my prob.
    This is what i want.
    My scenario is IDOC->EDIFACT using XI.
    i did a XI graphical mapping from IDOC ->to->EDIFACT_XML.Here for a particular field i got the output as 2500.000.
    Now this EDIFACT_XML is converted into EDIFACt using 1:1 mapping of BIC MD.
    When i give 2500.00 as an input to this 1:1 Mapping of BIC MD, the output contains only 2500.
    I'm not having problem in XI but in BIC MD.
    kindly suggest how i can get decimal output from BIC MD.

  • Removing shake in after effects

    After deciding to take the jump to CC I discovered all that looks good has its own set of problems. I'm hoping in this discussion a skilled AE user might save me time and money. I'm a proficient Vegas Pro user. The jump from a mix of Adobe programs and apps from other vendors has left me floundering somewhat in needing to get up to speed on some Adobe products.
    My ask for help here is that I've used Mercalli to clean up shaky footage (such as taken in a moving 4WD on a rough track) with great success but now that I'm moving to 100% Adobe products, I'd like to hear from users of AE who have a prefered workflow when handling work like this. I'd greatly apreciate some help here.
    Sure... I could read up or school up on the topic, even buy a product I've used in the past that has an Adobe version but I'm hoping as working professionals who have done this themselves or know more than me about removing shake with after effects, suggesting their worklow might avoid the very expensive and time consuming  tasks of trial and error that gets suggested so often. RTFM is not going to help me either.
    My belief is that having signed up for the full house of Adobe CC, I should be using it instead of dealing wiht the update and upgrade mess I'll eventually face if I don't get on the program. Hopefull this makes sense and someone will help?
    Ryadia.

    I'd like to thank all who replied to my question. After a few days of experimentation I've found that Warp Stabilizer can certainly be used for correcting many hand help situations but like many components provided by Adobe in their graphic software, it has limitations that third party products do a much better job at.
    Warp Stabilizer is certainly able to level out the effects of a hand held camera phone or pocket camera but to a videographer needing to produce broadcast quality promos, the fact that it works but nowhere near as well as a specialist product developed for the specific purpose is quite clear to me after using some of the information provided in replies.
    I may be biased after using Mercalli for most of my stabalisation needs but installing their trial and working the same footage with firstly Warp and then Mercalli, I have decided this will remain my prefered stabaliser. I am still not entirely comfortable with AE after several years of Vegas but the learning curve for AE is not as bad as I'd expected. I'm sure I'll become familiar with it in a short time.
    The comment regarding the need for a stable component when shooting a vast areas of water is overcome quite easiely if you include some of the mast spreaders in the corner of the frame or as in a 4WD mounted camera, a small part of the vehicle the camera is attached to will provide the constant needed. It does take a little practice to avoid over Stabilization but isn't that so with everything?.
    Thanks all, I apreciate your help
    Ryadia

  • Retain trailing zero's after decimal

    Hi,
    i have a requirement to retain trailing zero's after decimal....
    is it possible?
    version: 9.2.0.7
    example: select 150.200 from dual;
    we will get 150.2 as output.
    but i need 150.200 as the output...
    how would i do this?

    oraDBA2 wrote:
    Hi tony,
    sorry, that is not the constant value...that is a variable based on the value, what user enters with the decimals.......if i understood you correctly,
    it seems like you will need to use char or varchar2 datatypes in that table to start doing what you would like to do in the way you wan't it.
    and still you have option to apply to_number and to_char on that varchar2 column.
    SQL> create table b (charr varchar2(15) );
    Table created.
    SQL>
    SQL>
    SQL> insert into b (charr) values ('1000.000');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select* from b;
    CHARR
    1000.000
    http://stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10795/adfns_ty.htm#1006325

  • HT4623 How do I remove the updates after you have updated them?

    How do I remove the updates after you have updated them?

    In iOS 7 they remain in a list. This is because now you can optionally turn on automatic app update and so you may want to be able to tell what apps have updated recently. You can just ignore the list if you don't care. Also you will only see the red number badge when there are new ones to update.

Maybe you are looking for

  • Problems when updating the Intel INF file

    I have the MSI 865PE Neo2-FIS2R seems every time i go through with live update and try to load the INF driver it gets started into setup and once it gets to 10% the system reboots...after several attempts to load this driver, the third time it return

  • Internal data error when uploading images

    I have had no problem uploading files and images. Now, I can upload files, but when I try to upload an image I get FTP error - internal data error. I also connected directly to my server and tried to transfer images, but that didn't work either. Does

  • Change input attribute for CL_PT_REQ_WF_ATTRIBS

    Hi, I would like to change the input attribute value from class CL_PT_REQ_WF_ATTRIBS in BADI PT_GEN_REQ~START_WF for multilevel leave approval. May I know how to do this ? Regards, Eric

  • Reg Function Module / BAPI

    Xperts, I have to create a wrapper RFC fn module ... The input parameter is matnr,sales area , sold to,ship to.. and the return parameters are MSRP (rate based on price list) material Availability Status from MARA-MSTAV Valid To / From MARA-MSTDE (i

  • Visibility of Objects Upon Re-Opening

    I have a form that allows users to show or hide subforms via checkboxes. However, when the user saves the form and then re-opens it to make changes all of the original visibility settings are maintained. So then the user has to go through and re-sele