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: 

2 dates are there i want the number of weeks and it should be working days

Former Member
0 Kudos

Hi ,

i Want the name of the function module for the function module 2 dates and factory calender should be the exporting parameters and i want number of weeks for the difference of 2 dates and it should contain only working days as per the factory calender can anybody help me by giving the name of the function module

thanks

srinivas

5 REPLIES 5

Simha_
Employee
Employee
0 Kudos

Hi,

Try the function module <b>HR_IE_NUM_PRSI_WEEKS</b> . This hould solve ur problem.

Cheers

Simha.

Former Member
0 Kudos

Hi Kota Srinivas,

Use this function FIMA_DAYS_BETWEEN_TWO_DATES_2

Regards,

Swarna

0 Kudos

hi,

1) workdays: fm RKE_SELECT_FACTDAYS_FOR_PERIOD

2) week-no.: fm GET_WEEK_INFO_BASED_ON_DATE

A.

Message was edited by: Andreas Mann

Former Member
0 Kudos

Hi Srinivas,

Check this function module :- "DAY_ATTRIBUTES_GET". This will return an internal table for all the days in the given range for the given factory and holiday calander. From this you can calcualte the required data.

Thanks and Regards,

Bharat Kumar Reddy.V

Former Member
0 Kudos
parameters: p_start type sy-datum,
p_end type sy-datum.

data: idays type table of rke_dat with header line.
data: workingdays type i.

call function 'RKE_SELECT_FACTDAYS_FOR_PERIOD'
exporting
i_datab = p_start
i_datbi = p_end
i_factid = 'P8' " Fact Calender ID
tables
eth_dats = idays
exceptions
date_conversion_error = 1
others = 2.


describe table idays lines workingdays.
DATA : V_WEEKS TYPE I.

v_weeks = CEIL( WORKINGDAYS / 7 ).
write:/ <b>V_WEEKS</b>.

regards

srikanth