2008 Feb 07 1:39 PM
Hi.
I want download the a table via gui_download method. This method only accepts table of type standard.
I have hashed table and i wan to conver to standard one.
This statement does not work : ANY OTHER ?
T_wA IS A HASHED TABLE.
Data: twa_stnd like STANDARD TABLE OF T_wA.
twa_stnd = T_wa.
Please help.
2008 Feb 07 1:58 PM
You could define your standard table in a similar way to your hashed table - so something like:
DATA: lth_test LIKE HASHED TABLE OF t000 WITH UNIQUE KEY mandt,
lts_test LIKE STANDARD TABLE OF t000 WITH NON-UNIQUE KEY table_line.
lts_test = lth_testAlternatively, define an intermediate type:
TYPES: wa_stnd_type like line of t_wa.
DATA twa_stnd like STANDARD TABLE OF wa_stnd_type.
twa_stnd = T_wa.matt
2008 Feb 07 1:58 PM
You could define your standard table in a similar way to your hashed table - so something like:
DATA: lth_test LIKE HASHED TABLE OF t000 WITH UNIQUE KEY mandt,
lts_test LIKE STANDARD TABLE OF t000 WITH NON-UNIQUE KEY table_line.
lts_test = lth_testAlternatively, define an intermediate type:
TYPES: wa_stnd_type like line of t_wa.
DATA twa_stnd like STANDARD TABLE OF wa_stnd_type.
twa_stnd = T_wa.matt
2008 Feb 07 2:05 PM
Hi Matt.
The T_wa is a field symbol for hashed table
so the code below will not working as during compile time the structure is now known.
TYPES: wa_stnd_type like line of t_wa.
DATA twa_stnd like STANDARD TABLE OF wa_stnd_type.
twa_stnd = T_wa.
CHANGED TO WILL ALSO NOT WORK. - Reason: Structure of <T_wa> Not known.
TYPES: wa_stnd_type like line of <t_wa>.
DATA twa_stnd like STANDARD TABLE OF wa_stnd_type.
twa_stnd = <T_wa>.
2008 Feb 07 2:10 PM
Ah, OK - that's important information.
FIELD-SYMBOLS: <lth_data> TYPE HASHED TABLE,
<lts_data> TYPE STANDARD TABLE,
<ls_wa> TYPE ANY.
DATA: lp_data TYPE REF TO DATA.
... " <lth_data> is defined and populated, but only known at run time.
CREATE DATA lp_data LIKE LINE OF <lth_data>.
ASSIGN lp_data->* TO <ls_wa>.
CREATE DATA lp_data LIKE STANDARD TABLE OF <ls_wa>.
ASSIGN lp_data->* TO <lts_data>.
<lts_data> = <lth_data>.matt
2008 Feb 07 2:25 PM
2008 Feb 07 2:03 PM
hi
good
you have to define another itab (TYPE STANDARD) and:
itab1 = itab2
(itab1 is the standard one, itab2 the hashed one)
thanks
mrutyun^