Hi,
check blog and its comments to find some Date-Calcualtion-FMs Elegance in ABAP: date calculations.
just try FM DATE_TO_DAY as
Hi,
check blog and its comments to find some Date-Calcualtion-FMs Elegance in ABAP: date calculations.
just try FM DATE_TO_DAY as Christian Drummmentioned.
If returned day of 1.1.2014 is bigger than 2, so there is no Tuesday in first week of the year...
you can now write the returned day into your variable...
Or you just pass the result without checking for tuesday, as you will ever use the result, no matter if tuesday is in the first week or not ....
regards
Stefan Seeburger