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

decimal in sapscript

Former Member
0 Likes
511

i'm doing it and i get 18

i have 18200

i neefd to get 18.2

i tried your answer and not sorry

4 REPLIES 4
Read only

suresh_datti
Active Contributor
0 Likes
485

Didn't &NUM(.1)& suggested in your other Thread work?

~Suresh

Read only

0 Likes
485

He wants to divide the value by 1000 first.

I think the NUM variable is a quantity or currency field and is not defined fully in the ABAP program. For example, it needs the unit or currency key.

Read only

Former Member
0 Likes
485

Try &NUM(2.3)&

Also, if you can cut-paste the data declaration for NUM in your abap.

Regards

Anurag

Message was edited by: Anurag Bankley

Read only

Former Member
0 Likes
485

Try this solution...

In your ABAP..

Data : L_CNUM(10) type c.

--As indicated by you NUM in the ABAP is 18200

write NUM to L_CNUM using edit mask 'RR_______.__'.

-- and in your script.

&L_CNUM&

Regards

Anurag