Application Development 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: 

Minus N number of days from date and display record of last 15-16 days

tanya-singh222
Discoverer
0 Kudos

I have a query where I have to fetch the data of casual labour workers in my company. I have already sorted and filtered their data using time data and and their active status.

Now i need to insert the date function in such a way that if this automail shoots itself on 1st of any month, the record of previous 15 days should be visible in that report, (i.e) Automail shoots on 1st January 2024 then the record displayed should be in between, from 16th December 2023 and 31st 2023. And if the automail shoots on 16th January 2024, then the data to be displayed should be in between 1st January 2024 to 15th January 2024.

Any suggestions for the same ?

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

It has been asked hundreds of times (both questions how to subtract days from date, how to get current date):

subtract days from date site:sap.com

raymond_giuseppi
Active Contributor
0 Kudos

Look also for (FAQ) Dynamic date selection in Variants for no-Abap solution