‎2006 Apr 28 6:21 AM
how can i transfer a standard table into sorted table ( and hashed table ).thanks.
‎2006 Apr 28 6:30 AM
I think you can copy the tables directly and abap will take care of it,
data t_standard_t type standard table of mara.
data t_sorted_t type sorted table of mara with unique key matnr.
select * from mara up to 10 rows into corresponding fields of table t_standard_t.
t_sorted_t[] = t_standard_t[].
‎2006 Apr 28 6:24 AM
Hi,
With SORTED APPEND will not work. You will have to use the INSERT command.
If the table strucutres are same
INSERT lines of tab1 to sorted_Tab.
If NOT, then you will have to build the work area for the SORTED tab, and then do a INSERT.
For HASHED, append also should work.
Regards,
Ravi
Note - Please mark the helpful answers
‎2006 Apr 28 6:30 AM
Hi Mao,
YOu can try this -
Loop at the standard table into a work area.
Use the <b>insert</b> command to add entries to sorted / hashed tables.
Endloop.
Regards,
Aniket
‎2006 Apr 28 6:30 AM
I think you can copy the tables directly and abap will take care of it,
data t_standard_t type standard table of mara.
data t_sorted_t type sorted table of mara with unique key matnr.
select * from mara up to 10 rows into corresponding fields of table t_standard_t.
t_sorted_t[] = t_standard_t[].
‎2006 Apr 28 6:42 AM