Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting on Field Symbols

Former Member
0 Kudos
91

Hi,

I have created ztable and table maintenance generator for the same. So its already generated code like

PROCESS BEFORE OUTPUT.

MODULE LISTE_INITIALISIEREN.

LOOP AT EXTRACT WITH CONTROL

TCTRL_YS014 CURSOR NEXTLINE.

MODULE LISTE_SHOW_LISTE.

ENDLOOP. etc....

Here EXTRACT Is a internal table of type ANY... Now i am getting records sorted by key fields of Z-table.

But I need Sort by some other fields.. So i am trying to sort EXTRACT but not able to...

Can anybody helpme on this..

Rayudu

3 REPLIES 3

rainer_hbenthal
Active Contributor
0 Kudos
63

Extract is not really a table, it is a language construct to hold huge amount of data on (temporary) disk. Read it in an internal table to sort in a different way.

Former Member
0 Kudos
63

hi,

in module MODULE LISTE_INITIALISIEREN.

try with sort extract by matnr.

note : extract is an abap keyword is for field-groups, and change the internal table name like l_extract

cheers,

sasi

Former Member
0 Kudos
63

Hi rayudu,

this process may help u.Please check.

FIELD-GROUPS: HEADER, ORDER, PRODUCT.

use insert statement to add the field to teh field-group which u want

to sort.

use extract statement to populate u r field-group.

And sort by field.

Thanks,

Vamsi