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: 

Function module that will return the description of the day of the week

Former Member
0 Kudos

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,

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

Moderator message - Please see before posting - post locked Date question not allowed Rob