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

negative or postive

Former Member
0 Likes
500

Hi,

I have created field of type currency.

Which may include negative values with minus sign or positive values. If in case its a negative value, it should move it to a specified column in ALV or different field if in case +ve.

Is there is a FM to check negative(based on sign) or positive number and moved to specified column.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
458

hi

here is the logic to identify the sign.

if var lt 0.
"its negative.
else.
"its positive.So move accordingly
endif.

Regards

Sajid

2 REPLIES 2
Read only

former_member194416
Contributor
0 Likes
458

Is this a joke. Check if, move and '=' statements from standard abap documentation

Read only

Former Member
0 Likes
459

hi

here is the logic to identify the sign.

if var lt 0.
"its negative.
else.
"its positive.So move accordingly
endif.

Regards

Sajid