08-31-2006 4:38 AM
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
08-31-2006 4:42 AM
Hi,
Try the function module <b>HR_IE_NUM_PRSI_WEEKS</b> . This hould solve ur problem.
Cheers
Simha.
08-31-2006 5:01 AM
Hi Kota Srinivas,
Use this function FIMA_DAYS_BETWEEN_TWO_DATES_2
Regards,
Swarna
08-31-2006 7:47 AM
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
08-31-2006 5:04 AM
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
08-31-2006 7:56 AM
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