‎2009 Jan 20 6:00 AM
loop at lt_hide_log_list into ls_hide_log_list.
delete table et_save_log_customizing from ls_hide_log_list.
endloop.
Thanks for helping.
Best regards,
Lament
‎2009 Jan 20 6:15 AM
Hi
loop at lt_hide_log_list into ls_hide_log_list.
delete table et_save_log_customizing from ls_hide_log_list.
APPEND lt_hide_log_list.
endloop.
thanks
Mahesh
‎2009 Jan 20 6:02 AM
‎2009 Jan 20 6:03 AM
They are all the type tihttpnvp
That is the "name-value" list.
Regards,
Lament
‎2009 Jan 20 6:14 AM
Hi Gates,
I dont think it requires further optimization. The code is already optmized. Inside LOOP when you are using a work area to delete the values from another internal table of same line type, the performance is satisfactory. The code that you have used is the recommended way of using the delete statement.
So you can use the code as it is.
Best Regards,
Ram.
‎2009 Jan 20 6:18 AM
Hi,
when u use a work area...it is like...
The statement deletes the first internal table row whose values in the columns of the table key match those of the corresponding components of wa. If the key fields in wa are empty, no entry is deleted.
So if you want to delete more than one row from the table et_save_log_customizing having the same key as the work area...u have to use..
loop at lt_hide_log_list into ls_hide_log_list.
DELETE TABLE et_save_log_customizing WITH KEY name = ls_hide_log_list-name.
endloop.
preformance wise both are ok...
‎2009 Jan 20 6:03 AM
‎2009 Jan 20 6:15 AM
Hi
loop at lt_hide_log_list into ls_hide_log_list.
delete table et_save_log_customizing from ls_hide_log_list.
APPEND lt_hide_log_list.
endloop.
thanks
Mahesh
‎2009 Jan 21 7:04 AM