Numeric attribute output truncates trailing 0 after the decimal
Hi Experts,
We are having numeric attributes displayed on the question screens. When we enter the value as for example 7.40 and submit the form, in the decision report the value is shown as 7.4 and the trailing 0 is truncated. Is there any way we can avoid this truncation? We also tried with setting the unformatted checkbox for the numeric attribute in the properties file. This also did not help. It always truncates the trailing 0 after the decimal.
Thanks,
KK
You can specify the output format for number in the application.properties file, something like output-number-format = ###.00 might work. Using ###.00 instead of ###.## forces trailing zeros to be displayed, see Java DecimalFormat for more information.
Similar Messages
-
How to delete trailing zeros after the decimal point in the ALV sum
Hello Expert,
In my alv output, I need to sum up one column, but in the sum result, I don't want to display zeros after the decimal point.
for example,
If the sum is 134.00, I only want to display 134 on the alv.
Does any expert have idea about it?
Thanks in advance,
best regards, JohnnyHi ,
Use following
SHIFT variable RIGHT/LEFT DELETING TRAILING '0'.
For more variations ,
just write SHIFT and press f4 , it will show you the information you need.
Hope this is helpful,
Regards,
Uma Dave -
Trailing zeroes after the decimal
I have a program that I have to do maintenance. One of the complaints is that a "rate" field is showing the trailing zeroes. The data type is 10.6 DEC. It was embedded in screen painter. Is there something I can do to change the output to suppress trailing zeroes. If the rate is 1.24, it shows it as 1.240000.
Thanks for your input.
SteveHi,
You can do like this
DATA:
lv_decimal TYPE f DECIMALS 6,
lv_string TYPE string.
lv_decimal = '1.240000'.
WRITE lv_decimal TO lv_string.
SHIFT lv_string RIGHT DELETING TRAILING '0'.
CONDENSE lv_string NO-GAPS.
write: lv_string.
Regards,
Satish -
How to cut the zeros after the decimal point ?
Hello everybody,
does anyone know a solution how to cut the zeros after the decimal point at at CHAR data field?
For example the field
&RM06P-PRMG1&
This is a char field in the database, so that the command
&RM06P-PRMG1(.0C)&
doesn't work.
At the moment the output on the form is like that
124,000
It shoud be like that
124
It would be great if anyone could help me!
TIA!
StrobbelHi Strobbel,
If you are working on standard sapscript, first make a zcopy of it, do the modifications in that and assign the new form to the output types in tcode NACE.
First you need to create a program to write the logic, so go to tcode SE38 , create a new program (say zremove_zero) with Program type Executable.
Now you will see ABAP Editor with statement;
Report zremove_zero.
Add the following lines below the report statement.
*& Form remove_zero
* text
* <--lv_AMT text
FORM remove_zero CHANGING lv_amt.
DATA p_amt TYPE p.
MOVE lv_amt TO p_amt.
MOVE p_amt TO lv_amt.
Condense lv_amt.
ENDFORM.
Now save and activate the program.
Now open the zcopy of your script and Just above the statement &RM06P-PRMG1& write the following lines;
/: perform remove_zero in program zremove_zero
/: changing &RM06P-PRMG1&
/: endperform.
Now you can see your amount printing without decimals.
Try and let me know, hope i have guided you clearly.
Regards
Karthik D
P.S.: I advice you to take help from an ABAPER. -
Removing zeros after the decimal point Reply with quote
I want to remove the zeros after the decimal point, that this be done?
Например, Example,
120.000 => 120 120.000 => 120
120.300 => 120.3 120,300 => 120.3hiiiiiiii sweetsoni,
try this may it helpful for you
SHIFT string RIGHT DELETING TRAILING '0'.
SHIFT string RIGHT DELETING TRAILING '.'.
for example
DATA: v1 (6) TYPE c VALUE '100 .000 ',
v2(6) TYPE c VALUE '100.200'.
SHIFT v1 RIGHT DELETING TRAILING '0'.
SHIFT v1 RIGHT DELETING TRAILING '.'.
SHIFT v2 RIGHT DELETING TRAILING '0'.
SHIFT v2 RIGHT DELETING TRAILING '.'.
ultimately
v1 = '100',
v2 = '100.2'.
Moderator message: question and answer copied from external source, points deducted, do not repeat!
Edited by: Thomas Zloch on May 19, 2010 2:14 PM -
Make one number after the decimal point
hi all
i have a column named quantity from the table job_done
with values
1900.8988
34.67
0.6788
236.67
789999.67676868
i require the values to be 1900.8
34.6
0.6
236.6
789999.6
i just require one number after the decimal point,i know substr but i am confused as to how to achieve this output
kindly guide
thanking in advancehttp://docs.oracle.com/cd/E11882_01/server.112/e26088/functions221.htm#SQLRF06150
Regards
Etbin
Edited by: Etbin on 5.5.2013 14:33
<tt>substr(quantity,1,instr(quantity,'.') + 1)</tt> if those are not numbers but all contain a decimal point
Edited by: Etbin on 5.5.2013 14:40
<tt>case instr(quantity,'.') when 0 then quantity else substr(quantity,1,instr(quantity,'.') + 1) end</tt> when there are no <tt>null</tt> values
<tt>trunc(to_number(quantity),1)</tt> seems to be the safest if quantities are really <tt>to_char(some_number)</tt> -
How to elininate the Zeros after the decimal
Hi,
I columns in the scheduler table has BEGIN_DAY BEGIN_MONTH BEGIN_YEAR and the values are coming like 12.00, 11.00, 2009.00.
In the database there is no zeros after the decimal but when the tables are imported to OBIEE the see the zeros in the above columns. Is there any way to eliminate the zeros after the decimal points in the RPD.
Rgds,
AmitIt should not display zeroes if you set the column type to INT in Physical.. probably you might have forgotten to refresh the Server Metadata...
Other way you can give a try is - In Answers, go to Column Properties => Data Format and check 'Override Default Data Format' then choose 'Decimal Places' to '0'..
Note: this eliminates 0s only in this report.. -
Limit the number of digits after the decimal point
hi,
in webform how to limit the number of digits after the decimal point?
thanksHi,
In the Web form Design menu there is a tab for Other Options wherein you would find the setting for number of Decimal places.
Thanks.
Madhavi -
Hi,
I have a requirement to concat 2 columns ( 1st column is a text column and 2nd column is a numeric column set as double in RPD). For the 2nd column, user wants to see 3 decimal digits all the time.
For example, if the value is 2.4567 then I need to show round off value 2.457 and if the value if 3.4 , then I need to show 3.400 and if the value is 4 then I need add decimal point and show 4.000.
Please let me know how I can achieve using OBIEE application without having to go through RPD.
Thanks
Swarna
Edited by: 934460 on May 15, 2012 12:48 PMTry the following:
In this example:
Column 1: Month Name
Column 2: Revenue
Column 3: Month - Revenue
Formula for Month - Revenue column will be:
Month Name ||' - '|| cast(round(Revenue, 3) as char)Hope it helps.
Regards,
Kalyan Chukkapalli
http://123obi.com -
More than 4 places after the decimal for the slope of line equation?
Hello
I'm doing some graphing for chemistry class and I'm trying to find where in Numbers I can change the preference for the trendline equation.(y=mx+b) Currently m is only showing up to 0.xxxx . I need it to show at least 7 or 8 places. Or even better, is there a preference to set it to show x amount of significant figures?
Much thanks,
RyanNo preference that I am aware of. You can calculate the intercept and slope yourself using INTERCEPT and SLOPE functions, create a one-celled table with a formula that makes a string for y=mx+b, and place that one-cell table on top of the chart.
If Table 1 cell B2 has the slope and C2 has the intercept, the one-cell new table formula would be
="="&Table 1::B2&"x+"&Table 1::C2
The string will have the same number of decimal places as what it finds in B2 and C2. -
In ML81N, Quantity Field allows maximum 3 digits after the decimal.
Hi Everyone!
Hope things are going good.
In SES, ML81N, The Vendor has a total invoiced value of $9033.5 .
The Gross Price of the Product is USD 13,333.33
The Quantity entered is .667 or .668.
Both of the quanities entered gives a value which is $6 more or less.
The only way to arrive at $9033.5 is to use quantity .6675 and the Quantity field does not allow the entry of more than 3 decimal digits.Dont change the domain, as this has a huge impact on your system. At least talk to SAP before you are doing that.
I am just the opinion that you have a wrong unit of measure for your material.
You did not say what unit you use, but if it is KG, then you better use Gram to meet your requirement. -
Trailing Space at the end of Record
Hi,
I need a blank space at end of header record when transferring data to a file on application server.
Appreciate help.
Code:
wa_header-empty = space. " Length 4 type char
wa_header-rec_type = 'ZREF'. " Length 4 , constant
wa_header-partner_id = '1234' " Length 35 type char
wa_header-i_usr_id = 'COMPANY'. " Length 35 type char
wa_header-p_id_qualf = space. " Length 4 type char
TRANSFER wa_header TO g_out_file.
Desired output: enclosed in brackets.
[ ZREF1234 COMPANY ]
The desired output has 28 trailing space after the text 'COMPANY'.Hi,
Have you Tried the SHIFT hope it will solve out your problem,
or use Concatenate To insert Spaces to Right Side inside a loop.
Hi, Please Go Through the following Thread too hope will help you out.
[How to retain spaces in a string|Re: How to retain spaces in a string...really urgent]
Kind Regards,
Faisal
Edited by: Faisal Altaf on Feb 18, 2009 1:33 AM -
How to create numeric attribute using ABAP API
Hi experts
I'm trying to create a numeric attribute for a taxonomy table. In the how-to-examples there are only ways to create text attributes.
Those who have tried, please let me know the steps.
I have given below the code snippet which i tried to create numeric attribute. Please let me knw the missing link.
ls_num_attr_val-rating = 500.
APPEND ls_num_attr_val TO ls_ext_attr_info-characteristics.
ls_ext_attr_info-attr_info-attr_id-id = lv_attribute_id.
APPEND ls_ext_attr_info TO lt_ext_attr_info.
GET REFERENCE OF lt_ext_attr_info INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'ACCT'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
lv_string = 'Customer 12'.
GET REFERENCE OF lv_string INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'CUST_NAME'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
CALL METHOD lr_api->mo_core_service->create
EXPORTING
iv_object_type_code = 'ACCT_TYPE'
is_parameter = ls_parameter
iv_parent_id = 0
IMPORTING
ev_new_internal_id = lv_key.
Thanks
SwarnaDeepika
Edited by: SwarnaDeepika on Dec 19, 2009 4:38 PMHello Ashok,
[here|https://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/CreateField.html] is the Java API of the needed command.
There is also an example of how to create a field. You can use the class by replacing the strings for the server, repository, table, etc. to your needs.
If you want to create more than one field, simply use a loop, like the for-loop, while-loop, etc.
Hope this helps.
Best regards
Dominik -
In my numeric key pad I can not use the decimal dot (.) because it has a (,) and this not work with decimal calculations. What I can do? Help ………
IT NOT WORK IN MEXICO. THANKS A LOT. BEST REGARDS. MANUEL LOPEZ
El 6/2/2015, a las 16:50, Apple Support Communities Updates <[email protected]> escribió:
You received a reply
SGIII has replied to your question. You can view the full discussion in Apple Support Communities.
In my numeric key pad I can not use the (.) dot because it has a (,) and it is not working in calculations. What I can do?
Correct Answer Helpful Answer
Use the buttons above to tell SGIII and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
To reply to SGIII, go to the discussion in Apple Support Communities.
You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
All Rights Reserved | Privacy Policy | Terms of Use | Apple Support -
How to change the decimal places in the value axis of a chart in WAD?
Hello,
The key figure in my chart has 2 decimal places and I want the value axis to show the same. How to do that?
Thanks in advance, NathalieHi,
change the Format property of the ValueAxis-Line to 0.00
Then the axis displays its values including two digits after the decimal.
Regards, Kai
Maybe you are looking for
-
Adobe CC crashed after start (after upgrade to Windows 8.1)
Hi there, yesterday i uprgraded windows from 8.0 to 8.1 and now my Adobe creative cloud wont to start. I tried to reinstall, delete registry, adobe cc cleaner and nothing works. Thanks for suggestions
-
Often after installing a KB update, System Update will restart the computer and then resume processing to install the next downloaded KB update. However, after restarting, it always freezes or hangs part way through the next KB install. After waiti
-
How to get name from JButton?
Hey Is it possible to get the name from a clicked JButton in the actionPerformed so that if i have for example 2 JButtons i can do an if statement to do different things when a button is clicked? For example if button1 is clicked the screen writes "Y
-
How to stretch background image, How to change show detail item header
Hello all I have a few questions I would like to pose humbly to your collective wisdom, FYI I use Jdeveloper 11.1.3 and ADF Fusion First, how do I stretch the background Image? I have a background image in a show detail item but it is very small. 400
-
Java.lang.NullPointerException in UWL Manage Substitutions application
Hi SDN, I am using the standard application for Manage Substitutions. (Application is sap.com/tckmcbc.uwl.ui~wd_ui - UWLSubstitution) When I try to create Rule using this application, and try to search for a nominee using the search, I am getting a j