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

Restricting internal table data for date wise calculation

Former Member
0 Likes
461

Dear Experts,
I have a data table with records of power readings stored Date wise. Now I have to create a report that does the calculations from the data as below.

1. Average of readings of last week's data.(last 1-7 days)

2. Average of readings of previous week's data.(last 8 - 14 days)

3. Average of reading of prev. month's data. (last 15 - 45 days).

Now my question is how to extract the data from table date wise as required.

Also if there is any way I can store only 45 data records starting from yesterday till last 45th day  then pls help me how to achieve this ??

Thanks,

Regards.

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
436

Hi,

you could create ranges for the 3 type of period. You set date with a simple calculation:

Yesterday = sy-datum - 1.

45_days = Yesterday - 45 ...

What's the problem with your dates ??

I don't understand

regards

Fre

2 REPLIES 2
Read only

Former Member
0 Likes
436

Hi,

The table's short description comes in as the title of the maintenance view.

Read only

FredericGirod
Active Contributor
0 Likes
437

Hi,

you could create ranges for the 3 type of period. You set date with a simple calculation:

Yesterday = sy-datum - 1.

45_days = Yesterday - 45 ...

What's the problem with your dates ??

I don't understand

regards

Fre