Suppressing decimal places in the screen fields

Hello All,
I need to display a quantity fields which is referring to the domain MENGE(10+3)
While displaying, it appears as 1234567890.000
here how to suppresss the zero's.
Screen field is got from program(not dictionary)
can you help me out.
Regrds,
Subramanian.

Hi,
Try the following..
in the attributes for the menge field give the Reference field (down below the attributes screen)...
Also Check the check box Right justified..
Thanks,
Naren

Similar Messages

  • Decimal places in the BCC field

    Hello,
    I created a field in the xml to save a field of type double, but only allows up to three decimal places.
    <property name="freight" data-type="double" column-name="freight" display-name-resource="freight" category-resource="categoryBasics" >
         <attribute name="propertySortPriority" value="50" />
    </property>
    with sql for the column freight
    freight
    number(28, 20)
    NULL
    I noticed that this also occurs in other fields in BCC,
    Is it possible to increase the number of decimal places for a property?
    thanks.

    Hi,
    I created the view mapping as your orientations and looked like this
    <add-item item-descriptor="itemMapping" id="AmImTest">
      <set-property name="itemName"><![CDATA[test]]></set-property>
      <set-property name="description"><![CDATA[AssetManager Test itemMapping]]></set-property>
      <set-property name="mode"><![CDATA[AmMmDef]]></set-property>
      <set-property name="viewMappings"><![CDATA[ivM1]]></set-property>
      <set-property name="formHandler"><![CDATA[AmFhDef]]></set-property>
      <set-property name="itemPath"><![CDATA[/atg/multisite/SiteRepository]]></set-property>
      <set-property name="name"><![CDATA[AssetManager]]></set-property>
    </add-item>
    <add-item item-descriptor="itemViewMapping" id="ivM1">
      <set-property name="propertyMappings"><![CDATA[propertyViewMapping=pvM1]]></set-property>
      <set-property name="attributeValues"><![CDATA[includedProperties=av1]]></set-property>
      <set-property name="displayName"><![[scopus.geralProperties]]></set-property>
      <set-property name="name"><![CDATA[ item View Mappi]]></set-property>
    </add-item>
    <add-item item-descriptor="attributeValue" id="av1">
      <set-property name="value"><![CDATA[id,name,description,freight]]></set-property>
    </add-item>
    <add-item item-descriptor="propertyViewMapping" id="pvM1">
      <set-property name="propertyView"><![CDATA[pv1]]></set-property>
    </add-item>
    <add-item item-descriptor="propertyView" id="pv1">
      <set-property name="description"><![CDATA[BIZUI Basic editor for double properties with more than 3 decimal characters.]]></set-property>
      <set-property name="attributes"><![CDATA[inputFieldMaxlength=pvAtrDef1]]></set-property>
      <set-property name="mode"><![CDATA[aMgrMmView]]></set-property>
      <set-property name="isComponentPropertyView"><![CDATA[false]]></set-property>
      <set-property name="isReadOnly"><![CDATA[false]]></set-property>
      <set-property name="type"><![CDATA[double]]></set-property>
      <set-property name="name"><![CDATA[SCO BIZUI with more than 3 decimal characters.]]></set-property>
    </add-item>
    Did I missed something?

  • Printing to two decimal places on the screen

    Hi everyone...
    I am using mysql as my DB...my field is declared there as decimal(8,2) means to 2 decimal place..when i am getting the result i also need to print to 2 decimal place...
    so when i do(rs.getDouble("Price")) it is not printing as two decimal place...how do i get it to print to 2 decimal place...
    Thanx a lotttttt

    javax.text.DecimalFormat dfrm t=new java.text.DecimalFormat("#0.00");
    //or another format see API doc for DecimalFOrmat
    String result = dfrm.format(rs.getDouble("Price"));

  • Decimal places of the field

    i have some fields of datatype  curr and domain wertv6/wertv7...which has 2 decimal places..
    but in my screen i'm getting 5 decimal places for all those fields....how is this happening?

    hi Anil,
    go to se84
    expand abap dictionary
    go to data element
    and write domain name = wertv6,data type = curr,decimal = 2
    you will find lots of data element.
    hope it solves your problem
    thanks
    Sachin

  • Place Cursor In Screen Fields

    Hi abapers and experts!
    In my module pool screen there is
    Date:
    Department:
    Username:
    Password:
    I want to place the cursor in Date field: after entering it, the cursor must automatically placed into Department.
    Kindly help out as early as possible.
    Thanks for ur valuable solutions.
    Arvind NN

    Hi Arvind,
    Try this way.
    <li>Flow logic
    PROCESS BEFORE OUTPUT.
      MODULE init_100.
    PROCESS AFTER INPUT.
    <li>Code for module init_100.
    *  MODULE init_100 OUTPUT
    MODULE init_100 OUTPUT.
      date = sy-datum.  "DATE -screen field for date
    " During PBO processing, SET CURSOR statement sets the cursor in the screen layout of the current screen.
      SET CURSOR FIELD 'DEPARTMENT'."DEPARTMENT is the screen field for the department
    ENDMODULE.                    "init_100 OUTPUT
    Thanks
    Venkat.O

  • Populating the screen field when the cursor moves to that field

    hi every one,
    I want to populate the screen field(MODULE POOL) When the cursor moves to that field.
    So can any one help me out with this.
    EXAMPLE..
    I want to populate 'S10_TOT_PRICE' (Total Price). When the fields like 'S10_PIECES' (Number of Pieces) will be entered. I want to populate 'S10_TOT_PRICE'  without pressing any button on the screen nor when enter is hit. When the field 'S10_PIECES''  will be entered with some value and the cursor moves to 'S10_TOT_PRICE' . The Total Price field should be populated. Please help me out with this.
    THANKS & REGARDS.
    Mahanta.
    POINTS WILL BE REWARDED.

    Sorry but look at this SAP documentation <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/54/0608162d0711d295520000e8353423/frameset.htm">User Actions on Screens</a>
    Extract :
    <i>User Actions on Screens
    There are various ways in which users can interact with screens.
    Filling Input Fields
    Users can enter values in any input field on the screen, or change the value using the mouse, in the case of radio buttons and checkboxes. The contents are placed in the corresponding screen field. Filling an input field does not normally trigger the PAI event. Exceptions to this are Checkboxes and Radio Buttons with Function Codes and input fields with Drop Down Boxes.</i>
    So, i fear that you cannot "take hand" when user fill a numerical field to perform calculations and update the screen.
    Regards

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • How to Read the Screen Fields after a Transaction ?

    Hi all,
    I am working on the Transaction 'O4K_LICENSE'. After the transaction is run, it generates an Internal License number which is displayed on the screen. I tried using 'GET PARAMETER', but as the CALL TRANSACTION is called within a loop, the SAP Global memory is not getting refreshed and iam getting the same value for every loop for the Internal License Number.
    Is there any function Module other than DYNP_VALUES_READ to get the screen field values? I tried using the above function module, but in vain and it is not getting any values.
    Warm Regards,
    Vijay.

    Well .... let me explain this very clearly.
    The table OIHL has a composite primary key which is the combination of "External License Number" and "Internal License Number". The latter is generated after running the O4K_LICENSE transaction.
    Moreover, iam attaching every record with a record generated in the program. Now, the same User(ERNAM) can create records having the same External License Number.
    For example:
    If i created a record yesterday with an external License Number 123, then say an internal lic no of 3 is assigned to it.
    If i Create another record today with the same external lic no of 123, and an internal no of say 20 is attached to it, then i donot have any criterion to select the one which i have created today, as it fetches both the records.
    To add to the worst, there is no timestamp field also.
    Message was edited by: Vijay Sai

  • BDC-How to get the value of the screen field

    Hi All,
    I am facing a problem while writing the BDC code for the XK02 transaction.
    Recording:
    We have recorded like this :after giving the values in the initial screen(vendor no and purchase group and selecting the purchasing data check box) and enter into the second screen and then click on alternative data icon.There we ll have set of plants we have to check auto ordering (by selecting the plant and click purchasing icon)for the plants which are in the given file.
    Problem:
    Suppose there are five plants(like 1,2,3,4,5) for a particular vendor but we are having only three plants in the file for which auto ordering check has to be done.The problem is that its doing auto ordering check for the first three plants(1,2,3) in the transaction.But  in the file we are having Plants like (1,3,5).How to get the screen field value directly or is there any other way to resolve the problem?

    Dear Raja,
    You cannot get hold of screen values while running through the BDC Operation.
    Only way you can get the value --> populating an Internal Table from the Database Table.
    Regards,
    Abir
    Don't forget to award Points *

  • How to position the Stage at the first available place on the screen

    Im creating a Stage,
    but for any reason when I dont define x,y it shows in different places on the screen, and sometimes outside of the screen
    if I set x=0 and y=0 I have problems, because some user, like me, use the taskbar on the top of the screen,
    anybody knows how do workaround this ?
    this is the code of my Stage
    public class Game extends Stage {
        public var tick: Timeline = Timeline {
            repeatCount: Timeline.INDEFINITE
            keyFrames: [
                KeyFrame {
                    time: 0.01s
                    action: function() {
                        mainLoop();
        // main game loop
        public function mainLoop(){
            for (node in scene.content) {
                if( node instanceof Updatable){
                    (node as Updatable).update();
        public function play(){
            tick.play();
    }and this is how I'm using it
    var game: Game = Game {
        title: "Cabecudinhos, episódio 1 o ataque dos mosquitos"
        x: 0
        y: 0
        width: 800
        height: 600
        scene: Scene {
            content: [
                background
                littleBox
    function run(__ARGS__ : String[]) {
        game.play();
        soundtrack.play();
    }

    You can ask Java for that.
    You can just center the stage on screen, that's quite easy given the screen dimensions:
    import java.awt.*;
    var dim: Dimension = Toolkit.getDefaultToolkit().getScreenSize();
    println("Screen is {dim.getWidth()}x{dim.getHeight()}");I suppose it works for main screen, there is code to get the info for all screens (if several are connected).
    If you need to know the placements of the taskbar and other bars, you need to get the insets, which is a bit more convoluted.
    var ge: GraphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();
    var gsl: GraphicsDevice[] = ge.getScreenDevices();
    var gcl: GraphicsConfiguration[] = gsl[0].getConfigurations();
    var ins: Insets = Toolkit.getDefaultToolkit().getScreenInsets(gcl[0]);
    println("Insets are T {ins.top}, L {ins.left}, B {ins.bottom}, R {ins.right}");It shows B 34 for my setting and T 34 if Windows' taskbar is on top, etc.

  • How to find where the screen field is stored in table

    Hi all,
    How to find where the screen field  is stored in the table .
    for some transactions if i press F1 on the field and after checking for the technical help.
    I can only find the struture for the screen field, but whereas i need table name for it.
    Can anybody help me how to find the table name where the field is stored.
    Regards,
    Madhavi

    Hi,
    Just hitting a F1 on screen field and getting structure name will not help in getting table name.
    First you need to know the flow of data in the reqd module, which will help you know all the tables in that module with there most of the fields with the data flow, now you need to work on your own to figure out that in which actual tables that value is stored.
    Hope this helps you.
    Regards,
    Tarun

  • How to maintain default values to the screen fields.

    hi,
    i m creating screen in se51.
    when i press New button the screen is filled with default values
    nrart = 'h' and proz1 = '100' .
    how can i set default values.
    plz give me a response

    HI,
              You can set default values on to screen fields using SET and GET PARAMETER command, You need to assign a PARAMETER ID for that screen field and then use SET PARAMETER before the screen is called or in the PBO of the screen, you can set default values direcly in PBO of the screen but then you have hard code those value or read the data from database.
    You need to have a TABLES statement to create a strucutre that you used to create your screen fields, then when you set value to these strucutre fields these values will get tranported to the screen fields automatically.
    Regards,
    Sesh

  • Increase decimal places in the PO quantity and Price

    Hi All,
    Can the decimal places in the PO( ME21N) creation be increased more than 3 decimal places in quantity and price?
    I did changes in UOM's in CUNI, I increased the decimal places upto 14 but still it does not take more than three i-e., 0.001 maximum.
    Is there any other way to handle this?
    Request inputs on this.
    Note 569326 - ME9F: Customized decimal places are not taken into account........ found this OSS but this correction instruction is not for our pack level ECC 6.0
    Best regards,
    Sridhar

    hi
    In case if you are already working in production remember that decimal places should not change. It will affect all previous data.
    For your problem best solution is make order unit as 1000. So that your problem will solve
    e.g. instead of 2.009 inr for 1 Unit use 2009 inr for 1000 unit.

  • Decimal places on the result row is incorrect

    Dear Expert,
    I met a problem that decimal places on the result row is incorrect.Anyone can help me?
    On key figure balance,we do the currencies translation,also we set the key figure should have two decimal places.
    We set a fomular to calculate the total result of Account A,B,C.
    (Total result = account Aaccount Baccount C).
    If we manually sum up the balance of account A,B,C displayed on analyzer,which are rounded to 2 decimal places,the result should be 601.25(100.61200.38300.26),but the actual total result executed by query is 601.24.
    In fact we need the result 601.25 instead of 201.24.
    I take the example as following:
    Account      Balance
    Account A  100.61
    Account B  200.38
    Account C  300.26
    Total result 601.24
    Thank you in advance.
    Best Regards,
    Maggie
    Edited by: Maggie Ma on Sep 25, 2008 9:17 AM

    your "problem" is, that BEx is not totalling the "displayed" values but the real values
    try a summation on the following in Excel:
    100,605
    200,375
    300,26
    then format the cells to show 2 decimal places only
    do you see the result changing?

  • Formatting decimal places in the X Axis

    I’m having trouble limiting the number of decimal places in my X Axis on a 2 Axis plot.
    I am running a script file (SUD) that sets all the other parameters in the Plot. The “Report “ file is called up and then the script controls the functions.
    This is only a small section of the code. I haven’t found a command to set the Decimal place in the “help” page.
     ie: Call GraphObjOpen("2DAxis1_XAxis1")
        D2AxisXFormat    = " "
        D2AxisXAng       = 0
        D2AxisXRelPos    = "bottom"
        D2AxisXFont      = ""
        D2AxisXSize      = 2
        D2AxisXColor     = "blue"
        D2AxisXColorRGB  = 50266112
        D2AxisXAutoColor = 0
        D2AxisXBold      = 0
        D2AxisXItal      = 0
        D2AxisXUndl      = 0
        D2AxisXStrOut    = 0
        D2AxisXFrame     = 0
      Call GraphObjClose("2DAxis1_XAxis1")
    And:
    When I open the “Curve and Axis Definition” window of the graph on the report page ,and set the “Format:” function to display “d.dd” It seems the script is overwriting the format that I set.
    This is what I have now and would like to display only 2 decimal places in the X Axis. Can you help?
    Thanks!
    SJD
    Solved!
    Go to Solution.
    Attachments:
    X-Axis Decimal places.jpg ‏17 KB

    Thanks Brad for you quick response.
    It kind of worked... I think I might have something else going on. Not sure what though.
    With the changes made in the script you suggested, the X-Axis has changed to two digits but now it displays  " 1.dd "
    Any thoughts where else I might have gone wrong?
    Thanks again
    SJD
    Attachments:
    2013-03-13_151027.JPG ‏12 KB

Maybe you are looking for

  • How to send an email with a flash animation?

    I hope someone can help me with this!!! I want to send an animated email, but I want it to be embbeded in the email and not as an attachment. I have placed it in the server and tried to export it as a complex HTML X--it is not working... please, if a

  • PB will only start in target disc mode, please help

    On normal start up, I get the "You need to restart your computer......" message with start symbol behind the writing. every time I try to restart the same thing happens. I've tried all the keys on start up tricks and the only ones that work are optio

  • KeyChain passwd not updated to the current Active Directory passwd

    Hey All, i recently changed my AD passwd from my domain member mac pc. Since then whenever i login, i get the following screens asking for my previous AD passwd- Any idea how can this be updated to my current AD passwd? Do comment.. -Alan.

  • Show percentage  based on summary values in cross-tab

    I am using Crystal XI. I have a cross-tab that has actual hours and standard hours as the summary fields. The column is operation and the row is clock#. I need an additional column that shows an efficiency percent. It would be the sum of standard hou

  • Problems calling java classe using WSIF in BPEL 10.1.3.3

    Hi, I am working on a POC for a telecom gaint in Sweden. One of their requirement is to invoke java library. Inorder to do it, I have followed the below steps: 1. Wrote a wrapper java code to a class in this library.(Attached with this mail) 2. Using