on 11-17-2010 10:36 AM
Hi All
I have a field in my smartform (VBAP-NETPR),which takes only two places after decimal(as per the data type defined for this field).I have the requirement that for the same field ,value should be displayed upto four decimal places.
I tried using ZTC.4 but it is only appending two zeros at the end ,not giving the exact value. Can anybody please help me regarding this??
Regards,
Ankur Mishra
hi ,
declare a required variable as type p decimals 4.
and go to konv table find the condition record .
if it isstored like 101025.00 for 1010.2500.
i think for usdn currency it will happen.
u can use following code.
data : lv_netpr type decimals 4.
lv_netpr = netpr / 1000.
you will get four fields after decimal point.
Regards,
karthikeyan ks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use
field type p decimal _ _
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Declare your field like BAPICURR-BAPICURR.
Regards,
Srini.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
now you are displaying VBAP-NETPR value which is having two decimal places but from where will you get the value of 4 decimal places ? if you are geting this 4 decimal value then define a variable with 4 decimal and print tat variable.
Regards,
Madhukar Shetty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhukar,
In the actual transaction i.e. VA03, the respective values have been maintained upto 4 decimal places, but in the database table only upto 2 decimal places have been specified for the field.This implies that SAP must be converting those values somewhere in between (with the help of some conversion or something),I tried finding that but could not.So need help for that.
Regards,
Ankur
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.