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

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.

  • 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

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

  • 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 set  two decimal places in currency inr

    hi,
    i want to set two decimal places for my co.code currencu inr.  In t-code oy04 there is no 2 decimal places. Please tell me how set decimal places so that amount in account balances should be in two decimal places.
    thanks
    amol

    Hello,
    If your currency code entry isn't in OY04 customizing step, your currency code has 2 decimal place automaticly. If you want to define a special decimal place without "2", you must define it in OY04.
    Regards,
    Burak

  • Currency Decimal Places setting restore

    Hi Experts ,
    Unfortunately we have changes the setting for currency decimal places in SPRO ==> SAP NETWEAVER ==>GENERAL SETTINGS ==>CURRENCIES ==>SET DECIMAL PLACES FOR CURRENCIES.
    for Currency INR from default 3 decimal places to '4' decimal places, due to this the amounts entered in MM inforecords were changed e.g. the amount which was entered as 15.20 inr changed to 1520.00 inr, After getting reply from Fourm and the senior consultants we have deleted the INR currency from the about setting i.e.from table 'TCURX' after doing this the amounts get corrected i.e. from 1520.00 INR to 15.20 INR.
    But again the same (adverse) change is being seen in amounts for MM Inforecords and SD Condition Records
    If we enter a new record it shows the correct amount.
    How can i correct the previous amounts. It has happen suddenly and what guarantees that this should not happen again.
    Please give me the solution as early as possible. We have to Go-Live in next 2 days..
    Thanks in advance
    Amol

    HI, anand,
    SAP suggest never touch decimal places.
    Regards,
    Satish

  • Problems of setting values% with 2 decimal places in any graphics. What sho

    Guys, I have the xcelsius 2008 and can not make it work chart with values % and 2 decimal places. Already set up everything that I know the spreadsheet and graphics.
    Someone knows what can I do?
    Thanks Anderson - Sao Paulo - Brazil.

    Hi Anderson,
    To get values in % and upto two decimal, follow the below steps:
    Go to Chart properties-> Appearences Tab-> Text tab.
    Select the "Vertical Axis Labels" and go to the Number format present below in the window.
    Change the format to "Percentage" and set decimal places to "2".
    This should work.
    Please revert incase you have any queries.
    Thanks,
    Amit Mathur.

  • Decimal places for JPY currency in change documents

    Hi Gurus,
    For opportunities in SAP GUI the change documents for JPY show incorrect numbers.
    The number is divided by 100 (two decimal places added).
    Checked the CDPOS table and found the values already divided (two decimal places added).
    SPRO->General Settings->Currencies->Set decimal places for currencies is set for 0 decimals for JPY.
    Is there any way I can get correct values in the change documents?
    Please advice. Any hint is useful.
    Thx,
    Martin Kuma

    Hi Naren,
    Thank you for the tip, however the TCURX table is changed via customizing and should be changed only during the system initialization.
    What I would like to do, is to assure that the system displays the values in change documents correctly. It should apply the currency conversion for the data displayed the same way it does for all the tables.
    Do you have any idea, how should I do this?
    Regards,
    Martin Kuma

  • Decimal Places in purchasing

    Is it possible to maintain price with more than 2 decimal places in purchasing documents (contarcts/PO)?
    Thanks!
    Alok

    If you want to maintain 4 decimal places in price field
    of Po then you can define decimal places at currency key level.For example for curreny USD if you want to maintain the 4 decimal places then kindly maintain the decimal value as 4 in table TCURX for currecy key USD.the field is CURRDEC.You can also maintain this table via customizing SPRO->General Settings->Currencies->Set decimal places for currencies.
    This should helps you.
    Regards,
    Sunitha.

  • Decimal place problems

    Dear Gurus,
    Greetings.
    The issue is 2 days back I noticed that all my values in the Orders are appearing with one decimal place where as we have maintained in 2 decimal places. Like, we maintained 1234.56 but now it is appearing as 12345.6
    When we enter a value in VK11 as 1234.56, it is getting populated a s1234.56 in the Order, but all the other values automatically populated are coming in single decimal place.
    In IMG under Currencies / Set Decimal Places for Currencies, if I change the setting to 3 decimal places (since 2 decimal places is not available), my values are showing as 123.456.
    But when we check at Table level, it is displaying in 2 decimal palces like 1234.56. That means at the Table level, values are almost always correct but at Transaction display time they are not coming in the correct way.
    How to correct this?
    Regards.
    Venkat - Hyd

    HI
    > Since very old thread and no more inputs, let me thank every one for their help and close this thread here.
    >
    This is for the benefit of the forum you have closed all your previous threads as you might have unable to post a new thread.
    you have mentioned as since it is a old thread and no more inputs closing the thread
    It is your responsible as a forum member if you have solved the issue yourself, then let the other forum members know how you have solved and what is the outcome
    regards

  • Changing the Decimal places for Percentage in cost distribution in SC

    Hi Gurus,
    Is it possible to change the number decimal places for the Percentage field in cost Assignment tab in Shopping cart in cost distribution option?
    The user wants 3 decimal places, currently we can enter only 2 decimal places.
    I have gone thro' couple of blogs which are talking about changing the price decimal and not the percentage field decimal. (in IMG setting: General settings > Currencies > Set Decimal places)
    So, if anyone come acorss this issue, please let me know.
    Thanks and Regards,
    Nowsath

    Decimal Places Factor of the Receiver Weighting Factors
    Specifies the number of valid decimal places with which the given weighting factors are valuated.
    Example
    You enter 123456 as the weighting factor. Depending on the factor, this number is interpreted as:
    Factor Decimal places Weighting factor
    1 0 123456
    10 1 12345.6
    100 2 1234.56
    1000 3 123.456
    10000 4 12.3456
    100000 5 1.23456
    1000000 6 0.123456
    Please check with your FICO consulant .what settings you have in backend system.
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/bdbdc4575911d189240000e8323d3a/frameset.htm
    Muthu

  • Changing decimal places for currencies

    Hi everyone,
    I'm a complete begginer to SAP BI and I need to change a value in SPRO > General Settings > Currencies > Set Decimal Places for Currencies, but the option that I want doesn't exist.
    I need to add a new entry with the value: currency - EUR6 and decimals 6, but there is no 6 available. Can anyone tell me where can I add this or what is the table where this information is???
    Thanks in advance!
    Rogério Brá

    ok I think it works - just try and play
    This is what I did (sort of same scenario - if you get my drift)
    Currency Key MGF - translation ratio 1000:1
    Exchange rate is : 11:02750 to the Euro
    Invoice entered for 1,000,000.00
    Currency calculated as 90.68 eur
    (ie 1,000,000/(11.02750 * 1000))
    You can play aroudn with direct/indirect to ge the factors right
    But it works (I thought it did - I am qualified FICO honest!!)
    This wont get you around displaying 6 decimals - BUT it will help with currency conversion

  • Decimal Places are not permitted

    Hello,
            The Vendor Invoice amount in Rs 25920.72 and the currency is INR, When i am entering in T.code FB60 i am getting an error "Decimal Places not permiited". i made changes in T.code SU01 (Maintained User) and T.code OY01 (Defining Countries in SAP Systems) respectively but still getting the same error as "Decimal Places not permitted". After that i checked in T.code OY04 (Set Decimal Places for Currencies) and there Currency INR is reflected and "no decimal places"  field is assigned to it. What should be done. Please Help!
    Regards
    Ashwin

    Yes. you are right, once done the transaction for INR
    Your are not suppose the change decimal settings.
    So it will effect old transaction.
    Please check the note mentioned. below. Hope it helps.
    Note 172410 - Percentages of completion with decimal places
    regards
    vamsi

  • Currency Decimal places

    Hello Experts,
    I am unsing SRM 4.0 SP13 & standalone scenario.
    At present RON currency set with "No Deciamal Places" in Currency setting.  Now user wants to put 2 decimals with this currency.
    In SPRO -> SAP Web Application Server -> General Settings -> Currencies -> Set Decimal Places for Currencies,
    If i remove the RON currency,:
    1. The system will allow 2 decimal palces.
    2. Is there any impact on existing documents ( i have one docuemnt in PRD system with RON currency). If yes, how we can resolve.
    FYI: The present Decimal format is 1.234.567,89.
    Thanks in avance for your valuble inputs.
    Regards,
    Suneel Kumar.

    Hi
    RON which country boss. help others to do help very fast? romania and russia i could see..

Maybe you are looking for

  • How to restrict Date field entered in a text field should be of MM/dd/yyyy

    Hi, I have an text field for Date entry,the Date format is MM/dd/yyyy,while entering the value i want to verify wether the values entered are valid or not,like month should n't be more than 12,date value depends on month should not exceed 30,31 or 28

  • No data delivered via RFC

    Hello, I´d like to know if there are is anything particular I have to keep in mind when creating a function module which is to be called by a Web Dynpro? I´ve experienced the problem of having no result in my Web Dynpro table, although everything sho

  • Ideas for a new program

    Ive recently finished making a chat program using (predominantly) nio. I learnt a lot about sockets, network programming etc which was really interesting since ive never made anything along those lines before. Im now wanting to learn more about netwo

  • Attaching an Apple Remote to a MacBook?

    I've seen pictures of the iMac online and the Apple Remote looks like it's attached to the right side of the monitor. Is there a way to attach the remote to a white MacBook or did someone use velcro in the iMac picture? ; ) Thanks...

  • Footage captured without audio

    I'm hoping someone might be able to enlighten me with possible causes of the following issue. I've been capturing Digi Beta via Kona LH onto an internal drive (not the system drive) as Apple Pro Res HQ PAL. Even thought 2 stereo tracks have been capt