Sort Statement Error
I have declared an internal table declared as below:
data:zitab type table of zsalesitem1a.
The ztable 'zsalesitem1a' has a primary key, zecrno.
After populating the internal table zitab with values from the ztable, i am sorting the zitab using :
sort zitab descending by zecrno.
But the sort statement is sorting the zitab using line number, not by zecrno values.
Please let me know what is missing.
Thanks and Regards.