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

Function module for saturdays and sundays

Former Member
0 Likes
2,635

Hi ,

Could you please provide me with a function module which determines whether a given date is a saturday or a sunday.

The user input would be the date.

Points will be rewarded.

Thanks and regards,

Frank

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,219

FM: DAY_IN_WEEK

1: Monday

2: ...

3

4

5: Friday

6: Saterday

7 Sunday

Regards

Edited by: Jürgen Degraeve on Apr 16, 2008 9:37 AM

FM: DAY_IN_WEEK

1: Monday

2: ...

3

4

5: Friday

6: Saterday

7 Sunday

Regards

Edited by: Jürgen Degraeve on Apr 16, 2008 9:37 AM

4 REPLIES 4
Read only

Former Member
0 Likes
1,219

Hi

Try the fm DAY_ATTRIBUTES_GET

Max

Read only

Former Member
0 Likes
1,220

FM: DAY_IN_WEEK

1: Monday

2: ...

3

4

5: Friday

6: Saterday

7 Sunday

Regards

Edited by: Jürgen Degraeve on Apr 16, 2008 9:37 AM

Read only

Former Member
0 Likes
1,219

Hi ,

Check these :

All function modules are contained in the function group SCAL.

DATE_COMPUTE_DAY

This function module returns the day of the week for the date passed.

DATE_GET_WEEK

This function module returns the week for the date passed.

WEEK_GET_FIRST_DAY

This function module returns the first day of the week passed. (This is always a Monday, regardless of whether it is a working day or a holiday.)

EASTER_GET_DATE

This function module returns the date of Easter Sunday for the year passed.

FACTORYDATE_CONVERT_TO_DATE

This function module returns the calendar date for the factory date and the factory calendar passed.

DATE_CONVERT_TO_FACTORYDATE

This function module returns the factory date for the date and factory calendar passed. You can specify with a parameter whether the next or the previous working day is returned if the day is not a working day.

HOLIDAY_CHECK_AND_GET_INFO

With this function module, you test whether a particular date in the holiday calendar passed is a holiday. If so, the definition of the holiday is returned.

reward if helpful.

Regards

Sourabh

Read only

Former Member
0 Likes
1,219

Hi,

Use FM DATE_COMPUTE_DAY.

Thanks,

Sriram Ponna.