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: 

how to find the current day

Former Member
0 Kudos

Hi all ,

I have a req . I have to check the current day for this req .

If the current day is saturday/sunday then in my req i should count those

since they are non-working days .

Please let me know how to find the current day

or

is there any fm

Regards

Raj

1 ACCEPTED SOLUTION

Former Member

Hi Raj,

You can use FM: ISM_DAY_NAME_OF_DATE_GET to get the day. use date format 10/14/2008.

happy coding.

/Kiran

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use this FM DATE_TO_DAY. Give todays date and see the output.

MM/DD/YYYY format E.g 10/13/2008

Edited by: senthil kumar on Oct 14, 2008 12:17 AM

Former Member

Hi Raj,

You can use FM: ISM_DAY_NAME_OF_DATE_GET to get the day. use date format 10/14/2008.

happy coding.

/Kiran

former_member187255
Active Contributor
0 Kudos

Raj,

Did u check the FM DATE_COMPUTE_DAY

0 Kudos

you can better check the working days against you´re company or country calender so that christmass , easter etc is also taken into account.

can´t look anything up right now since I´m now in some hotel in berlin for some conference about SAP

kind regards

arthur

Former Member
0 Kudos

Hi Raj,

Try this code.

DATA: LV_DAY LIKE DTRESR-WEEKDAY.

CALL FUNCTION 'DATE_TO_DAY'

EXPORTING

DATE = sy-datum

IMPORTING

weekday = lv_day.

WRITE : lv_day.

Thanks,

surendra Babu Vemula