Decimal

Hi abapers ,
My requirement is , ALV report contains  field of quan datatype , and its value is suppose 5,000 which displayed in ALV report , while downloading the data of ALV report in excel sheet ,it displays value as
5,000  . i want to display this value with ' .' (decimal) instead of  ' ,'(comma).
for this requirement i have converted quantity data type field to char field ,now 5,000 value displayed as 5
in excelsheet , i want 5.000 value in excelsheet.
If u have some idea pls let me know.
Thanks

Hi,
There are 2 things that you need to note.
1. comma instead of decimals : This is some thing you need to check the User setting.
       a. Check T-code SU01D
       b. enter your Login ID
       c. check the Default Tab
    according to the user setting the value will be populated into the excel file.
2. If you want to display say for example '2.000' instead of '2'  then move the actual value to a character variable and use replace all occurence of ',' to '.' and also populate the new value to the final output table.
Reward if helpful.
Regards,
Ramkumar.K

Similar Messages

  • Grouping and Decimal characters in rtf templates.

    Hi guys and girls,
    I’m really struggling with a problem here regarding the decimal characters for the prices in my output.
    I'm using XML Publisher 5.6.3.
    My goal is to control the grouping and decimal character from my template.
    The numbers in the XML data file can either be 10.000,00 or 10,000.00. The format is handled by the users nls_numeric_characters profile option.
    The output of the template shall be based on the locale and not the data generated by Oracle Reports. For example: Reports to US customers shall show the numbers in the following format 10,000.00. Reports to our European customers shall show the numbers in this format 10.000,00.
    How can I achieve this in my templates? Can it be achieved at all?
    Thank you in advance.
    Kenneth Kristoffersen
    Edited by: Kenneth_ on May 19, 2009 1:30 AM

    Hi,
    Thank you for your reply.
    The problem is that the report is generating the output based on the users profile option nls_numeric_characters.
    I have tried to override the users profile option in the before report trigger without any luck. I can alter selects so the query gets the numbers in the right format but then I would have to go through all queryes and reports which seem a bit wrong? Especially for the standard Oracle reports.
    BR Kenneth

  • Error in running a function to convert coordinates in degrees to decimal for EXCEL VBA

    For your information, I have 3 cross-posts regarding this question - and all I can said there is still no firm solution regarding this error.
    1) http://stackoverflow.com/questions/27634586/error-in-running-a-function-to-convert-coordinates-in-degrees-to-decimal-for-exc/27637367#27637367
    2) http://www.mrexcel.com/forum/excel-questions/826099-error-running-function-convert-coordinates-degrees-decimal-excel-visual-basic-applications.html#post4030377 
    3) http://www.excelguru.ca/forums/showthread.php?3909-Error-in-running-a-function-to-convert-coordinates-in-degrees-to-decimal-for-EXCEL-VB&p=16507#post16507
    and the story of the error is as below:
    Currently I am working on VBA excel to create a widget to verify coordinates whether it lies under the radius of ANOTHER predefined and pre-specified sets of coordinates.
    In the module, I want to convert the coordinates from degrees to decimal before doing the calculation - as the formula of the calculation only allow the decimal form of coordinates.
    However, each and every time I want to run the macros this error (Run-time error '5', invalid procedure call or argument) will appear. Then, the debug button will bring me to below line of coding:
    degrees = Val(Left(Degree_Deg, InStr(1, Degree_Deg, "°") - 1))
    For your information, the full function is as below:
    Function Convert_Decimal(Degree_Deg As String) As Double
    'source: http://support.microsoft.com/kb/213449
    Dim degrees As Double
    Dim minutes As Double
    Dim seconds As Double
    Degree_Deg = Replace(Degree_Deg, "~", "°")
    degrees = Val(Left(Degree_Deg, InStr(1, Degree_Deg, "°") - 1))
    minutes = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "°") + 2, _
    InStr(1, Degree_Deg, "'") - InStr(1, Degree_Deg, "°") - 2)) / 60
    seconds = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "'") + _
    2, Len(Degree_Deg) - InStr(1, Degree_Deg, "'") - 2)) / 3600
    Convert_Decimal = degrees + minutes + seconds
    End Function
    Thank you.
    Your kind assistance and attention in this matter are highly appreciated.
    Regards,
    Nina.

    You didn't give an example of your input string but try the following
    Sub test()
    Dim s As String
    s = "180° 30' 30.5""""" ' double quote for seconds
    Debug.Print Deg2Dec(s) ' 180.508472222222
    End Sub
    Function Deg2Dec(sAngle As String) As Double
    Dim mid1 As Long
    Dim mid2 As Long
    Dim degrees As Long
    Dim minutes As Long
    Dim seconds As Double ' or Long if only integer seconds
    sAngle = Replace(sAngle, " ", "")
    mid1 = InStr(sAngle, "°")
    mid2 = InStr(sAngle, "'")
    degrees = CLng(Left$(sAngle, mid1 - 1))
    minutes = CLng(Mid$(sAngle, mid1 + 1, mid2 - mid1 - 1))
    seconds = Val(Mid$(sAngle, mid2 + 1, 10)) ' change 10 to 2 if only integer seconds
    Deg2Dec = degrees + minutes / 60 + seconds / 3600
    End Function
    As written the function assumes values for each of deg/min/sec are included with unit indicators as given. Adapt for your needs.
    In passing, for any work with trig functions you will probably need to convert the degrees to radians.

  • 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

  • Error while updating decimal places in general settings

    Hii All
             I have got an error while updating Decimal places in General Settings
    Cannot update while another user is connected to the company i have checked, there is no other user logged in, i could add other settings but the problem is only with Decimal Places
    Note : there are no postings yet, a fresh database for a new client
             what could be the possible reason
                                                                 thanks
                                                                         RIYAZ

    Hiii All
          As a forum rule, i have initially gone through with the existing threads and then i was force to post a thread,
              would be helpfull if there is any other way..
                                                Thanks
                                                         RIYAZ

  • Can a .pdf created with Livecycle allow a user to enter a % symbol in a numeric or decimal field?

    What I've found so far is that the only way to get the % symbol into a numeric/decimal field at all is to set the "display pattern" to display the % symbol after numbers have been entered into the field.
    The reason I want the field to be numeric and not text is because I have to run a FormCalc caculation that populates a third field.
    (NumericField1 * Numeric Field2*) + NumericField1

    Thanks for the reply Niall.
    I ended up chanigng the numeric field to a decimal field instead, and added the following display pattern: num{zzzz9.99'%'}
    So although the user can't enter a % symbol into the field, a % symbol automaticaly populates when the user enters a number.
    My criteria involved ensuring that a user could not enter a number with more than two numbers after the decimal, so I also set a trailing digits max of 2 (in the Obect > Field settings)
    This is the FormCalc formula I used in the "calculate" event to calculate the salary increase amount request: (DecimalField1 * NumericField2) *.01 + NumericField2
    This formula is meant to calculate the salary amount a manager is requesting their employee's salary be increased to.

  • Decimal places in report painter

    Hi experts.  I have a financial report written in report painter.  I want to show two decimal places on a single row.  The rest of the report is in whole dollars, but this one row is a percentage, so I want to show decimal places.  I know that you can format an entire column, but I can't figure out how to format a single row.  Can anyone help?
    Thanks
    Janet

    YES U CAN
    SAME AS ABOVE PROCEDURE
    BUT SELECT ROW INSTEAD OF COLUMN
    Edited by: Anil Kumar Potnuru on Feb 10, 2009 9:02 PM

  • Can not change the number of decimal places in the normalization of result

    dear all
        i want to see the proportion of some data, for example, the income of May is 300, and the total income is 1000, i need to display it like 33.33% . so i set the
    Calculate single values as normalization of result, and then it display 33.333%, i like to display only two number of decimal places, so i set the number of decimal places as 0.00, but i doesn't work, it still display three decimal numbers.
        maybe you say i can use the percentage function like %CT %GT %RT, but i need to allow external access to my query, so the i can not use those functions.
        can somebody helps me ? your advice is appreciated.

    hi,thanks for your advice, but that doesn't suit for my problem.
    before i set the normalization of result, i can change the decimal values. After that i cann't.
    In your thread, someone proposes use the T-code OY04. but this wouldn't help. As i change to other key figure, such as user quantity, when i set normalization of result, it still display 3 decimal values.
    i think the point maybe lie in the normalization of result. please advise... thanks...

  • Item Cost decimal point precision not correct

    Hello,
    I tried finding a thread in here that would answer my question, but I haven't found one yet.
    What I'm noticing on certain Item Master records is that the Item Cost isn't being calculated using the correct amount of decimal places. I've set it to display 4 decimal places in the System Initialization area for Prices, Amounts, and Rates but that just tacks on more zeroes. I also haven't set any of the currency settings to anything other than "Default". Here is an example of what is happening and hopefully it will be clearer what is going on.
    I have an item that we have purchased for 0.22 dollars and a Customs Group precentage set to 10%. This should result in an Item Cost of 0.2420 dollars. It is actually truncating the result to two decimal places and storing it as 0.2400 dollars. I need it to calculate correctly to four decimal places. We're using Moving Average for the Item Cost calculation and in this case all individual Item Costs are the same from PO to PO for the same part (so the Moving Average shouldn't figure in at all) although that might not always be the case.
    This is only happening on certain items and I'm not sure what the difference is between the incorrect and correct ones. If someone has any idea why this is happening this way only for some parts, please let me know. Any information would be much appreciated. By the way, I'm using SBO2005A SP01 PL31.
    Thanks in advance,
    Brent

    Thank you everyone who has replied.
    Gordon, I don't really have a good way to find out how many are affected. This could be a very big issue or a small one. I'll look into finding a pattern probably on Monday and see if there's something down that road.
    Jesper, this was something that came up in my mind before posting originally, but for all I've seen, it seems like everything should be calculating to 4 decimal places. As for the 6 settings, I have Amounts set to 2 (although I've tried 4 and it didn't seem to fix the problem so I reset it back to 2), Prices and Rates as 4, Quantities as 0, Percent and Units as 3. I think these are fine as is. I could be wrong though. The other reason I don't think these are a problem is because only certain items are having problems. Hence why I need to find some sort of pattern.
    Bishal, I am not a Channel Partner, just a Customer. So it won't let me login to get to that. If you have another way of getting that to me, then that would be great. If not, thank you for trying.
    I probably won't be doing anything with this until Monday. So there won't be a whole lot of updates until then at least. Thank you all for your responses and hopefully soon I can figure this out.
    Brent

  • Problems with decimal places and formatting

    Hi , we are having problems with an add on running on different localization companies. Decimal places separatd by "," differ from other localizations. We dont know if this is a SQL collation setting or somethng related to code or requirements to run add ons on different servers and languages.
    Any ideas??
    Thanks

    Hello
    Follow up with this thread:
    [Re: How to get the numeric value of DocTotal from UI API]
    Regards,
    J.

  • Decimal Point in Analyzer 6.2.1

    Hi all,Is it possible to set on server Analyzer 6.2.1 the decimal symbol and digit grouping symbol for the format of numbers ?When it has to be done the export to Excel, the number format are taken from Analyzer server. If the Regional Options from the client part for decimal symbol and digit grouping symbol are different from Analyzer server, the export in Excel it does not work properly. Is possible to set the export to Excel to take the number settings from the client part ?

    As far as I know this shouldn't be the case. The Java applet should take local client settings period and not be affected by how the server is set. You should ensure that you have the 'international' version of the Sun Java Plugin installed and not the UK/US version. Hope this helps.Paul Armitage.Analitica Ltd.www.analitica.co.uk

  • Decimal Separator in SELECT Clause

    Hi
    I have the following decimal format parameters:
    SQL> select value
    2 from v$nls_parameters
    3 where parameter = 'NLS_NUMERIC_CHARACTERS';
    VALUE
    If I show a number with decimal I get a comma as the decimal separator
    SQL> select 10/100 from dual;
    10/100
    ,1
    But if I use a decimal separator in the SELECT clause I get:
    SQL> select 100 * 1,1 from dual;
    100*1 1
    100 1
    It doesn't work. But using a period as the decimal separator works:
    SQL> select 1.1 * 100 from dual;
    1.1*100
    110
    Maybe this is something I've never had to deal with before but I thought that the numeric format applied to the sql results and also the numbers that you used in the sql clauses.
    Regards,
    Néstor Boscán

    Hi,Néstor,
    user594312 wrote:
    ... I thought that the numeric format applied to the sql results and also the numbers that you used in the sql clauses.No; it applies to results, and it can affect implicit conversions, but it doesn't apply to SQL code.
    The period (or dot, '.') is always the decimal separator in numeric literals. There is no way to change that.
    Think how confusing it would be if it did apply to SQL code! For example:
    WHERE   num_col  IN (1,2)Are we comparing num_col to 1 value or 2 values? Whichever it is, what if we wanted to do the opposite?
    If you really wanted to use comma as the decimal separator, you could have to use strings, not numbers, and that could be a lot less efficient.
    For example:
    SELECT  100 * TO_NUMBER ('1,1')    -- This assumes your NLS settings are correct
    FROM    dual;Of course, efficiency won't be an issue when you're selecting 1 row from dual.

  • Decimal after two digit in RTF

    HI,
    i want to print decimal after two digit i.e., 44 must be changed to 44.00 in .rtf
    I am able to print decimal after three and four digit i.e., 524 --> 524.00 , 6456 -->6456.00
    I am using 0.00 format from BI PUBLISHER PROPERTY but not able to get decimal after two digit.
    I want output like this :
    4 -->4.00
    44 --> 44.00
    444 --> 444.00
    4444 --> 4,444.00
    Note : Output is in Excel
    I hope u got my point.
    please suggest me solution for this.
    Edited by: 914936 on Apr 12, 2012 4:06 AM
    Edited by: 914936 on Apr 12, 2012 5:33 AM

    Your requirement is to get two decimal digits for all the numbers right?
    This should be possible if you goto the field which you want to have two decimal digits .Right click and goto BIP properties. Here in the properties tab you should see the option to format .Select type as number and choose the necessary format.

  • Decimal Places in Item Cost must be 6 characters while in Journal Entry 2.

    I have the following problem:
    Accounting needs to see and work with 2 decimal places, but the item cost is needed in 6 decimals.
    If I register a A/P Invoice and i go to the Journal Remark, the Journal Entry should be in 2 decimals. If i look for the Item Cost on the Wharehouse this cost should be in 6 decimals.
    Is there a way to handle Accounting in 2 units and Cost in 6 Units
    Thank You very much

    Hi Saul,
    The request appears illogical, how can the accountant work with 2 decimal places & the item valuation is held with 6? The stock account with 2 decimals will never match the stock audit report with 6 decimals.
    I'm afraid the SAP Business One core functionality does not cater for this need. There are no 'behind the scenes' journal entries. A JE is legally binding so you need to decide whether you wish to work with the most accurate calculations regarding item cost as possible (6 decimals) or accommodate the accountants & work with 2 decimals in the journals.
    You might want to take the nature of the stock into consideration, if there are huge quantities at small individual prices 6 decimals might be better, if you use mainly standard cost &/or have no major cost fluctuations when using MAP/FIFO, 2 decimals might be sufficient.
    All the best,
    Kerstin

  • Decimal characters

    Hi,
    We have many varchar2 columns in the database which can contain, for example '24.00' (here "." is the decimal separator), but when i run the following query on my machine i got that error
    SQL> select to_number('24.99') from dual;
    select to_number('24.99') from dual
    ORA-01722: invalid number
    SQL> However, for example on other machines, it executes successfully. If i run select to_number('24*,*99') from dual , it executes successfully.
    I know this can be avoided by using a mask in to_number, but i don't want this.
    I tried to set the "." as the decimal separator from Control Panel -> Regional and language settings, but with no effect.
    The db version is Oracle Database 11gR2 (11.2.0.2).
    Thanks
    Edited by: Roger22 on 28.12.2012 13:53

    See this demo in detail :
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select value from nls_session_parameters
      2  where parameter = 'NLS_NUMERIC_CHARACTERS'
      3  /
    VALUE
    SQL> select to_number('24.99') from dual;
    TO_NUMBER('24.99')
                 24.99
    I did not not got any error, because my  'NLS_NUMERIC_CHARACTERS' are .,  Ok, what if I change it to your environment :
    SQL> alter session set NLS_NUMERIC_CHARACTERS=',.';
    Session altered.
    SQL> select to_number('24.99') from dual;
    select to_number('24.99') from dual
    ERROR at line 1:
    ORA-01722: invalid number
    This is your error position in the question.
    SQL> select to_number('24.99','99D99','nls_numeric_characters=.,') VALUE FROM DUAL;
         VALUE
         24,99
    and this is the solution.
    SQL> alter session set NLS_NUMERIC_CHARACTERS='.,';
    Session altered.
    SQL> select to_number('24.99') from dual;
    TO_NUMBER('24.99')
                 24.99
    SQL>If you wish that it should be ., for ever, you can say :
    alter system set NLS_NUMERIC_CHARACTERS='.,' scope=spfile; and restart the database. (when ever you can take down time of the database, till then you can use alter session.. as per above command)
    Regards
    Girish Sharma

  • Decimal places in standard input schedule templates

    Hi Gurus
    I have created some input schedules using standard template. User here will be entering some values in 2 decimal places (like 1.25) but when I enter any values in the cells, it automatically round off the values and displays values without any decimal places.
    I have tried changing the formats in Format control panel by changing the DATA / DEFAULT 's PATTERN / ALL for ROWs but it did not help.
    Please help how to resolve this.
    Cheers
    Swathi

    Hi nilanjan,
    Thanku, I resolved the issue using Format Range option with the below code
    CRITERIA    EVALUATE IN  FORMAT     USE     PARAMETERS    APPLY TO
    INPUT          ROW                1234,56      ALL                --                   DATA
    Thanku

Maybe you are looking for

  • BlackBerry ID not being recognised after battery removal

    Hello all! Hopefully you can help me with this one... Happybday:That battery in my Blackberry Torch was not holding a charge for any substansial amount of time and in troubleshooting this, I removed my battery and SIM card. When I replaced these and

  • Conception 2 Nintendo 3DS Availabili​ty

    Hi, y'all.  I came here to ask about whehter Best Buy still had any copies of Conception II for Nintendo 3DS.  If so, is there still a limited edition version of it with the soundtrack?  If not, may I inquire whether Best Buy plants to have stock for

  • Mail Merge for Word - Limitations?

    I have been searching for information on the Mail Merge for Word in the help files and tutorials. I am trying to verify the limitations, such as Can Lotus Notes be used to send the email? (I am 90% sure we have to use Outlook, however I would like to

  • How to disable the geotag NAG screen.

    1. Is there a way to either to (ENABLE/DISABLE) geo-tagging permanently. 2. If YES, is there a way to disable the NAG question when taking pictures.

  • Free Transform multiple objects...

    It would be very nice to have the ability to select multiple layers/objects and free transform them about their respective orientation points rather than one, shared point. For example, I am creating a large grid of items that are all in 1" X 1" squa