Application Development and Automation 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: 
Read only

Reg: Function Modules

Former Member
0 Likes
927

Hi All,

Can any one send me the Function module name which give the day based on the date. i.e. if i gave today date as 18/04/2007 it has to display to day name i.e: Wednesday.

Thanks & regadrs,

Sreedhar.t

8 REPLIES 8
Read only

Former Member
0 Likes
888

Hi,

Use FM DATE_TO_DAY.

Regards,

Himanshu

Read only

Former Member
0 Likes
888

Hi..,

use this function module..

RH_GET_DATE_DAYNAME

plz do remember to close your thread, when ur problem is solvedd !! reward all helpful answers !!

regards,

sai ramesh

Read only

Former Member
0 Likes
888

Try RH_GET_DATE_DAYNAME

You could also use dateday* on SE37 to see what your system brings back.

Read only

Former Member
0 Likes
888

DATE_COMPUTE_DAY gives you the result

Regards,

Ram

Read only

Former Member
0 Likes
888

Hi

DATE_TO_DAY

regards,

Anji

Read only

Former Member
0 Likes
888

hi,

check out the following FM

DATE_COMPUTE_DAY

RH_GET_DATE_DAYNAME

regards,

Navneeth.K

Read only

former_member673464
Active Contributor
0 Likes
888

hi..

DAY_IN_WEEK

DATE_COMPUTE_DAY

You can use function module WEEKDAY_GET to retrieve the language specific name of the week and an abbreviation of the name.

check this code

DATA : day LIKE SCAL-INDICATOR.

CALL FUNCTION 'DATE_COMPUTE_DAY'

EXPORTING

date = sy-datum

IMPORTING

DAY = day

.

WRITE : day.

or

DATE_TO_DAY

PARAMETERS date LIKE sy-datum DEFAULT sy-datum.

DATA day LIKE dtresr-weekday.

CALL FUNCTION 'DATE_TO_DAY'

EXPORTING

date = date

IMPORTING

weekday = day.

WRITE: / date , day.

regards,

veeresh

Read only

Former Member
0 Likes
888

HI sreedhar,

Use FM <b>RH_GET_DATE_DAYNAME</b>.

Reward points if helpful,

Regards,

Tejas