‎2009 Mar 16 11:19 AM
Hi,
can you please explain me diffrence between Sort itab stable and sort itab using simple example.
Regards,
Suresh.
‎2009 Mar 16 12:25 PM
‎2009 Mar 16 11:21 AM
This will help you,
[http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/frameset.htm]
‎2009 Mar 16 11:23 AM
1 3
2 2
1 3
1 2
2 3
SORT ITAB STABLE always gives the output same
1 2
1 3
1 3
2 2
2 3
but SORT ITAB gives
1 2
1 3
1 3
2 2
2 3
or
1 3
1 3
1 2
2 2
2 3
or
1 3
1 2
1 3
2 3
2 2
‎2009 Mar 16 12:25 PM
Hi Suresh
SORT STABLE statement will make the sort stable.Means each time you press the sort button
the sort sequence will not be changed.
Regards
Hareesh Menon
‎2009 Mar 16 12:25 PM
‎2009 Mar 16 12:26 PM
Hi Suresh,
In normal SORT sorts every time according to the sort keys.But SORT STABLE sorts only any changes done on the table entries after the last sort otherwise the table sort sequence remain same.
Regards
Pinaki
‎2009 Mar 16 1:20 PM