07-28-2010 1:29 PM
Hello gurus,
I need to know if there is a BI SAP function module that will calculate the description of the day of the week.
For example, I happened to function day today and I return 'Wednesday'.
greetings,
07-28-2010 1:31 PM
Hi,
Check the code below.
DATA: day type SCAL-DATE.
DATA: day_of_week type SCAL-INDICATOR.
MOVE sy-datum to day.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
DATE = sy-datum
IMPORTING
DAY = day_of_week
EXCEPTIONS
OTHERS = 8.
Or Check this FM
*ISH_GET_WEEKDAY_NAME*
Edited by: Raj on Jul 28, 2010 6:04 PM
07-28-2010 2:11 PM
Moderator message - Please see before posting - post locked Date question not allowed Rob