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

is there any function module todelete decimal values

Former Member
0 Likes
712

hi all

is there any function module todelete decimal values not converting charcter or numeric values i want to change my value with decimals to with out decimals.

please give me suggetion.

Thanks

Ramana reddy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
693

just declare

data : val type p decimals 0 .

" only val type p

val = <your current val>.

write : / val.

regards

shiba dutta

6 REPLIES 6
Read only

Former Member
0 Likes
694

just declare

data : val type p decimals 0 .

" only val type p

val = <your current val>.

write : / val.

regards

shiba dutta

Read only

0 Likes
693

Thanks my problem solved

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
693

HI,

Just assign it to a data of type I.

Data: int type I.

int = <your_data>.

Regards,

Sesh

Read only

Former Member
0 Likes
693

Hi Ramana,

Declare a variable of type p without decimals and move your value having decimals into that and use the newly defined variable.

Regards,

Kiran

Read only

Former Member
0 Likes
693

hi dear

you can use type P or I

Data W_VAL type P.

Data W_VAL type I.

or assigned dictionary field like Mara-MATNR as getting your value

Rewards if Useful.

Read only

0 Likes
693

hi my problem solved

Thank u