To show zeroes after decimal in CSV file

Hi all,
A program generates a .CSV file , downloaded to local PC.
The values should be shown as 2.0000(upto four decimals) and 0 should be 0.0000.
I tried appending ' - single quote to char field , it's working fine but it's shown
as '2.0000 in CSV file.
Is there any other way to show the values with four decimals as 2.0000 ?
Thanks in advance
Kaavya.

Hi,
Once your value with 4 decimals is ready in variable with type P, move it to anew 'character' variable & use this variable for downloading.
I hope this helps,
Regards
RBC

Similar Messages

  • 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.

  • 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

  • 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.

  • 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.

  • 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

  • Zeroes after Decimal

    Hi,
    I am having a value as  '6009.12300 ML'  belongs to type C.
    Now i don't want the zeroes after decimal such as 6009.123 ML .
    how cud i do this?
    i tried search ,split,shift,trailing zeroes but could nt get it?
    Thanks,
    Ponraj.s.

    Hi,
      I tested the following code segment, it works well to suit your requirement.
    Just look at the code.
    DATA C(20) VALUE '6009.12300 ML'.
    DATA:  LEN TYPE I,
               FLAG TYPE I.
    LEN = STRLEN( C ).
    DO LEN TIMES.
      LEN = LEN - 1 .
      IF ( C+LEN(1) EQ '0' ) .
        C+LEN(1) = ' ' .
        FLAG = 1 .
      ELSE.
        IF FLAG = 1 .
          EXIT .
        ENDIF .
      ENDIF .
    ENDDO.
    CONDENSE C NO-GAPS.
    WRITE C.
    Reward if helpful.
    Regards,
    Sandhya

  • 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 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

  • 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.

  • 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 coming unnecessarily

    Hi ,
      I have an input field for amount, for which i have a default value of "20", but it gets displayed as 20,000000000 . i dont want the zeroes after the decimal. The data type is "BCA_TAMNT_BAPI", which i can change as i have to pass it to BAPI.
    Kindly help out:)

    Hi,
    Check the value of the input field amount you are trying to populate in the DEBUGGING mode.
    Check the data type fo this amount field and the BAPI field dataype. Sometimes the the displayed value (OUTPUT format) and the actaul avlue in the fiedl (INTERNAL FORMAT) both differs. hence cheeck the actatula valuein the debugging .
    Or
    Use the FM for this conversion internally before passing to the BAPI (like converison Exit FM)
    Regards
    Lekha

  • Proper format of cells after Writing to csv file?

    I have been searching, yet struggling with what is probably pretty simple to do.  I am writing data to a csv but my data is not coming out the way I need it to look in the spreadsheet once its been written.  Each of the channel's data from the front panel need to be in their own Column.  Please see attached csv for what I'm aiming to accomplish in a finished program.  As of right now, I can write to the csv file but the data and fields are not in their proper columns/rows.  Can someone get me jump started on this please?  I'm very new and green in Labview.  This is my first program.  Thank you. 
    Solved!
    Go to Solution.
    Attachments:
    Front_Panel.vi ‏23 KB
    CSVdata.csv ‏1 KB

    It is recommended to turn on context help (ctrl+H) so you can get a brief description of stuff you mouse over.  You can get detailed information by clicking on "details".
    For example, you would have seen the terminal for "transpose" in the context window.  Curious to see what it did, you would have clicked on "details".  That would have shown you what "transpose" does.
    I hate it that Microsoft trains you to ignore help files because they write them so poorly.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Just installed but nothing shows up after drag / drop, open file, and bridge

    I've been using CS3 for many years and my work finally got me CS5. After installing and registering my new product I did the usual "drag and drop" with a JPEG image to start a project and this is what shows up:
    As you can see, the loaded image on my layers window as a "background" and on the top tabs, you can see two files that I've attempted to open however when I try to magnify, zoom, etc. nothing shows up in the work area. I even attempted Bridge and File --> Open and I have seen the same results which is nothing showing up on my work space. I even opened a new document and when I open it, the same grey background appears and the new project / file acts like it was never there!
    Is there something that I don't know about CS5 in regards to opening new files? Thank you in advance. 

    Usually, when disabling OpenGL Drawing corrects a screen update issue, that means that your video card is probably capable, but the driver is out of date and faulty.
    Try going to the web site of the maker of your graphics card and downloading/installing their latest driver for your hardware and OS.  Then try re-enabling OpenGL Drawing.  You might well find it all works great, and you'll gain access to the OpenGL-specific features:
    http://kb2.adobe.com/cps/405/kb405745.html
    -Noel

  • Confirmed Qty still shows ZERO after complete delivery

    Hi
    A particular item in a sales order has been completely delivered and billed, but in the schedule lines tab, the confirmed qty and delivered qty are still showing as Zero. Also there is a tick mark for the "Schedule Lines Exist" column for that item which implies that the confirmed quantity of the item is smaller than the order quantity.
    Checked the forum but couldnt find anything related to this scenario.
    What needs to be done?
    Thanks & Regards
    Madhu

    HI,
    Please check for respective Material at Sales: General/Plant tab what is the availability option selected if it is anything other than KP(No check), then system confirms the quantity as soon as the sales order is saved.
    Even though the Delivery has been Deleted, in your case if Quantity is confirmed against that Sales order that Quantity will be available for other SalesOrder and their corresponding Deliveries.
    U can test this my reducing the Quantity of that Line item from that sales order. You will find that Quantity reduced from old sales order will be available for new Sales Order.
    Hope this will solve your Query.
    With Best Regards,
    RB

Maybe you are looking for

  • How can I make Safari and Firefox remember a password?

    I changed some of my website passwords recently.  In most cases, Safari and Firefox asked me if I wanted them to remember the new password, I said Yes (I'm not on a shared computer), and when I entered my email address or username, it would appear in

  • How to stream YouTube video in PDF document using ID 5.5?

    I'm using ID 5.5 and know how to insert a video into a document using the Media palette, "Insert video from URL" option. However, I need to stream a YouTube video in an interactive PDF document, and when I try to insert the link from YouTube into the

  • Smart form issue for range input

    Hi all, i have print out five 5 po . each po in new form i.e every po has to start in new page i have created a smart form loop at header . wa = header ssf... fm module exporting wa tables item details call function fm_name... endloop. whats happenin

  • How do you set up eprint to work on Laserjet P3005dn

    I cannot find the list of supported printers for eprint.  Is Laserjet P3005dn supported? if so how do you set it up? This question was solved. View Solution.

  • VM template image missing from OVM Server 2.2.0

    Hi, We have configured couple of linux OVM images on OVM server 2.20. These images were running successfully from 1 month , suddenly we found 1 of the VM image missing from the /OVS/running_pool directory. Can you let me know if there is any bug in O