Skip to Content
0
Former Member
Oct 26, 2007 at 04:27 PM

Sorting

41 Views

Hi,

I wanted ti sort Itable by XBLNR and KUNNR, but it is sorting the MATNR also. Please help me why it is happening like this.

SORT gt_zprice BY xblnr DESCENDING kunnr.

For Ex:

kunnr matnr xblnr

1002 11111 SA-07-009

1002 22222 SA-07-009

1002 33333 SA-07-009

1001 11111 SA-07-008

1001 22222 SA-07-008

1001 33333 SA-07-008

I want the result to be like this

kunnr matnr xblnr

1001 11111 SA-07-008

1001 22222 SA-07-008

1001 33333 SA-07-008

1002 11111 SA-07-009

1002 22222 SA-07-009

1002 33333 SA-07-009

But it is comming like the following, material is also sorting.

kunnr matnr xblnr

1001 22222 SA-07-008

1001 11111 SA-07-008

1001 33333 SA-07-008

1002 22222 SA-07-009

1002 11111 SA-07-009

1002 33333 SA-07-009

Thanks,

Veni.