Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

abap reports

Former Member
0 Likes
568

hi community,

i am wrting a code in which i delete data from particular data base table and append that data in the new table.

that is ok . Now my requirment is that i want that if any error or dump occure in the program then program shows the last data with value which is deleted from the data base table how to write that code.

Edited by: rajcool on Apr 5, 2010 5:18 PM

Moderator message: please use a more meaningful subject line next time!

Edited by: Thomas Zloch on Apr 5, 2010 6:40 PM

hi community,

i am wrting a code in which i delete data from particular data base table and append that data in the new table.

that is ok . Now my requirment is that i want that if any error or dump occure in the program then program shows the last data with value which is deleted from the data base table how to write that code.

Edited by: rajcool on Apr 5, 2010 5:18 PM

Moderator message: please use a more meaningful subject line next time!

Edited by: Thomas Zloch on Apr 5, 2010 6:40 PM

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
535

How are you deleting the data ?

Read only

0 Likes
535

INSERT zrecon_hist_2a FROM TABLE t_fbicrc002a_insert. """"""""""""""

IF sy-subrc EQ 0.

DELETE fbicrc002a FROM TABLE t_fbicrc002a_delete.

here table t_fbicrc002a_delete and t_fbicrc002a_insert have same data.

Edited by: rajcool on Apr 5, 2010 5:32 PM

Read only

0 Likes
535

DELETE fbicrc002a FROM TABLE t_fbicrc002a_delete.

Here the records are not deleted one by one.

If you require to capture the record details in the loop and delete.

DELETE fbicrc002a FROM wa_fbicrc002a_delete.

if sy-subrc <> 0.

write / wa_fbicrc002a_delete..

endif.