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

FM

Former Member
0 Likes
776

Hello

Is there any FM which could tell that the given day is week day or no? I have a program which would run the job only during week days.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

former_member189631
Active Contributor
0 Likes
726

Hi Davinder,

Use this Function Module:

/OSP/GETDATE_WEEKDAY

In this You can set anyday as weekday by setting the import parameter IV_DAY_OF_WEEK

Example:

If

IV_DAY_OF_WEEK = 1 --> monday

Regards,

Ram

7 REPLIES 7
Read only

former_member189631
Active Contributor
0 Likes
727

Hi Davinder,

Use this Function Module:

/OSP/GETDATE_WEEKDAY

In this You can set anyday as weekday by setting the import parameter IV_DAY_OF_WEEK

Example:

If

IV_DAY_OF_WEEK = 1 --> monday

Regards,

Ram

Read only

former_member189631
Active Contributor
0 Likes
726

Check this also,

DATE_TO_DAY

/OSP/GETDATE_NEXT Get date of next occuring day of a month

/OSP/GETDATE_WEEKDAY Get date of next occuring week day

/OSP/GETDATE_YEAR Get date for year

Read only

Former Member
0 Likes
726

Hi,

Check Below function modules

DATE_TO_DAY

DAY_IN_WEEK

DAY_ATTRIBUTES_GET

DAY_NAMES_GET

DATE_COMPUTE_DAY

DATE_GET_WEEK

Read only

sachinjakkaria
Active Participant
0 Likes
726

Hi,

u can use dis Fm "GET_WEEK_INFO_BASED_ON_DATE" with some additional code

as u can get

importing parameter is date

and exporting parameter is

WEEK

MONDAY

SUNDAY

hope it helps

/sachinkumar.

Read only

sachinjakkaria
Active Participant
0 Likes
726

Hi,

u can use dis Fm "GET_WEEK_INFO_BASED_ON_DATE" with some additional code

as

importing parameter is date

and exporting parameter is

WEEK

MONDAY

SUNDAY

hope it helps

/sachinkumar.

Read only

sachinjakkaria
Active Participant
0 Likes
726

Hi,

u can use dis Fm "GET_WEEK_INFO_BASED_ON_DATE" with some additional code

as

importing parameter is date

and exporting parameter is

WEEK

MONDAY

SUNDAY

hope it helps

/sachinkumar.

Read only

Former Member
0 Likes
726

hai Davinder ,

Use This Function Module.

Function module DATE_TO_DAY

Uppercase/Lowercase

Runtime: 100.580 Microseconds

Import parameters Value

DATE 01.01.2007

Export parameters Value

WEEKDAY Monday

Reward Points If Usefull.

Thanks & Regards.

Shiva.