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: 

require dates as output as i am providing the days as input

0 Kudos

Hi,

my requirement is to get the dates by giving days, ( ex:- if i provide Monday, Wednesday, Friday) on Monday it should fetch the dates of the following days on that week, again on next week if i provide ( ex:- Tuesday, Saturday) it should fetch the dates of that week, every week input as days will be taken and the dates should be return as output, it will be a forward cycle.

please advice me how to proceed on this requirement.

Thank you.

3 REPLIES 3

Sandra_Rossi
Active Contributor

What is the exact input ? ("Monday" is not sufficient, you need a date too, but what will be this date compared to "Monday", before, after, etc.?) What did you try ? Anyway, you have thousands of questions in the web, probably one of them will tell you how to get the week day out of a date.

raymond_giuseppi
Active Contributor

Is your actual requirement something like what is the date of "next monday", what did you already try, what were you unable to solve: finding current day of the week, adding some days to a date, almost each of the pootential issues is a FAQ since Y2K discussions...

DoanManhQuynh
Active Contributor
0 Kudos

i think your requirement is little wierd, but achivable. using SY-DATUM as input of fm: DATE_COMPUTE_DAY, you will get the day of current date, compare it with the inputted date you will find out the difference between them then do the math to get the day you want.