How to get the exact decimal places displayed while exporting to Excel?

Hi All,
I have a requirement to display the exact decimal place values in my report. In my pivot table, i duplicated a column named order number and converted to percentage by applying these conditions Show Data As-> Percent Of-> Column. I got a resultant column with one decimal point. As i needed two decimal points i took the xml of the report and changed the minDigits='2' and maxDigits='2' values like this. After that i got the accurate answer. But when i export it as excel sheet it is not showing the % column properly. The values after 0 is not getting displayed. Any solution for this?
Thanks in Advance
Thenmozhi

Hi Thenmozi,
You can try adding the below statement in the Custom CSS section of the your column properties.
mso-number-format:"\@"
Edit your report--> Criteria-->which column you want to display in excel click column properties --> select CCS--> Paste here above code.
Second way:
Edit your report --> criteria-->click fx option for your column and apply the below code.
2. '<span style="display:none">&nbsp</span>' || CAST(your column name AS CHAR)
Award points it is useful.
Thank,
Satya

Similar Messages

  • How to get the files in presentation server while uploading?

    how to get the files in presentation server while uploading?
    give me the function module name

    Hi,
    PARAMETERS:  P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES.  "Prsnt Srvr
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          DEF_PATH         = P_FILE
          MASK             = ',..'
          MODE             = '0 '
          TITLE            = 'Choose File'
        IMPORTING
          FILENAME         = P_FILE
        EXCEPTIONS
          INV_WINSYS       = 1
          NO_BATCH         = 2
          SELECTION_CANCEL = 3
          SELECTION_ERROR  = 4
          OTHERS           = 5.

  • How to get the exact time when condition records has been created?

    Hello All,
    Can anyone thorw some light on - how to find the exact time on which a particular condition record has been created?
    I have tried to get it from KONP {by inputting condition record number}, but unfortunately time is not tracked over there, but the date is tracked.
    Await your valuable inputs on the same.
    Regards,
    Hrishi

    Dear Hrishi,
    Try with this
    Go to display mode of the condition record through VK13 transaction from the condition record overview screen go to menu Environment >Changes>Click on Change report now system will take you to the Change Documents for conditions selection screen here you input proper selection data then execute now system will give the all the details here you can find the time also.
    I hope this will help you,
    Regards,
    Murali.

  • How to get the exact case of a local file

    Hi,
    I am using form 10g with webutil and have a local file called "Abc.sql".
    In my form, there is a input text and a button to let users to input the local file name and the press the button to upload it to
    the app server.
    What I want is : I can upload the file in the server with the exacl local file name. That means "Abc.sql" no matter users input
    "abc.sql" or "Abc.sql" in the input text.
    How to achieve this ? Is there any function provided to get the exact local file name ?
    For example, if I input "abc.sql" , it can return "Abc.sql".
    Thanks in advance
    Ivan
    Ivan

    Hello,
    How about simply let the user choose the file through a File selection dialog rather than take risk of end-user input typo ?
    Francois

  • How to get the exact day date with the another date field?

    Hi,
    Please help me how to get the specific day of the week's date with the help of another date field.
    Actually , one field(week_day) has 1,2,3,4,5,6,7 here 1--MON,2-- TUE like that.
    another field has the date. based on that date, we have to go to that particular week and need to pick up the date by the above week_day. It should be in that week itself.
    Thanks in advance!!
    Regards,
    Vissu...
    Edited by: vissu on Oct 29, 2010 3:07 AM

    Hi,
    Something like this
    SELECT TRUNC(<DATE_COLUMN>,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the particular week of the date
    SELECT TRUNC(SYSDATE,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the current week
    cheers
    VT

  • How to get the Exact Measurement Values.

    Hi Scripters,
    I want to get the exact values shown in the Control Panel. Please see the screenshots below.
    I have written the JS code is here. But I want need the exact panel values in shown the above snapshots.
    var myImages = app.activeDocument.links;
    for(i = myImages.length-1; i >= 0 ; i--){
        var myImage = myImages[i];
        myImage.show();
        alert(String(myImage.parent.itemLink.parent.geometricBounds[3]-myImage.parent.itemLink.parent.geometricBounds[1]) + " × " + String(myImage.parent.itemLink.parent.geometricBounds[2]-myImage.parent.itemLink.parent.geometricBounds[0]));
    thx,
    csm_phil

    There are 12 points in a pica.
    You need to divide the points by 12 and tack the modulus of 12 onto that:
    function getPicas(points){
        return "" + Math.floor(points/12) + "p" + points%12;
    alert(getPicas(504));
    alert(getPicas(104.16));

  • How to get the exact Height and width of the text in TextLayout Framework

    Hello fellow developers,
    I start working with TLF when there is three different SWC's Now I am working with Single SWC with flex 4 and lot of things are changed like
    I use calculateHeight(),calculateWidth()  now these methods are not available.
    Please if anyone know the replacement of these methods then Let me know.
    thanks

    If the text exceeds the container, which can happen in a scrollable container where you have to scroll to see some of the text, then the values getContentBounds returns are estimated values. This is because we don't want to force the text to recompose all the way to the end of a very long TextFlow in order to return a value. However, if you want to get the exact amount, and don't mind taking the time to recompose, call textFlow.flowComposer.composeToPosition(), before calling getContentBounds. This forces all the text to recompose to the end, and then getContentBounds will return the fully calculated value instead of estimating.

  • CrystalReport - Getting "The Report Application Server failed" while export

    Hi Experts,
    I am using Crystal Reports 2008 in my ASP.NET application to generate reports. Everythings works fine in the development environment. When I deploy it on my Windows Server 2003 system, I get an error "The Report Application Server failed" while exporting the report from the report control. But, the report assuch is working fine even in the production environement. I experience this issue only while exporting to excel or anyother format.
    Do I need to configure anything or any settings needs to be turned on in the .rpt files!!
    Appreciate any help to get this issue resolved.
    TIA,
    Prem

    First a confirmation. When you say; "...exporting the report from the report control...", you mean the printer button on the viewer?
    Questions;
    What version of .NET?
    What Crystal Reports Service Pack are you on?
    How was the CR runtime installed on the server?\
    Can you print the report OK?
    Are you using sessions?
    Ludek

  • How to get the Number of lines displayed in  table control in bdc

    Hi,
    when we write a  bdc for a standard transaction, if we encounter a table control, we fill the values for each record like field(01), and the second record field(02) .......and so on..
    if only 3 records are displayed in the screen and if we have 5 records to be filled in the table control, how to write the logic for that?
    how to track of how many lines are getting displayed in the table control .. again it depends on the screen resolution i think..
    useful answers will be rewarded
    shekhar

    Hi,
    Here is the solution code for this :-
    data for controlling paging on screen 0102 
    DATA: W_MAXLINES(2) TYPE N, 
    W_NEXT_LINE(3) TYPE N, 
    W_PAGE(1), "y = page forward, n otherwise 
    W_SCRLEN(2) TYPE I, 
    W_SCRLINE(2) TYPE I. 
    DATA: BEGIN OF W_HDR. 
    INCLUDE STRUCTURE D020S. 
    DATA: END OF W_HDR. 
    DATA: BEGIN OF W_FLD OCCURS 100. 
    INCLUDE STRUCTURE D021S. 
    DATA: END OF W_FLD. 
    DATA: BEGIN OF W_LOG OCCURS 20. 
    INCLUDE STRUCTURE D022S. 
    DATA: END OF W_LOG. 
    DATA: BEGIN OF W_MC OCCURS 20. 
    INCLUDE STRUCTURE D023S. 
    DATA: END OF W_MC. 
    DATA: BEGIN OF W_DYNPRONAME, 
    PROGRAM(8) VALUE 'SAPMM60X', 
    DYNPRO(4) VALUE '0102', 
    END OF W_DYNPRONAME. 
    FORM GET_MAX_LINES. 
    set w_maxlines to the number of var-loop occurrences on the screen so 
    that we know when to page forward on screen 0102 
    also initialise w_next_line to zero for GET_NEXT_LINE 
    this subroutine caters for all cases - including screens without loops 
    CLEAR: W_MAXLINES, 
    W_NEXT_LINE. 
    IMPORT DYNPRO W_HDR 
    W_FLD 
    W_LOG 
    W_MC 
    ID W_DYNPRONAME. 
    LOOP AT W_FLD WHERE LTYP EQ 'L'. 
    MOVE W_FLD-LINE TO W_SCRLINE. "first var-loop line 
    MOVE W_FLD-LBLK TO W_SCRLEN. "depth of loop block 
    EXIT. 
    ENDLOOP. 
    IF SY-SUBRC EQ 0 
    AND W_SCRLEN NE 0. 
    sy-srows = total no of lines on screen 
    w_scrline = actual first line of loop so that 
    w_scrline - 1 = number of heading lines (before loop) 
    4 = no of lines at top of screen - command line, pushbuttons, 2 ulines 
    3 = no of lines after loop - uline & Page count 
    w_scrlen = no of lines in loop block 
    w_maxlines = sy-srows - ( wscrline - 1 ) - 4 - 3 
    and then 1 less but not sure why! 
    W_MAXLINES = SY-SROWS - W_SCRLINE - 1 - 4 - 3. 
    W_MAXLINES = W_MAXLINES - 1.
    W_MAXLINES = W_MAXLINES DIV W_SCRLEN. 
    ELSE. 
    MOVE 99 TO W_MAXLINES. "this required if no screen loop 
    ENDIF. 
    ENDFORM. 
    FORM GET_NEXT_LINE. 
    set w_page if page forward is required 
    W_NEXT_LINE = W_NEXT_LINE + 1. 
    IF W_NEXT_LINE GT W_MAXLINES. 
    W_NEXT_LINE = 1. 
    W_PAGE = 'Y'. 
    ELSE. 
    W_PAGE = 'N'. 
    ENDIF. 
    ENDFORM. 
    Hope it helps.
    reward if helpful.
    Regards,
    Sipra

  • How to get the HTML page size displayed in JEditorPane

    Hi All,
    I'm using a JEditorPane object in order to view/display an HTML page. The nature fo my program is that it does not know the size of the page in advance, but only on runtime. I'd like to get the size of the HTML page in order to determine the frame size according to the size of the HTML page.
    Is there a way to get the size of the HTML page from the JEditorPane?
    Thanks.

    after displaying the page in your editor pane you can get the diamension for the page by calling
    JComponent class method getSize();
    actually your question is not so clear
    use the JScroll pane then you don't need to worry about the size of the page.

  • How to get the exact cursor position on Y-axis?

    The e.getYOnScreen() on MouseEvent not returning the exact position on the content pane! When I click at the (0,0) location in the JFrame, its returning (0,30).
    It may be the height of the frame title. How can I access the height of the JFrame title?

    baskaraninfo wrote:
    I have already tried adding MouseListener to frame as well as content pane. But, there is no significant difference.I have trouble believing this. Here where I add the mouselistener to the content pane, it works perfectly:
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    class MousePositionTest2 extends JFrame
        private JTextField xPositionField = new JTextField(3);
        private JTextField yPositionField = new JTextField(3);
        public MousePositionTest2(String s)
            super(s);
            JPanel contentPane = (JPanel)getContentPane();
            contentPane.setPreferredSize(new Dimension(400, 400));
            contentPane.setLayout(new FlowLayout());
            contentPane.add(new JLabel("Click Location: "));
            contentPane.add(xPositionField);
            contentPane.add(yPositionField);
            xPositionField.setEditable(false);
            yPositionField.setEditable(false);
            contentPane.addMouseListener(new MyMouseListener());
        private class MyMouseListener extends MouseAdapter
            @Override
            public void mouseReleased(MouseEvent e)
                xPositionField.setText("" + e.getPoint().x);
                yPositionField.setText("" + e.getPoint().y);
                super.mouseReleased(e);
        private static void createAndShowUI()
            JFrame frame = new MousePositionTest2("MousePositionTest2");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
    }

  • Hi, Can anybody tell me how to get the exact measurement of a curved line in illustrator?

    I am using the ruler tool, but it only gives me the width, height, x and y axis measurements. I need to find out the exact measurement of a curved line. Any help would be greatly appreciated! thanks

    open the Document Info window, select your line and pick Objects from the drop-down menu

  • How to get the homedirectory of nis users while they login

    HI,
    I am having a solaris nis server and a file server running on solaris (pre installed).I need to add new workstations (linux) to this server, i stopped firewall and selinux on linux pc & configured network.I used authconfig to configure nis client. In the NIS server cd /var/yp/src and edited netgroup & hosts.
    and then used make command. Now If i give su <nisusername> it allows authentication but without home directory.
    Plz tell me which file i need to edit in NIS inorder to get the homedirectory of logged user.
    (might be the hostname of the linux system to be given in any file in NIS server)
    Thank you All

    I found output diffrence to the same command in preconfigured linux client(Redhat 7.3) working well in NIS and the new linux client (RHEL 4.0)
    [user@rhelclient ~]$ ps -ef | grep automount | grep -v grep
    root 2820 1 0 Jun28 ? 00:00:00 /usr/sbin/automount --timeout=60 /projects yp auto.projects -rw,hard,nosuid,noquota,grpid,intr
    root 2833 1 0 Jun28 ? 00:00:00 /usr/sbin/automount --timeout=60 /users yp auto.users -rw,hard,nosuid,noquota,grpid,intr
    root 3038 1 0 Jun28 ? 00:00:00 /usr/sbin/automount --timeout=60 /apps yp auto.apps -rw,hard,nosuid,noquota,grpid,intr
    redhat7.3:/users/sree> ps -ef | grep automount | grep -v grep
    root 1135 1 0 Jun27 ? 00:00:00 /usr/sbin/automount /projects yp
    root 1137 1 0 Jun27 ? 00:00:00 /usr/sbin/automount /users yp au
    root 1139 1 0 Jun27 ? 00:00:00 /usr/sbin/automount /homes yp au
    root 1152 1 0 Jun27 ? 00:00:00 /usr/sbin/automount /eval yp aut
    root 1176 1 0 Jun27 ? 00:00:00 /usr/sbin/automount /apps yp aut
    /homes and /eval directories are missing in RHEL4.0 and also it have a timeout=60.
    Any clues.
    thank you

  • How to get the HTML data formatted display using the Rrt template

    hi,
    I have a table which has data with html tags in it.
    eg as shown below.
    sample text is as follows:
    <BR>
    <b>MY TEST HERE HAS SOME BOLD TEXT IN IT. THIS WHOLE LINE SHOULD BE BOLD</b><br>and the rest of the text will not be bold.
    <BR><br>
    now I want to be able to display this text with the proper format using BI publisher / rt template.
    my report shows the tags as is instead of being formatted.
    please let me know how i can fix this
    Thanks
    knut

    http://blogs.oracle.com/xmlpublisher/2007/01/02.

  • How to get the fields in a display variant

    Hello gurus,
    I have created variants for an ALV display that I can select on my selection. This works fine.
    Now I need to know during the execution of the program what are the fields that have been selected in the display variant so that I can export the selected fields in an excel sheet that I send by mail. The file is currently being sent with all the possible fields .
    Is there a module function that allows the program to know which field is present in the display variant?
    Thanks,
    Parvez

    Hi,
    Try these:     REUSE_ALV_VARIANT_DEFAULT_GET.
         REUSE_ALV_VARIANT_F4.
    .also see the link for more Details:
    http://www.abapcode.info/2008/09/selecting-variants-for-initial-alv-list.html.
    Hope it helps.
    Regards,
    Rahul

Maybe you are looking for

  • Report not runing

    hi Help me i download developer Forms 10.1.2.0.2 ang data base 11g but report not runing

  • When restoring new iPhone 4S from old iPhone 3GS, Siri is gone

    OK. so I brought home my new iPhone 4S. I plugged it in and answered the questions, the synced it. Nice, apps are there but no data. OK. so get online, figure out that I need to restore from the backup of my previous phone to get my data. So I do tha

  • Problem in using the RFC model in webdynpro aplication

    Hi, I am trying to access FM CRIF_GET_EMPLOYEE_FOR_USER from the backend system in webdynpro application in two different ways 1.By using JCO classes in a java class IRepository repository;   public int getPernr(String user)   int ret = 0; String use

  • Alternative for integration process ?

    The XI integration process functionality for me looks like another example of overkill design in XI. Needs lots of additional abstract message interface declarations, difficult to follow what really happens. Question: what alternatives in XI are poss

  • My phone battery down is very fast on standby mode

    I have updated to amber (latest update) and it's make my battery down very fast. One night I make it full charge and next day when I wake up it's about 82% battery only. Now I see battery down very fast compare to old time. What happen to my phone. I