Decimals point
HI,
my issue is , we are doing sale order in VA01, in price cloumn it is takeing max decimals only 5.
Ex: price:123.25345
but my client want exatly figaure
EX: price: 123.25344449 which right.
in currency settings also max decimals is there only,
can i increase the decimals 5 to 8, is it possible.
thanks in advance
regards,
balu
Hi Balu,
Yes it is possible
but u have to change total currency settings.
otherwise create new currency and change the decimal system
ofter that u can change the length of decimals
For that you go SM30 give the table name V_CURXand select maintain button
Take position and give currency type there
May be this information is useful to you
Regards
Surya
Edited by: surya naveen on Sep 5, 2008 9:04 AM
Similar Messages
-
F4IF_INT_TABLE_VALUE_REQUEST not returning value with 2 decimals point
hi all,
i use function F4IF_INT_TABLE_VALUE_REQUEST to do search help, the master data in table ZINVEST has field ZNO, with field type CURR , 2 decimals point.
the return table shows 2 decimals point but in display screen it only shows 1 decimal point, pls advice
here's the coding:
DATA : BEGIN OF itab OCCURS 0,
e_value(20),
END OF itab.
DATA: BEGIN OF field_tab OCCURS 0.
INCLUDE STRUCTURE dfies.
DATA END OF field_tab.
DATA : return_tab LIKE ddshretval OCCURS 0 .
CLEAR field_tab.
field_tab-fieldname = 'E_VALUE'.
field_tab-intlen = 17.
field_tab-outputlen = 17.
field_tab-decimals = 2.
field_tab-inttype = 'C'.
field_tab-scrtext_m = 'Investment No'.
APPEND field_tab.
SELECT * FROM ZINVEST.
CLEAR: itab.
itab-e_value = ZINVEST-ZNO.
APPEND itab.
ENDSELECT.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'E_VALUE'
dynprofield = 'A'
dynpprog = sy-cprog
dynpnr = sy-dynnr
TABLES
value_tab = itab
field_tab = field_tab
return_tab = return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.Hi ester,
You shud try this way. Try to use this code.
DATA: BEGIN OF it_help OCCURS 0,
zuonr TYPE zvinvoice,
kunnr TYPE kunnr,
name TYPE zvcustname,
END OF it_help.
SELECT-OPTIONS: p_zuonr FOR bsid-zuonr.
SELECT DISTINCT
zuonr
kunnr
INTO CORRESPONDING FIELDS OF TABLE it_help
FROM bsid
WHERE zuonr <> space.
SORT it_help BY zuonr kunnr.
DELETE ADJACENT DUPLICATES FROM it_help
COMPARING zuonr kunnr.
IF it_help[] IS NOT INITIAL.
SELECT kunnr
name1
name2
INTO TABLE it_kna1
FROM kna1
FOR ALL ENTRIES IN it_help
WHERE kunnr = it_help-kunnr.
SORT it_kna1 BY kunnr.
CLEAR v_tabix.
SORT it_help BY kunnr.
LOOP AT it_help.
v_tabix = sy-tabix.
READ TABLE it_kna1 WITH KEY kunnr = it_help-kunnr
BINARY SEARCH.
IF sy-subrc EQ 0.
CONCATENATE it_kna1-name1 it_kna1-name2 INTO it_help-name
SEPARATED BY space.
MODIFY it_help FROM it_help INDEX v_tabix
TRANSPORTING name.
ENDIF.
ENDLOOP.
FORM event_selscr_valreq_for_pzuonr .
***Function module to display the search help for the assignment filed****
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ZUONR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_ZUONR'
window_title = text-029
value_org = 'S'
callback_program = sy-repid
TABLES
value_tab = it_help
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Reward if help ful.
Regards
Azad. -
Can we display on the screen for amount without decimals
Dear Freinds,
I have scenario they wanted to give the amount field with decimals......actually the field is standad field
it is betrg ( i.e amount field ) data type of this field is PAD_AMT7S.
Is it possible that on screen can i display without decimals.
Regards
Madhuri.Dear Freinds,
Thanks for replying to my question , i want to modify the value in the input field of the stnadard selection screen.
i.e in infotype 0014 i have the amount field ........( data element is PAD_AMT7S) ...........The user is saying when
iam updating th e value into infotype 0014 for the AMount field BETRG (data type : PAD_AMT7S) he dont want the
decimals coming
ie. actually it is getting uploaded as 20.14 ..........he wants only 20 . My question how can we modify amount field without
decimals points at all ? ......as per my knowledge i can only based on currency code i can either give 2 decimals or 3 decimals
but without decimals can i store on the screen ...........?
During the testing they are saying even if it goes into the data base with decimals doesnt matter but on the screen they wants
only the amount withou decimals. i.e they want to save on the screen field of infotype 0014 betrg amount field as without decimals.
Could any one let me know is it possilble.
regards
madhuri -
Percentage calculation in report painter
Friends,
How do we calculate percentage in report painter. I know we can do it using a formula. But when i give the formula as ex: A/B it is giving it as Zero. Do i need to do anything else? A is a subtotal of some accounts and B is a subtotal is some accounts.
Thanks in AdvanceHi,
For decimal places
select the column
go to formatting--> columns
in decimal places put 0.00
This will give u decimals
Points if useful
Regards,
Kiran -
How can I put a parenthesis around the number?
Hi expert people!!!
One question: How can I put a parenthesis around the number because I have this
write: /123 t_bsid-pago1, 141 t_bsid-pago2,
157 t_bsid-pago3, 175 t_bsid-pago4,
193 t_bsid-pago5.
and if I put the parenthesis hardcoded like this:
write: /123 '(', t_bsid-pago1,')'.
when the variable are printed the parenthesis is write very separated from the amount.
I know that maybe I can use the CONDENSE or CONCATENATE statement but for that I need to create a variable type N, or STRING and if I do that I don't know how can I put the decimals points back.
Thanks!!Hi Carlos,
Try this:
REPORT ZTESTRAJ.
data: v_val(10) type p decimals 2 value '123456.75',
v_text type string.
start-of-selection.
write:/ v_val.
v_text = v_val.
concatenate '(' v_text ')' into v_text.
condense v_text no-gaps.
write:/ v_text.
<b>Output:</b>
test program...
123,456.75
<b>(123456.75)</b>
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi -
I have been advised on this forum that a switch statement in place of the if else etc would be neater. Could someone tell me where the switch statement goes in the code below.
Thanks
Calculator class Calculator.java
class Calculator {
public void Calculator() {
public double workOut(String s1) {
int count = 0, i_s1_len = 0, i_dot=0, i_neg =0;
double d_calc=0,d_num = 0, d_snum=0 ;
String s2 = "", s3 = "", s_num="";
if (s1.length()==0){ //Check for an input eg contains at least one character
System.out.println("Sorry you must input a equation ending in an equals '=' sign");
return 0;
else {
i_s1_len = s1.length();
count = 0; //reset count to zero
//remove spaces s2 becomes the equation
for (count=0; count+1 <= i_s1_len;){
if (s1.charAt(count)==32){
count++;
else{
s2=s2+s1.charAt(count);
count++;
i_s1_len = s2.length();//
// check final character is an "=" sign
if (s2.endsWith("=")){
else{
System .out.println( "Sorry your equation must end with an = sign ");
return 0;
// Checking if characters in the equation are legal eg 1-9 or ()-+/*. or the = sign is only at the end.
count = 0; //reset
for (count=0; count+1 <= i_s1_len;){
if ((s2.charAt(count)>39)&(s2.charAt(count)<58)){
count++;
else if ((s2.charAt(count)==61) & (count != i_s1_len-1)) {
System.out.println("Operator'=' is in two places ");
return 0;
else{
count++;
// Selecting Calculation type +-*/ and calculation Type and conversion
for (count=0; count+1 <= i_s1_len;){
//Addition calculation 43 = +
if (s2.charAt(count)== 43){
s3="+";
// Subtraction Calculation 45 = -
else if (s2.charAt(count)== 45){
s3="-";
// check for minus minus
if (s2.charAt(count+1)== 45){
s3="+";
// multiplication Calculation 42 = *
else if (s2.charAt(count)== 42){
s3="*";
// Division Calculation 47 =/
else if (s2.charAt(count)== 47){
s3="/";
//Get String for conversion to number
else s_num=s_num+s2.charAt(count);{
count++;
// Transfer number to single varable
while ((s2.charAt(count)>47)&(s2.charAt(count)<58)||(s2.charAt(count)==46)){
s_num=s_num+s2.charAt(count);
count++;
//check for multiple decimal points
if (s2.charAt(count-1)==46){
i_dot++;
if (i_dot > 1){
System.out.println("One of your numbers contains two decimals points ");
return 0;
i_dot=0; //reset decimal counter
// Get opperator + - * /
if (s3 =="+"){
d_num = d_num + Double.parseDouble(s_num);
else if (s3 =="-"){
d_num = d_num - Double.parseDouble(s_num);
else if (s3 =="*"){
d_num = d_num * Double.parseDouble(s_num);
else if (s3 =="/"){
if (Double.parseDouble(s_num)==0){
System.out.println("You are trying to divide by Zero which is infinity");
return 0;
d_num = d_num / Double.parseDouble(s_num);
else{
d_num = Double.parseDouble(s_num);
s_num="";
if (s2.length()==count+1) {
return d_num;
return d_num;Instead of writing
if (x == 1)
// do this
else if (x == 2)
// do that
else
// do the otheryou can write
switch (x) {
case 1:
// do this
break;
case 2:
// do that
break;
default:
// do the other
break;
} -
Quantity field for user input in interactive alv
hi,
i have created an interactive alv report that allows user to key in quantity fields using fm "REUSE_ALV_LIST_DISPLAY'. then quantity field is referred to MARD-LABST for instance, with 3 decimals point. When i tried to key in quantity as '9', it then will be converted into 0.009 by using cl_gui_alv_grid->check_changed_data( ). May i know what the root causes are and also how to resolve it using same fm??? Thanks.Hi,
In the field catalog, for the field set the attribute DECIMALS to 3.
This should resolve your issue.
Regards,
Sagar -
Inventory gain when inter-company stock transfer
hi Experts,
Scenario:
one step transfer material A 100 pc from plant 1000(belongs to co. code 1000) to plant 2000( belongs co.code 2000) through t-code MB1B, then FI docs were generated in co code 1000 and 2000.
FI doc in co. code 1000 is:
Dr 194002 Clearing with company code B 3,067.75
Cr 790000 Unfinished products 3,067.75-
The price in MM03 for plant 1000 is standard price 30.68/pc, why 3067.75 appears instead of 3068.00?
FI doc in co. code 2000 is:
Dr 790000 Unfinished products 3,972.00
Cr 285000 Gain - inventory transfer 904.25-
Cr 194001 Clearing with company code A 3,067.75-
The price in MM03 for plant 2000 is standard price 27.15/pc, where 3972.00 comes from?
My question here is trying to understand where the price of material during transfer posting comes from? it is from material master data or somewhere else.
thanks,
Alex>
Alexandro Miao wrote:
The price in MM03 for plant 1000 is standard price 30.68/pc, why 3067.75 appears instead of 3068.00?
> Alex
Hi Alex,
what you observe looks like a rounding error: when you divide 3067,75 by 100 and display it with 2 digits after the decimals point you have again your 30.68.
The program logic for goods issues is, that it always takes the value of stock and divides by the quantity on stock to determine the value for the goods issue. This is to make sure that no situation occurs where value is left and no stock.
Therefore before your goods issue the situation seemed to be that the stock value divided by the stock quantity was 30.6775. To understand that one would have to look on all the historic transactions.
best regards,
Udo -
Hyperion Financial Reporting - Rounding
Hello,
The financial reports getting retrieved from Workspace does not show up pennies amount of data . In smart view if i see 122.97 , FR rounds off to 123 . Is there any work around in FR to obtain the penny values also,
Thanks !!Increase the decimals points. Check this Formatting Numbers in Grids
Regards
Celvin
http://www.orahyplabs.com -
Keynote: change numbers in chart to french??
Does anyone know how to change the numbers in a chart to french? So decimals points become commas? If i input commas into the Chart Data Editor it does not ready them.
OK so it was something obvious. Drag and drop the color. DUH!!
-
Selection screen packed entries
Hi ,
i want to add a packed number in the standard selection screen designed by me.i used the below code but i want to restrict the integer value of the packed number to 3 places.
like i should allow to enter values of format XXX.X and only 5 chars
SELECTION-SCREEN BEGIN OF line.
SELECTION-SCREEN COMMENT 1(9) text-012.
parameters: Packed TYPE p decimals 1 modif id sc1 .
SELECTION-SCREEN END OF line.
how to do this..
thanks,
Vinayif u use char 5 then u have to do lot of validations for ex: say user enters decimals point twice.
Here is another solution:
SELECTION-SCREEN BEGIN OF line.
SELECTION-SCREEN COMMENT 1(9) text-012.
parameters: Packed(3) TYPE p decimals 1 modif id sc1.
SELECTION-SCREEN END OF line.
at selection-screen.
data:l_val type i.
if Packed is not initial.
l_val = Packed.
if l_val > 1000.
message e303(me) with 'Wrong format, enter in this format:(___._)'.
endif.
endif.
Regards,
Joy. -
IP Profile dropped significantly
Problems started occuring around 3 weeks ago. IP Profile use to be 448 upstream, 8192kbps downstream. Now the numbers have significantly dropped too 192 Kbps Upstream, 4224 Kbps Downstream. Ping to first hop has increased from 8-10 to 20-24. Effectively my ping has doubled.
No hardware changes, no problems listed in my area.
Download speedachieved during the test was - 3398 Kbps
For your connection, the acceptable range of speeds is 1200-4000 Kbps.
Additional Information:
Your DSL Connection Rate :4224 Kbps(DOWN-STREAM), 192 Kbps(UP-STREAM)
IP Profile for your line is - 3726 Kbps
Upload speed achieved during the test was - 140 Kbps
Additional Information:
Upstream Rate IP profile on your line is - 192 Kbps
My speeds use to be double those.On your connection, its not possible for the IP profile to drop as its always 88.2% of your sync speed. If you type in Google 88.2% of 4320 it will give you your IP profile in decimals points. .
Has your speed always been this low? What was it previously like.
If you dial 17070 and press option 2 do you hear any noise? Satic, hissing crackles etc.. ?
Have you tried changing microfilters?
Also maybe a speed tweak to increase your speed
As standard, the bell wire should be taken out of any master or extension socket as this can reduce the amount of interference your broadband can pick up and sometimes fixes the problem, see how to remove it here http://bit.ly/4LEKJg . Make sure you remove it from master and any other sockets in the house
Regards Edd
Check your Line
BT Speedtester -
Quantity and Date format error in bapi_material_availability .
Dear Experts,
I'm facing a small problem in bapi_material_availability .When I'm Giving input to this BAPI like PLANT,Material,Unit,Check Rule etc...then after execution in the returning table 'WMDVEX' having fied COM_QTY is showing the the value like '4000' instead of '4.000' because it simply concatenating the decimals points..I also checked the user settings..It is perfect..
So plz suggest me to rectify this error.
Thanking you
SudarsanDear Experts,
I'm facing a small problem in bapi_material_availability .When I'm Giving input to this BAPI like PLANT,Material,Unit,Check Rule etc...then after execution in the returning table 'WMDVEX' having fied COM_QTY is showing the the value like '4000' instead of '4.000' because it simply concatenating the decimals points..I also checked the user settings..It is perfect..
So plz suggest me to rectify this error.
Thanking you
Sudarsan -
Hello!
Is use this code in my spry xml dataset and spry table:
<div class="MainContent">
<div spry:region="dsCatalog">
<table border="0" cellspacing="0" cellpadding="3">
<tr bgcolor="#CCCC99">
<th spry:sort="@id"><div align="left"
class="style2"><a
href="#">Nr</a></div></th>
<th spry:sort="date"><div align="left"
class="style2"><a
href="#">Dato</a></div></th>
<th spry:sort="Fullname"><div align="left"
class="style2"><a
href="#">Merkenavn</a></div></th>
<th spry:sort="district"><div align="left"
class="style2"><a
href="#">Distrikt</a></div></th>
<th spry:sort="score"><div align="right"
class="style2"><a
href="#">Karakter</a></div></th>
</tr>
<tr spry:repeat="dsCatalog" spry:setrow="dsCatalog"
spry:odd="odd" spry:even="even" spry:hover="hover"
spry:select="selected">
<td><div
align="left">{@id}</div></td>
<td><div
align="left">{date}</div></td>
<td><div
align="left">{Fullname}</div></td>
<td><div
align="left">{district}</div></td>
<td><div
align="right">{score}</div></td>
</tr>
</table>
</div>
</div>
The problem I have is that the highest amount of digits I use
in the score field is 10,0 (3 digits) and all other values is 2
digits (9,5 and 8,0) and the three digit value will not sort in the
right order. I use sorting in all columns as you can see. The value
of 10,0 will always stays in bottom (ascending) or top
(descending). Do I have to use XSL to give a solution to this (and
if so, how to implement it?). Or maybe there is another solution to
this?
Thanks in advance!
E.B
TextHi E.B.,
The trouble stems from using commas instead of decimal
points.
First, by default, Spry assumes the column is text and sorts
it as such.
If you set the column to a number:
datasetname.setColumnType("columnname","number");
Spry will return [NaN} (not a number) because it can't deal
with the commas.
If you use decimals points, it will work correctly.
If you can't use decimals, the solution will have to be XSL
or otherwise.
Hope this helps.
Donald Booth
Adobe Spry Team -
Why Captivate dont let you type decimals as apart of the reporting points?
If I have 15 questions on my test, how much is each question worth. You cant type decimals as points in the reporting section.
Please help. ThanksHi all
Apologies if this has already been pointed out, but I don't think it has.
Things such as this that are viewed as shortcomings really need to be brought to Adobe's attention. After all, they are always working on the next version or the next patch. And if nobody says anything they may well believe that there simply isn't an issue to be addressed.
If you would like to see this changed at some future point, please submit a Wish Form/Bug Report (same form is used for both and the link to the form is in my sig)
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks
Maybe you are looking for
-
Anyone else having issues after updating ipad with ios 8? My ipad now sometimes crashes on startup, apps crash, safari crashes, switching from one app to another very slow, pop up ad in apps, everything very slow in general. Any suggestions to correc
-
PrepareForDML method called twice
Have implemented a typical scenario (search - add - edit jspx pages). Within one application module, one view object with dynamically created where criterion is used for searching, and another view object fetching at most one row is used for insertin
-
I have a HP Pavilion p6710f with an AMD Athlon Quad-Core processor takes 10 to 12 minutes to boot
I have a refurbished HP Pavilion p6710f desktop, with an AMD Quad-Core processor. About 4 weeks aog I reformated the HD and reinstalled Windows 7 Prof and the rest o my software and it ran fine for about 2 weeks then it started taking 5 to 10 minute
-
To cineSpace and cineCube users
Hi guys, Those of you using cineCube already noticed that the soft is a pain when you have to make 2 or 3 LUT in a row, as the command line is a bit long to type. I've made a small GUI in Xcode to control cineCube and ease things a lot. I've already
-
Is it possible to open a .tif image file with labview...if so...how? Thanks, Azazal Azazel Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115