Dear Experts,
I have a problem with external sort used in the program. due to that report output records are not in the same order.
For example, i am extracting data from BSEG with fields company code, fiscal year, document no, item no, amount and GL Respectively.
in both the systems (R/3 4.7 and ECC6), data in internal tables are in same order by default.
but after the external sort using filelds company code, fiscal year and document no.
output records are sorted exactly with respect to the external sort order in both systems, but for certain line items are not in same order.
Please check below example.
For example in R/3:
684 | 2012 | 5000000532 | 5 | H | 2662.51 | 411100 |
684 | 2012 | 5000000532 | 4 | H | 13 | 555200 |
684 | 2012 | 5000000532 | 3 | S | 0.5 | 635400 |
684 | 2012 | 5000000532 | 2 | S | 12.5 | 627800 |
684 | 2012 | 5000000532 | 1 | S | 2662.51 | 555209 |
In ECC6,
684 | 2012 | 5000000532 | 1 | S | 2662.51 | 555209 |
684 | 2012 | 5000000532 | 2 | S | 12.5 | 627800 |
684 | 2012 | 5000000532 | 3 | S | 0.5 | 635400 |
684 | 2012 | 5000000532 | 4 | H | 13 | 555200 |
684 | 2012 | 5000000532 | 5 | H | 2662.51 | 411100 |