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

Sort itab stable

Former Member
0 Likes
1,935

Hi,

can you please explain me diffrence between Sort itab stable and sort itab using simple example.

Regards,

Suresh.

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
6 REPLIES 6
Read only

siddhesh_pathak4
Contributor
0 Likes
929

This will help you,

[http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/frameset.htm]

Read only

Former Member
0 Likes
929

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

Read only

Former Member
0 Likes
929

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

Read only

I355602
Product and Topic Expert
Product and Topic Expert
Read only

Former Member
0 Likes
929

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

Read only

Former Member
0 Likes
929

Hi,

Thanks for your replies......

Regards,

Suresh