2006 Sep 01 10:30 AM
hi,
how to pass a number without decimal places to the functional module.
like i wan to pass 5,000.00 which is from mhnd-bmshb
i want to pass it without this decimal parts to funcitonal
module how can i do it
thanks in advnace
kiran
hi,
how to pass a number without decimal places to the functional module.
like i wan to pass 5,000.00 which is from mhnd-bmshb
i want to pass it without this decimal parts to funcitonal
module how can i do it
thanks in advnace
kiran
2006 Sep 01 10:35 AM
Do you always want to pass it without decimals than initialise the data into an integer field.
lint = mhnd-bmshb
Regards
Anurag
2006 Sep 01 10:39 AM
2006 Sep 01 10:42 AM
2006 Sep 01 10:51 AM
2006 Sep 01 11:08 AM
you can write it with no-zero.
WRITE mhsd-dmshb to lnum no-zero.
2006 Sep 01 10:59 AM
hi,
What is the data type of the function module parameter?
you can use trun( v_pack ) to get the integer part.
data: v_pack type p decimals 2 value '5000.00',
v_int type i.
v_int = trun( v_pack ).
Regards,
Sailaja.
2006 Sep 01 10:59 AM
for this u can take this value into another variable with out desimals.
or if the field is character type then use split
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |