Skip to Content

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

Sorting a sorted table

Hi,

Iu2019m developing the invoice smartform. The used structure is u201CIS_BIL_INVOICE type LBBIL_INVOICEu201D. It is a sorted table (I need to sort it with different criteria, concretely its IT_GEN component). How can I sort it (I cannot use SORT command)? Do I have to modify the main program? Or does exist a different way?

Thanks in advance,

Ricard.

Tags:
replied

Yes it is impossible to sort a sorted table to a different sort order. You must copy the table to a sorted table (with or without a unique key) with the different sort order. Exactly as Aparna Shekhar already said.

If you control the definition of the internal table, then you can specify secondard indexes in later versions of Netweaver.

matt

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question