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: 

Get Nexr working day for the given calendar id

Former Member
0 Kudos

Hello,

My requirenment is I have a date.If that date falls on friday then I have to get the next working day date i.e.Monday for the given Calender iD

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Anugrah Prakash,

Please check this link

Best regards,

raam

3 REPLIES 3

Former Member
0 Kudos

Hi Anugrah Prakash,

Please check this link

Best regards,

raam

kesavadas_thekkillath
Active Contributor
0 Kudos


DATA:wk_dat TYPE scal-indicator.

PARAMETERS:pa_dat TYPE sy-datum.

CALL FUNCTION 'DATE_COMPUTE_DAY'
  EXPORTING
    date = pa_dat
  IMPORTING
    day  = wk_dat.


CHECK wk_dat = 5.
pa_dat = pa_dat + 3.
WRITE pa_dat.

here if u want to get the next working day

Use FM DATE_CHECK_WORKINGDAY after the check statement.

add the date until u find a working day.

Former Member
0 Kudos

Hi Anuragh,

Try the Function Module:

END_TIME_DETERMINE

Regards,

Chandra Sekhar