2005 Oct 21 9:53 AM
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
2005 Oct 21 10:06 AM
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.
2005 Oct 21 11:03 AM
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
2005 Oct 21 4:49 PM
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