Skip to Content
0
Former Member
Dec 19, 2006 at 02:28 PM

delete data from my DB TABLE

29 Views

Hallow I build a table in se11 that I can put on her data from my itab how can I clean the table before I put a new data. I try with delete but its not working and refresh given me an error that I have not a header line . what can I do. Thankes

DELETE yhr_ex_mushlach.

LOOP AT itab1.

SPLIT itab1 AT ',' INTO:

itab-id_number

itab-rama

itab-hagbla1

itab-date_start_hagbl

itab-date_stop_hagbla.

IF itab-id_number > 0 .

w_length = STRLEN( itab-id_number ).

w_length = w_length - 1.

itab-pernr = itab-id_number+0(w_length).

ELSE.

itab-pernr = 0.

ENDIF.

APPEND itab.

ENDLOOP.

loop at itab.

modify yhr_table_muslah from itab.

end loop.