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

deleting data based on date-range

Former Member
0 Likes
4,165

hi,

i want to erase all entries older than 2 months from database.

please do the needful.

6 REPLIES 6
Read only

Former Member
0 Likes
2,069

From all SAP tables? This is going to be fun... hope you already start looking for another job.

Read only

0 Likes
2,069

i have to delete data from user created database table .

Read only

0 Likes
2,069

Better hand it over to somebody who knows what he is doing.

Thomas

Read only

Former Member
0 Likes
2,069

Hi

I assume you are trying to data from Z table

is yes

Data : temp_date type sy-datum.

temp_date = sy-datum - 60.

delete ztable where your date field < temp_date.

Regards

Madhan

Read only

0 Likes
2,069

thanks for ur help !

Read only

madan_ullasa
Contributor
0 Likes
2,069

Hi,

Hey you would not do that in production... Data are usually archived... not deleted.....

As for your sandbox ask your basis to do a system refresh...

regards,

Madan...