cancel
Showing results for 
Search instead for 
Did you mean: 

Zeroes after decimal coming unnecessarily

Former Member
0 Kudos

Hi ,

I have an input field for amount, for which i have a default value of "20", but it gets displayed as 20,000000000 . i dont want the zeroes after the decimal. The data type is "BCA_TAMNT_BAPI", which i can change as i have to pass it to BAPI.

Kindly help out:)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to move this value to declare antoher varible of type I (inorder to avoid zeros) and bind this variable to that attribute/UI element and display it.

Regards

Lekha

Former Member
0 Kudos

Hi,

DATA: INTEGER TYPE I,

DECIMAL TYPE P.

INTEGER = DECIMAL .

Try like this then in variable INTEGER there will not any zeros after decimal.

Edited by: Rohit Makkar on Sep 26, 2008 9:24 AM

Former Member
0 Kudos

Hi,

When i try assigning Integer to type which i am passing to BAPI, it is giving error.

Former Member
0 Kudos

Hi,

Check the value of the input field amount you are trying to populate in the DEBUGGING mode.

Check the data type fo this amount field and the BAPI field dataype. Sometimes the the displayed value (OUTPUT format) and the actaul avlue in the fiedl (INTERNAL FORMAT) both differs. hence cheeck the actatula valuein the debugging .

Or

Use the FM for this conversion internally before passing to the BAPI (like converison Exit FM)

Regards

Lekha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Refer the following links which cater to the same problem

Hope this helps

Regards

Shilpa