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

What's function to know working data in specified date range?

Former Member
0 Likes
785

Dear all:

If i want to input data range and get which day is working day, What's function can do it?

Thanks a lot!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

Hi Nicole,

try out this table.

T5B72

and this function module

HRWPC_PCR_CHECK_WORKINGDAYS.

Hope it helps!

Much Regards,

Amuktha.

Edited by: Amuktha Naraparaju on Feb 16, 2009 9:32 AM

Edited by: Amuktha Naraparaju on Feb 16, 2009 9:35 AM

7 REPLIES 7
Read only

Former Member
0 Likes
751

Hi Nic,

Please Find the Code Below

PARAMETER :

fdate LIKE kona-datab,

ldate LIKE kona-datab.

DATA: w_days LIKE STANDARD TABLE OF rke_dat .

DATA : cal LIKE t001w-fabkl,

workday TYPE i.

SELECT SINGLE fabkl INTO cal FROM t001w CLIENT

SPECIFIED WHERE mandt = sy-mandt.

CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'

EXPORTING

i_datab = fdate

i_datbi = ldate

i_factid = cal

TABLES

eth_dats = w_days

EXCEPTIONS

date_conversion_error = 1

OTHERS = 2.

IF sy-subrc NE 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

DESCRIBE TABLE w_days LINES workday.

WRITE : / 'No of Working days :',

Thanks

Rajani

Read only

Former Member
0 Likes
752

Hi Nicole,

try out this table.

T5B72

and this function module

HRWPC_PCR_CHECK_WORKINGDAYS.

Hope it helps!

Much Regards,

Amuktha.

Edited by: Amuktha Naraparaju on Feb 16, 2009 9:32 AM

Edited by: Amuktha Naraparaju on Feb 16, 2009 9:35 AM

Read only

Former Member
0 Likes
751

HI Nicole

Use this FM


RKE_SELECT_FACTDAYS_FOR_PERIOD

Pushpraj

Read only

0 Likes
751

Thanks a lot!!

Read only

0 Likes
751

Thanks a lot!!

Read only

Former Member
0 Likes
751

DATE_CHECK_WORKINGDAY u2013 Determines if a single date is a working day

DATE_CHECK_WORKINGDAY_MULIPLE u2013 Checks date across multiple factory calendars

WDKAL_DATE_ADD_FKDAYS u2013 Number of working days in a date range

Read only

former_member222860
Active Contributor
0 Likes
751

Hi,

check this

DATE_CHECK_WORKINGDAY

Edited by: Mahesh Reddy on Feb 16, 2009 9:34 AM