Skip to Content

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

Sort Statement Error

Friends,

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.

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