Sorting of Dyanmic internal table
I am having a dynamic internal table (it_mat) having fields matnr uname field1,field2,field3 and field4.
the field is upto fieldN.
I want my table to sorted by this manner
Sort it_mat by field4 field3 field2 field1.
Sort it_mat by fieldN field(N-1)...field1.
Please help me in to get this in dynamic manner.