Skip to Content
0
Former Member
May 31, 2008 at 04:14 PM

Which function module will find the following date (The last 4th work date)

251 Views

I use the function module BKK_ADD_WORKINGDAY to find the last 4th work date:

when I enter the following import value:

I_DATE = 05/31/2008

I_DAY = 3-; I_CALENDAR1 = US

I got the 05/28/2008; not 05/27/2008 and I need 5/27/2008.

The date is not right for Aug. 2008 and Nov. too.

It all work for other months. but not for May, Aug, and Nov. 2008

1/28/2008

2/26/2008

3/26/2008

4/25/2008

5/27/2008

6/25/2008

7/28/2008

8/26/2008

9/25/2008

10/28/2008

11/21/2008

12/26/2008

CALL FUNCTION 'BKK_ADD_WORKINGDAY'

EXPORTING

i_date = g_last_day

i_days = -3

i_calendar1 = 'US'

IMPORTING

e_date = g_last_4th_day

EXCEPTIONS

day_in_no_date = 1

OTHERS = 2.

Please help!

Thanks.

Helen