2013 Dec 23 6:07 PM
Hi Folks.
I want to find the positive or negative difference between consecutive values or increasing or decreasing order.
for eg: field A fieldB fieldC FieldD
0 10 20 40 -----------------> Increasing Order
100 70 50 0 -------------------> Decreasing Order
0 30 0 50 -------------------> finding the blank value between values
how can i find the above increasing or decreasing order in ABAP.
Thanks,
Smriti
Hi Folks.
I want to find the positive or negative difference between consecutive values or increasing or decreasing order.
for eg: field A fieldB fieldC FieldD
0 10 20 40 -----------------> Increasing Order
100 70 50 0 -------------------> Decreasing Order
0 30 0 50 -------------------> finding the blank value between values
how can i find the above increasing or decreasing order in ABAP.
Thanks,
Smriti
2013 Dec 24 4:41 AM
Hi,
Not sure why you want to identify the order. You can have the data in ascending or descending order using simple SORT statement. Thanks!
2013 Dec 24 4:42 AM
2013 Dec 24 4:52 AM
Hi Smriti,
your question is not clear,
if you wants to take any range in any order, you can use .
SORT itab ASCENDING field name.
SORT itab DESCENDING field name.
and after that you can loop with your internal table to know the difference between them.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |