Skip to Content
0

Unexpectedly updated a table data but i need a previous data of table?

Nov 22, 2016 at 03:00 PM

16

avatar image

In a custom table there are 5 fields i need to update only 3 fields but unfortunately i updated all is there any way to get back previous data of table??

data : it_abc type table of zac_rem,

wa_abc type zac_rem.

select * from hrp5304 into table it_hr where ...

loop at it_hr into wa_hr.

if wa_hr-objid = 'p2'.

concatenate ' ' ' ' into wa_rem-objid.

else.

concatenate ' ' ' ' into wa_rem-objid.

endif.

case wa_hr-freq.

when ' '.

wa_rem-zdat = ' '....

endcase.

endloop.

modify zac_rem from table it_rem.

if sy-subrc = 0.

message ' data base table update' type 'I'.

else.

message ' not update' type 'I'.

endif.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers