2006 Jan 08 7:27 PM
Hi Friends,
I'm new to abap, i've a req where i need to see the sign of a particular field named receivable amt,
its values are : -100, 500, 340, -220
if its a - sign in front it should be assigned to a field named A else assigned to B. i don't need to worry about the values, just the sign. how to do it in abap.
2006 Jan 08 7:35 PM
Just check if its less than 0.
report zrich_0001.
data: a_value type i.
data: b_value type i.
parameters: the_val type i.
if the_val < 0.
a_value = the_val.
else.
b_value = the_val.
endif.
write:/ 'A_VALUE', a_value.
write:/ 'B_VALUE', b_value.
Regards,
Rich Heilman
2006 Jan 08 7:35 PM
2006 Jan 08 7:42 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |