Re: Issue in Decimal value round off in DB2
Hi All, It is happening only only when the decimal separator of source is ',' and behaving normally when decimal separator is '.'. Some how ..we casted the incoming field to TO_DECIMAL(IN_FIELD,2) ..in that case it is working fine. Regards,Srinivas
Hi All, I am facing an issue wherein Decimal value of 0.01 is getting converted to 0.00. Let me brief you about Source-target Types - Source - Flat FileTarget - DB2Powercenter Version - 9.6.1 HF2 Issue - Field in Source File is defined as Number(5,2).Corrosponding field from Db2 Target Table is defined as Decimal(5,2). Mapping is simple straight forward mapping with 1:1 loading from Source to target. Now, my Source File contain data as below - 0.010.020.0312.01 When I execute mapping, DB2 target Table gets loaded with all records.Value from corrosponding DB2 Target Table is - 0.000.020.0312.01 As you can see value of 0.01 is getting converted to 0.00 whereas all other values are working fine as expected. As a quick fix, I have applied to_decimal(source_field,2) before loading it to target. Could anyone please explain if this is an issue with Powercenter or there's some other issue. If I think it's a rounding issue then how come value of 0.02 is working fine? Please advise.
Similar Messages
-
Issue in Decimal value round off
Hi All, I am facing an issue wherein Decimal value of 0.01 is getting converted to 0.00. Let me brief you about Source-target Types - Source - Flat FileTarget - DB2Powercenter Version - 9.6.1 HF2 Issue - Field in Source File is defined as Number(5,2).Corrosponding field from Db2 Target Table is defined as Decimal(5,2). Mapping is simple straight forward mapping with 1:1 loading from Source to target. Now, my Source File contain data as below - 0.010.020.0312.01 When I execute mapping, DB2 target Table gets loaded with all records.Value from corrosponding DB2 Target Table is - 0.000.020.0312.01 As you can see value of 0.01 is getting converted to 0.00 whereas all other values are working fine as expected. As a quick fix, I have applied to_decimal(source_field,2) before loading it to target. Could anyone please explain if this is an issue with Powercenter or there's some other issue. If I think it's a rounding issue then how come value of 0.02 is working fine? Please advise.
Hi All, I have one scenario to read the source file . The file delimiter is '|' . The no of pipeline for each line is 17. So if a line containing more than 17 , send an error email. For this first i am printing tota pipeline in ecah line to afile called pipelinecount.txt . Then i will read this file and send each value to while loop /for loop , where it will get > 17 , it will exit the process and send an email. But here in script i am getting error at while line. Could anyone help. #! /bin/kshset -x SOURCE_DIR=/vp01/SrcFilessed 's/[^|]//g' /vp01/SrcFiles/Test.txt | awk '{ print length }'> /vp01/SrcFiles/pipelinecount.txtcd $SOURCE_DIRwhile line in `cat pipelinecount.txt`; do if [ $line -eq 17 ];thenecho "No issue in pipeline"exit 0;fiif [ $line -gt 17 ];thenecho "No of pipelines exceeded the expected. Please verify the source file." | mailx -s "WKFS Load: Failed" [email protected]
-
Sales Order Net Value - Round off
Hi Guru's,
I am having a requirement to round off the total value (VBAK - NETWR) in sales order.
Condition type DIFF is not fulfilling our requirement because its functioning as an item condition. It's doing round off for each line item.
Our requirement is Header level net value round off.
I have searched in SCN but I cant able to find any solution. Kindly throw some light on this subject.
Regards,
DineshHi,
After downloaded the note 1158475 implementation status show that cannot be implemented.
Check the screenshot below.
Regards,
Dinesh -
ALV: issue in truncating decimal values (rounding up)
Hi,
I have been receiving a problem truncating decimal values in alv environment using this abap code.
WRITE gwa_komv-kwert TO gv_out_tax CURRENCY rte0143sf-currency
DECIMALS l_decimals LEFT-JUSTIFIED.
where l_decimals = 0.
More exactly the value is rounded up but this is not my expectation.
Any idea?
Thanks.
GiovanniStandard behaviour with DECIMALS 0: rounding up or own.
And when you use the addition DECIMALS, then the CURRENCY addition is ignored as well. -
Web dynpro + adobe form decimal field round off
hello all,
I am now developing an application which is based on the SAP WebDynpro and Adobe form, but the application has an error, if one can help me to resolve the error, I will be very thankful.
The error is as follows, for a decimal filed on the Adobe form which is binded to a deicmal attribute of Webdynpro, if I get the value of the decimal field using the programming code as "context.nodexx.getAttribute("xx")", the decimal value is rounded off (e.g., 2.4 is changed to 2.0, 2.7 is changed to 3.0).
for example:In Web Dynpro, A node name is "TestNode" which has a type of decimalattribute named "TestAttr" , in adobe form a decimal field bind to the TestAttr . when i input 2.3 in adobe form, i click the button with code:
this.wdComponentAPI.getMessageManager.reportSuccess(this.wdContext.nodeTestNode.getTestAttr()+"");
the rusult is : 2.0
if i input the value 2.5 the result will be 3.0
Thanks All !Hi,
there is a special display pattern to check for null values:
null{pattern}
Example:
null{'please enter a value'}
But I don't know if WDJ is really sending a null value. You can combine this with alternatives using '|' to separate alternatives.
Regards,
Juergen -
Issue with Decimal Values in Bex Reporting
hello gurus,
I have extracted data from 2LIS_13_VDITM. In the ODS when I look at the Active data, column Billing Qty Sls Units - it shows "13,190 " and the Sales Unit is "KM".
ITEM SALES UNIT Billing Qty :Sales Unit
10 KM 13,190
20 KM 0,500
In R3 table VBRK also it stores in the above format.
But while reporting it rounds of the data as 13,000 and 1,000.
How can i get the actuals, in reporting also.
Pls advise. thanks in advance.Hi Eugene -Scaling it to 1 did not help.
Hi Roberto -> I had a look at the entries in T006 for KM (kilometers)and M(meters). this is what i got.
[Int. meas. unit] [Decimal.pl.rnd.] [Decimal places]
KM | 0 | 0
M | 2 | 0
And in SPRO in Src System and BW Sytem there is no mention of KM and meters.
Message was edited by: bw
Message was edited by: bw
Message was edited by: bw -
Unit of measure - rounding off during creation of planned order
Dear All,
We have defined one material OIL in MM41 and its UoM is EA also we have put alternative UoM is L(liter).
now we create BOM of semifinished material we use this oil as a component and enter its value in decimal points.
e.g 0.375 EA
During planned order creation or REM backflush system convert this quantity to 1 EA ,WE dont want this automatic conversion .
We have uploaded all master data in production and now it is very difficult to change all BOM
So what is the solution of this that system can not convert qty (rounding off).EA
Kindly reply
SunilHi Sunil,
IN CUNI Transaction Field Decimal Places is for displaying the decimals,there is a decimal place Rounding off field below,there try to maintain 3 decimals and check whether it is working.
One more thing is Unit EA will be used always as non decimal unit,But i dont know in your buisness how for unit EA there is a decimal qty
Edited by: Girish Adaviswamy on Mar 2, 2010 10:59 AM -
Rounding off salary components in Payresult table
Hi Experts,
I have a query around rounding off amounts in PC_PAYRESULT cluster. The basic pay should be rounded off two places from decimal ( This is done by v_512w_d, changing PC -10 (A)) but for other wage types the rounding of rule is no value post decimal and rounding off the amount after decimal to next number.
Really appreciate any help on the same. Thank you so much for all your support.
Regards,
J
Edited by: jyotsgsap on Aug 1, 2011 1:29 PMSorry , in case of wrong communication from my side, when i said about the process class 10 Spec A , it means this is the standrad one which was been provided by the SAP so for the wage types which are in IT0008 if they come into proration (i means PRCL 10 as 1 and if all them has to be rounded off in such cases instead of useing the PCRs we can go with the standrad one so i have said to go in the said manner in the previous thread) in standrad to round off the wage types we have to go with Custom PCRs if you are asking for Wage types in IT008 , 0014 , 0015 Etc
the pcr shd be inserted below XVAL if any or else u can use Spec A for wage types IT0008 , for wage types in IT0014 and 0015 you can use INAP -
Hi,
Anybody help me regarding following issue where to assign rounding off for excise duty (BED,Ecess,HEcess)
Regards,
vivekHi,
In your calculation schema maintain AltCTyp as 17 against these conditions.This will round off to nearest rupee.
Dhruba -
Hi All,
In my cube , forecast qty appears as 11.51 but in the query it appears as 12 . I tried under properties , 'Display result as - Summation ' . But it did not help . Is there any way I can display my the qty as 11.51 in my query .
ThanksHi Rao,
Please take a look at the following:
Re: Issue with Decimal Values in Bex Reporting
Hope this helps... -
Rounding off to a variable value to 4 decimal values in sap script ouput
Hi All,
I have a value getting displayed in sap script output as 235.6789 i want to Round off this variable value to 4 decimal values!
What is the formatting option need to be used & how!
Thanks in advance.
Thanks,
Deep.Hi,
1.In layout just call that variable, where you need like:
&variable(.4)&.
Just see these:
&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
Regards,
If helpful reward with points(Don't forget). -
Limit a float value to single decimal place after round off
41.231445 is float value . How can I limit this to a single decimal place after round off?
ie; 41.2
Any help in this regard will be well appreciated with dukes.
Regards,
AneesAlso read this: [http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html]
-
Pr00 decimal values needs instead off rounding the value
In export sales Pr00 condition value is rounding off i need to be in decimal values
i have checked in Condition type V/06 rounding fields it is not effecting and also OB90 and OY04
example rounding off 26 USD, but at actual it should 25.58 exchange rate is 43 and qty is 100
can any body suggests where the setting ar requiredHi,
Please check the Rounding rule property of the condition type 'PR00'. It must have been set to Round up rather than Commercial.
Change the Rounding rule property to Commercial. I guess this will solve your purpose. -
How to make the Decimal values into Round off value
Hi Experts,
I have an internal table with 3 columns, the 3rd column having decimal values, Now i want to convert the values in to whole number, Ex: 15.67 will be 15.7
Anyone plz help this.
Mohanahii
use following code
DATA:
wa_val type p decimals 2,
L_ANDEC like T006-ANDEC value 1,
wa_val2 type p decimals 1.
wa_val = '15.67' .
CALL FUNCTION 'ROUND'
EXPORTING
DECIMALS = L_ANDEC
input = wa_val
SIGN = '+'
IMPORTING
OUTPUT = wa_val2
EXCEPTIONS
INPUT_INVALID = 1
OVERFLOW = 2
TYPE_INVALID = 3
OTHERS = 4
WRITE:/ wa_val2.
regards
twinkal -
Issue in MODVAT Clearing Account and Rounding off of Excise.
I have one issue in MODVAT Clearing Account and Rounding off of Excise.
Example:
Material cost 100Rs.
Excise value
1. BED 10.5 Rs
2. ECes 2.1 Rs
3. HEces 1.3.Rs
At the time of GR
Material Ac Dr 100
To GR/IR 100
At the time of Excise Capture
We done the rounding of Excise value
RG23 A BED 11
RG23 A Eces 2
RG23 A HEces 1
To MODVAT 14
At the time of IR . System create IR with reference of PO
GR/IR DR 100
MODVAT 13.9
To Vendor 113.9
So here you can see that there is a difference of 0.1 in MODVAT account and hence we are crediting Vendor with the lesser amount here with 0.1 RS.
So we cannot reconcile the MODVAT Account
Less Payment to vendor by 0.1 Rs
So is there any solutions on that.
regards
Shayam
Edited by: Shayam_210 on Jan 3, 2011 7:08 AM
Edited by: Shayam_210 on Jan 3, 2011 7:09 AMHi,
Check the rounding setting in below:-
SPRO > Logistics - General > Tax on Goods Movements > India > Basic Settings > Maintain Company Code Settings
SPRO > General Settings > Currencies > Define rounding rules for currencies
Regards,
Gaurav
Maybe you are looking for
-
Umlauts are not displayed correctly in different programs
Hello! I live in germany, but my locale is set to "en_US.UTF8" because I like to have everything in english. I do not have any problems with umlauts on the machine, but when I connect with sFTP oder Samba to it, the umlauts in files are not displayed
-
Printing in Elements 12 is pixilated, but all my other elements programs are fine?
I can not print the exact same file in Elements 12. In elements 12 it prints very pixelated and in Elements 9 and 10 it prints perfect. Help?
-
How to diagnose a broken 30 pin dock connector?
Is there a "diagnostic" application to determine if my Iphone 4 - 30 pin dock connector is fully functional? BTW - all lint and dirt has been removed (delicately). This iPhone has been able to perform TV/video out and mirror display with a (still) fu
-
Updating VBAP line information in user exit when using VA02
HI All I am trying to update the values of VBAP-CHARG in user exit form USEREXIT_SAVE_DOCUMENT for all line items. But i am unable to update the values though it gets reflected in xvbap. Kindly help me in this. thanks and regards shilpa
-
I cannot install Acrobat through Creative Cloud
Hi, I cannot install Acrobat through Creative Cloud on OSX 10.9.5. The error output is below. I've tried: Uninstall everything using the uninstallers Restart Run the CC Cleaner tool Restart Run sudo find . /Users/*/Library -name Adobe Delete anything