Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg: Decimal value is converted to Integer in a standard function module

Former Member
0 Likes
1,042

Dear Experts,

Im using the Standard Function Module BAPI_SYSTEM_MTE_GETPERFCURVAL to read the current performance values by passing the TID number.

Im getting the Value for eg: when i see a value in CCMS transaction the value is 0.012 but when i execute this function module to get this value im getting the value as 12. when i again check the transaction and code the original value is 0.28 is shown as 28.

What ever the value the CCMS is displaying with decimal values are replaced with integer. So it will be helpful for me if anyone gives me a solution to solve this problem

Regards

Arun.P

5 REPLIES 5
Read only

Former Member
0 Likes
986

I hope you did notice the function only returns integer values?

So you'll need to come up with a solution yourself... like... divide the integer value with something else into your decimal field?

Read only

0 Likes
986

Hi Maen

If the value is coming like 0.09 and the value is shown as 9 we can use our logic of dividing it by 100 but the value changes like 0.098 is also shown as 98, here comes the problem we cant able to apply our logic.

Regards

Arun.P

Read only

0 Likes
986

I'm not familiar with the function and it's usage. But i'm convinced somewhere in the system the number of decimal places or factor of the real value is defined. Find that and you know how to divide the integer value.

Read only

ZohoSAP
Explorer
0 Likes
986

Hi, I have a similar requirement. Kindly share if there exists any solution.

Read only

FredericGirod
Active Contributor
986

appmanager open your own question