03-18-2019 1:56 PM
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.
03-18-2019 3:17 PM
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.
03-18-2019 3:32 PM
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...
03-19-2019 12:26 AM
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.