Skip to Content
0
Apr 23, 2014 at 11:40 AM

How to sort field symbol dynamic table?

1412 Views

Hi guys,

could anybody please tell me how to sort dynamic table. i've gone through community forums though couldn't find proper solution. please help me out.

sample code for ur reference

LOOP AT it_final INTO wa_final.

CREATE DATA mydata LIKE LINE OF <table>.

ASSIGN mydata->* TO <line>.


ASSIGN COMPONENT 'PRUEFLOS' OF STRUCTURE <line> TO <field>.

MOVE wa_final-prueflos TO <field>.

UNASSIGN <field>.

ASSIGN COMPONENT 'CHARG' OF STRUCTURE <line> TO <field>.

MOVE wa_final-charg TO <field>.

UNASSIGN <field>.

ASSIGN COMPONENT 'CUST_DESC' OF STRUCTURE <line> TO <field>.

MOVE wa_final-cust_desc TO <field>.

UNASSIGN <field>.


APPEND <line> TO <table>.

CLEAR : wa_final.


ENDLOOP.


Here i just want sort <table> by PRUEFLOS

thanks in advance

regards

satish