Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Sort internal table descending

Hi Gurus,

I have a internal table's structure as shown below:-

ITAB

E_OBJNR

E_POSIT

S_GJAHR

S_GNJHR

E_GNJHR

E_GES

........

.......

Row E_OBJNR E_POSIT S_GJAHR S_GNJHR E_GNJHR E_GES

1 PR00108320 0 0 0 0 X

2 PR00108331 0 0 0 0 X

3 PR00108330 0 0 0 0 X

4 PR00108325 0 0 0 0 X

5 PR00108321 0 0 0 0 X

6 PR00108324 0 0 0 0 X

7 PR00108323 0 0 0 0 X

8 PR00108326 0 0 0 0 X

9 PR00108327 0 0 0 0 X

10 PR00108329 0 0 0 0 X

11 PR00108322 0 0 0 0 X

12 PR00108328 0 0 0 0 X

sort it_bpak by e_ges descending.

after sorting, i get

Row E_OBJNR E_POSIT S_GJAHR S_GNJHR E_GNJHR E_GES

1 PR00108328 0 0 0 0 X

2 PR00108322 0 0 0 0 X

3 PR00108329 0 0 0 0 X

4 PR00108327 0 0 0 0 X

5 PR00108326 0 0 0 0 X

6 PR00108323 0 0 0 0 X

7 PR00108324 0 0 0 0 X

8 PR00108321 0 0 0 0 X

9 PR00108325 0 0 0 0 X

10 PR00108330 0 0 0 0 X

11 PR00108331 0 0 0 0 X

12 PR00108320 0 0 0 0 X

all my rows in field e_ges contains value 'X'.

so how is sorting based on?

Please advice.

Best Regards,

Fung

Tags:
Not what you were looking for? View more on this topic or Ask a question