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

currency

Former Member
0 Likes
1,010

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

7 REPLIES 7
Read only

Former Member
0 Likes
981

Do you always want to pass it without decimals than initialise the data into an integer field.

lint = mhnd-bmshb

Regards

Anurag

Read only

0 Likes
981

hi anurag can u explain in detail way

Read only

0 Likes
981

data : lnum(13) type n.

lnum = mhnd-dmshb.

Read only

0 Likes
981

how to supress the leading zeros anurag

Read only

0 Likes
981

you can write it with no-zero.

WRITE mhsd-dmshb to lnum no-zero.

Read only

Former Member
0 Likes
981

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.

Read only

Former Member
0 Likes
981

for this u can take this value into another variable with out desimals.

or if the field is character type then use split