In VC WEBDYNPRO compiler mode, how to set decimal places to 2

The compiler mode is webdynpro,
The ivew table column's data type is num type,
The column show a curreny data.
Now the problem is when the num data is like a number as "1000.00",the ".00" will not show,but when the value is "1000.01" ,it show "1000.01". I want it always show  the formatting like "X.XX".
There is also no formatting property to set in the column like in flash compiler mode then i can set decimal places to 2.
What should i do?

Hi,
You can use Decimal Format Class and declare something like:
DecimalFormat df = new DecimalFormat("#,##0.00;(#,##0.00)");
wdContext.currentContextElement().setSueldoTxt(df.format(wdContext.currentOutputSueldoElement().getPe_Betrg()));
You'll have the two decimals...!!
Good Luck and regards,
Maria Margarita Monteverde

Similar Messages

  • Set Decimal Places in a swing

    Ok so i know how to set decimal places in a applet and a command prompt type build but in a GUI i am trying to set them and it isnt working my code is:
    doc.insertString(doc.getLength(), strFICA[j] + "\t", textPane.getStyle("regular"));
    i went and added the information
    Decimal Format twoDigits = new Decimal Format("000.0");
    doc.insertString(doc.getLength(), twoDigits.Format (strFICA[j]) + "\t", textPane.getStyle("regular"));
    it gives me the error cannot find symbol
    symbol: method Format(java.land.String)
    Lacation: Class java.text.DecimalFormat
    doc.insertString(doc.getLength(), twoDigits.Format (strFICA[j]) + "\t", textPane.getStyle("regular"));
    ^
    what does this mean and help will be great

    Help given here is voluntary and people do try hard, but your questions are as unintelligible as they are naive. You really need to do some ground work first by reading the tutorials and trying things out for yourself before posting here.
    Those that get the most help are those that demonstrate they are willing to help themselves more than you seem to be.

  • How to maintain decimal places in BOM Qty & what is the essence of base qty

    Hello PP members
    How to maintain decimal places in BOM Qty & what is the essence of base quantity in BOM ?
    Thank You

    ur first question is not understood, You can have maximum of 3 decimals in BOM item qty.
    Base qty is the qty which is refered to all the BOM items.
    example -
    Product X, base qty 1
    Raw material 1 - componen t qty= 1
    Raw material 2 - Component qty= 5
    This means To produce Product with qty1, it needs raw material 1 qty 1  and raw material 2 qty 5.
    This means To produce Product with qty10, it needs raw material 1 qty 10  and raw material 2 qty 50.
    This is the meaning of Base qty..it is the referece qty refered to all the components.
    About the decimal places
    let us say  example 2
    To produce Product with qty1, it needs raw material 1 qty 1  and raw material 2 qty .0001.
    When you enter this in SAP for the raw materialm 2 system will give error message that you  need to enter the qty with maximum 3 decimal places, hence you need to enter as below
    Product with qty10, it needs raw material 1 qty 10  and raw material 2 qty .001.
    This is how you need to adjsut the base qty and component qty with decimalplaces moer than 3,
    pl come back

  • How to decrease decimal places in invoices

    Good day,
    How do i drecrease decimal places in invoices. For example , i have set the decimal places to 4 for costing purposes but i want the final invoice to be 2 decimal places for display purposes. i have tried decreasing the decimals using the decrease decimals icon but the decimals are still 4.
    Thanks

    Hi Wendy,
    This is System Standard that If you increased Decimal Place then you can not decrease those decimal Place again.
    If you want this then you can do this in (Print of Document) Document Layout through Crystal Report.
    Hope this help
    Regards::::
    Atul Chakraborty

  • Smart Forms - Set decimal places in display formatting

    Hello,
    i have a variable (quantity 15 field with 3 decimal places) which i want to print via smartforms.
    sap help describes that you have to set (.<number>)
    for example: &field(.2)& to do that.
    this doesn t work at all.
    Does anybody know how you can do that?
    I would appreciate an answer, because that costs me already alot of time.
    thanks alot!
    Jasmin

    Hi Jasmin,
    We use this notation in a smartform to print weights and it works fine. Perhaps you should also mention the total numbers to display before the decimal?
    We have used: &BRGEW(8.0)&
    Regards,
    John.

  • How to allows decimal place for unit of measure of order confirmation

    Hi Guys
    we have some special cases here that need to confirm the order quantity as decimal place,is that possible made some customizing in code CO11N? or have some ways support it .....
    ex. work order A   10 EA
    - operation 1   : colse 10 EA
    - operation 2   : close 4.5 EA
    Regards/Eric

    Hi,
    You can set a UoM to allow decimals in transaction CUNI. But i fail to understand why you would want to set EA to have decimals.
    If a material is to be managed in decimals then evaluate the usage of a different UoM which allows for decimals.
    Regards,
    Vivek

  • Casting Number as Char - how to hide decimal places?

    I am casting a number as a Char because I am concatenating it with other things. The problem is that when I cast to char, it displays two decimal places of just 0's. I really don't want to show the decimal place or anything after it. Is there a way to remove them?
    Thanks

    Hi,
    You can have two approaches for the same.
    1> cast( cast(column as int) as char)
    2> Go to the column properties(i.e the finger mark on the coulmn heading). Then select the data format tab and check the override the default data format tab. Then you can set the decimal places.

  • Apex Listener in standalone mode, how to set/reset db connection.

    Sometime ago I installed Apex Listener for testing, then I removed it.
    Now I downloaded last version, installed it in standalone mode and try to set the DB connection.
    However when I try to edit in listenerAdmin page the db connection parameters I can't : they are greyed and report the connection informations I gave in my first test installation.
    How can I change them ?
    How can I avoid all fields in listenerAdmin greyed ?
    Tks
    Tullio

    Hello Tullio,
    you can run /listenerConfigure/ only as long as there is no configuration available. The database parameters can only be setup when the APEX Listener is not connected due to the state of its connection pool. Once it is established, you can only configure it offline by editing the apex-config.xml . That's why the parameters are greyed out in /listenerAdmin/.
    You probably only removed the war file of your test installation, but not the apex.home including the apex-config.xml that is stored in there. So your new installation found the old home and reused the connection.
    You could either edit the apex-config.xml or delete the apex.home and rerun /listenerConfigure/
    If you run on a windows system, you'll find the apex.home in your users TEMP, usually located in the temp folder underneath the local settings of your user profile. The directory to locate is now called "apex".
    -Udo

  • In webdynpro for abap, how to set the component of "inputfield" resizable??

    hi,expert.
      there is a property 'resizable' both in components: TEXT and INPUTFIELD,  but it only effected in TEXT component,and not in INPUTFIELD component
      i don't know how to make inputfield resizable.....hope anyone can give  some suggestions.
    thanks in advanced.

    What release level are you working on? I checked my local 7.02 system and I checked SAP's internal developement system where Web Dynpro Froundation gets created and neither had a resizable property on the inputfield.
    What do you mean by TEXT?  There is no UI element called TEXT. We have TextView and TextEdit. Neither of those have a resizable property either.

  • How to set Decimal Point position from right to left Serial Read Evaluate Number within Range over RS-232

    I am new to Labview, I am communicating with a TQ8800 Torque meter via RS-232. The 16 digit data stream is as follows:
    D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
    Each digit indicate the following status :
    D0 End Word
    D1 & D8 Display reading, D1 = LSD, D8 = MSD
    For example :
    If the display reading
    is 1234, then D8 to D1 is :00001234
    D9 Decimal Point(DP), position from right to the left
    0 = No DP, 1= 1 DP, 2 = 2 DP, 3 = 3 DP
    D10 Polarity
    0 = Positive 1 = Negative
    D11 & D12 Annunciator for Display
    Kg cm = 81 LB inch = 82 N cm = 83
    D13 1
    D14 4
    D15 Start Word
    I am using a modified version of the basic_serial_write_read.vi. I am attempting to parse the 16 digit data stream extracting out the number and whether it is positive or negative. I am having trouble with the decimal point placement. Is there an example that could help me with this? After the number is parsed I am then comparing it to see if it is within +/- 9.2 N cm. If it is then the test passes. I am outputing the data to a file. I have included the vi. Also how can I check for different units of the annunciator. Any help would be appreciated.  Thank you.
    Attachments:
    basic_serial_read.vi ‏100 KB

    What is the definition of the End Word?  You will likely need to figure this out experimentally (the manual doesn't seem to define it).  Whatever it is, you should set that as the termination character and enable the termination character.  That will help you in keeping your messages in sync.  Just tell the VISA Reads to read more than a message should be, something like 30 should work nicely.
    The error you are seeing is a buffer overload.  This means that the instrument is sending data to you faster than you can process it.  So you need to figure out how to perform the read faster.  File IO is slow.  So you should put that into a seperate loop so that your loop does nothing but read the data from the port as quickly as the data comes in.  Use a queue to send the data from the reading loop to the logging loop.  This is known as a Producer/Consumer.
    And here is a cleaned up version of your code.  No need for your express VI or the formula node.  Some other general cleaning up also done to make it easier to read.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    serial read.png ‏80 KB

  • Set decimal places in Grid

    Hi.
    I have a calculation field in my SQL statement that populates the Grid column and it only shows two decimals.  How do I set it to calculate more than two.  I tried it in the SQL Statement....Convert(decimal(18,3),dbo.RDR1.OpenQty * dbo.OITM.SWeight1).  I dont see any oGrid.Columns.Item("Col12") property????

    Hi guys,
    This is the query im using and the last column(Col12) is a calculation field...
    oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT dbo.RDR1.DocEntry, dbo.RDR1.DocDate, dbo.RDR1.ShipDate, dbo.ORDR.CardCode, dbo.OCPR.Name, dbo.CRD1.City, dbo.RDR1.ItemCode, dbo.RDR1.WhsCode, dbo.RDR1.Quantity, dbo.RDR1.OpenQty, dbo.RDR1.Weight1, <b>CONVERT(decimal(19,3), dbo.OITM.SWeight1 * dbo.RDR1.OpenQty)</b> FROM dbo.OITM RIGHT OUTER JOIN dbo.RDR1 ON dbo.OITM.ItemCode = dbo.RDR1.ItemCode RIGHT OUTER JOIN dbo.ORDR INNER JOIN dbo.OCPR ON dbo.ORDR.CntctCode = dbo.OCPR.CntctCode LEFT OUTER JOIN dbo.CRD1 ON dbo.ORDR.ShipToCode = dbo.CRD1.Address ON dbo.RDR1.DocEntry = dbo.ORDR.DocEntry WHERE dbo.ORDR.DocStatus = 'O' ORDER BY dbo.RDR1.DocEntry")
    The decimal points is drawing from "Amount" and I've changed the value in the "Display" Tab in "General Settings" for the "Amount" to 3.  It now displays three decimals places...gr8.  But I dont want it to change the other Documents in the system, just this column on the grid.  I am also going to try and read all the multiple selected values of this column and add them up and display the total at the bottom of the screen.  I am also going to try to group and put the subtotals on the grouping line according to the rdr1.DocEntry.
    The point of this excersize is to group the open orders with its open qty's weights so that they can be selected and processed for delivery based on the tonage of the vehicle available for delivery.
    Adele...How do I set the type of this column to use the "Units" and not the "Amount"?
    I look forward to any help.
    Thanks

  • Using a variable to set decimal place in SAPScript

    Hi Freinds,
    is it possible to use variable as decimal indicator anf if yes please how.
    &symbol(E.2)& = two decimal
    my intension:
    &symbol(E.2)& = to replace 2 with variable e. g. &QAMV-STELLEN&
    Thanks,
    Blacky

    Hi Uma,
    For Example
    If the output of &EDIDC-DOCNUM& = 50000.231
    Then:
    &EDIDC-DOCNUM(.2)& = 50000.23
    Now my intension:
    &EDIDC-DOCNUM(.<variable>)& where <variable> = 2
    &EDIDC-DOCNUM(.<variable>)& = 50000.23

  • How to change decimal places in currency

    Hello ,
    I am an abapers,I Have one problem while displaying the currency fields in my Report.
    My problem is In Fbl5n,it displaying amounts as 50,000 for document number,
    But in my database,It is storing as 500,00 for that document number.I need to store the amount as 50,000. is there any settings to be changed to solve this problems
    For this how can i solve this problem.
    Waiting for your favourable reply
    Regards
    Maruthi

    Hi
    You can change your profile in SU3 transacton.
    Thanks
    Ashok
    Assign points for useful answer

  • SQL*Loader how to handle decimal place

    Hi all
    I need to load data into table with number field (12,2)
    however, the source data is 1,025.02. Then the data cannot be loaded and in log, there is error message Invalid Number
    Please kindly advise how to handle this in control file?
    Thanks
    Thomas

    load data
    ,YOUR_NUMBER_COLUMN .... ... ... " to_number(:YOUR_NUMBER_COLUMN,'999G999D99' , 'NLS_NUMERIC_CHARACTERS=''.,'' ')"
    )

  • How to correct decimal places in script

    Hi,
    I have a packed integer variable. The value stored in that variable is 8,156,265.598.
    But i want it as 8.59 in the form.
    How to achieve this?
    Ezhil.

    use [this link|http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/content.htm] on formating numerics fields for display.. [<click>|http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/content.htm]

Maybe you are looking for

  • View with instead of trigger still not updatable

    Hi everybody, could somebody explain how to make this view updatable? I have the following log: CREATE OR REPLACE FORCE VIEW BRS_V_VERPLICHTINGEN (VERPLICHTING_NR ,ONTSTAANSJAAR ,OMSCHRIJVING ,DATUM_VERANTWOORDING ,OBJECT_NR ,OBJECT_NAAM ,CDG_CODE ,T

  • OS X mavericks Won't install on Plextor M5S 256GB

    Hi, I bought a Plextor M5S 256GB  for my mid 2012 macbookpro 13", and impossible to use my SSD so far... First I tried to clone my HDD to the SSD with carbon copy cloner, it works only when my SSD is in an external usb box... slow. When I select it t

  • Urgent : Exception Type Problem

    Hallo, I am having strange problem with Exception type. we are having following architecture on Serverside. EJB -> SessionFacade-Bean also EJB (calls EJB's methods) -> Businessdelegate (Calls SessionFacade Method) -> Web-Tier with struts (call Busine

  • Error when executing a reader

    Hey, Quick question, but I will need an answer ASAP. I recently upgraded to the ODAC release that just came out and when I try to ExecuteReader() on an Oracle command object (cast as a regular command object because I am using the Enterprise Library

  • Overtime Calculation

    hi everybody, actually i was doing an audit for a client.  there is a scenario for overtime calculation is like (Basic Salary/30)/81.5No of Hours based on this calculation employee will get loss in the month of february why bcoz no. of days in that a