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

Fields Value to Positive

Former Member
0 Likes
899

Is there any function module to convert all table field values which are negative to positive.

Or i have to check one by one all values.

Ivneet

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
818

if table-entry < 0.

Table-entry = table-entry * -1

endif.

Is there any function module to convert all table field values which are negative to positive.

Or i have to check one by one all values.

Ivneet

4 REPLIES 4
Read only

Former Member
0 Likes
819

if table-entry < 0.

Table-entry = table-entry * -1

endif.

Read only

0 Likes
818

Amit,

Are yu telling to test on by one.My talbe is it_output

I didnt get??

Ivneet

Read only

0 Likes
818
loop at it_otput.
if it_otput-amount < 0.
it_otput-amount= it_otput-amount * -1
modify it_output transporting amount.
endif.
Endloop.
Read only

0 Likes
818

thanks amit,

i think this way one by i had to check all fields.I was trying to get some thing which could convert all at time.