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 in SRM for adding number to date excluding weekends

Former Member
0 Likes
711

Hi Experts,

Please help to get the standard FM in SRM for adding number to date and getting next date excluding weekends.

Thanks in Advance.

Thanks,

Sahil

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
607

Hi sahil0284,

check function group SCAL.

Regards

Clemens

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
608

Hi sahil0284,

check function group SCAL.

Regards

Clemens

Read only

Former Member
0 Likes
607

Hi Clemen,

Thanks for reply, but still my queries are not resolved. I didn't found the FM suits my requirement.

Thanks,

Sahil

Read only

0 Likes
607

This kind of custom FM can be created easily.

But if you want to use standard FM then "DATE_CONVERT_TO_FACTORYDATE" FM is good but you need a factory calendar id which has all working days and weekend days specified (also public holidays if required). Then call this FM in loop for a count of days and it will give working day after "entered date + number of days"

So if calendar has only weekdays and weekends specified, it will add number of days in specified date excluding weekends.

Thanks,

Murtuza