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

Retrieve decimal values from a table

Former Member
0 Likes
597

Hi,

I have a table field EBAN -menge with decimal as well as whole numbers.

Now,I want to retrieve and disply only decimal values from the table based on purchase requisition number.

Can anybody please provide me a solution.

Thanks,

Venkat.

.

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
544

Use 'frac', 'trunc', and the other mathematical operators for numeric value analysis operations.

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
545

Use 'frac', 'trunc', and the other mathematical operators for numeric value analysis operations.

Read only

Former Member
0 Likes
544

Hi,

How about WRITEing the MENGE field to a character field with the additional clause UNIT EBAN-MEINS, ie.


DATA: L_MENGE(20)          TYPE C.
WRITE EBAN-MENGE TO L_MENGE UNIT EBAN-MEINS.

This should format per the number of decimals places in the unit in EBAN-MEINS, so EA would be 0 DP but other units may have >0 DP.

Regards, Andy