on 04-27-2010 7:48 AM
Hi Expert,
I have a probelm with Float variable. In my smart forms one fields of table QAMV contain value like 8.0000000000000000E+01.
I have to remove the exponent and display value like 80.
I have tried wa_qamv-sollwert(E10.4).. but it not working.
Can U suggest me some solution.
Regards
Swati.
Edited by: Swati Namdev on Apr 27, 2010 12:19 PM
Hi,
Please follow the steps.
1. In your smart form create a variable w_val ,, type,, associate type --> CHAR10
2. Now write a code, jsut above your node where u wud like to get this value... For this Create -> Flow Logic -> Program Lines.. Now you have editor..
3. In input parameters , put i_tab-QAMV.. and in output parameter put w_val... and Code like below
CALL FUNCTION 'MD_CONV_QUANTITY_FLOAT_TO_PACK'
EXPORTING
iv_menge = i_tab-qamv
IMPORTING
EV_MENGE = w_val.
4. Now grag and drop this w_val from global data field list...your this w_val will have the rounded value.. Pls try this and check.. It will work.
Regards,
Lokesh.
Edited by: Lokesh Tarey on Apr 27, 2010 9:28 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swati,
you can look for some standard FM in SE37. you can search with FLOAT etc. There are some standrd FM which converts floating numbers in integers.
Regards,
Sambaran Ray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.