cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module for addition in dates - FUll rewards will be given

Former Member
0 Kudos

Hi,

My one requirement is to add 1 year to a given date.

And second one requirement is to add 90 days to a given date.

Can you plese suggest one function module in HR to do the same.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

anncottens
Explorer
0 Kudos

HR_99S_DATE_PLUS_TIME_UNIT

timeunit d = days / m = months / y = years

f.i.

CALL FUNCTION 'HR_99S_DATE_PLUS_TIME_UNIT'

EXPORTING

i_idate = '19102007'

i_time = 6

i_timeunit = 'D'

IMPORTING

O_IDATE = odate

==> odate = 25.10.2007

IF : i_timeunit = 'M' ==> odate = 19.04.2008

IF : i_timeunit = 'Y' ==> odate = 19.10.2013

Former Member
0 Kudos

Hai..

Fill the required dates with date types in IT 41 & Write a dynamic action

Former Member
0 Kudos

i Require the function module for that only. I will be provided with the Hire date and will require to add 90 days to hire date and update the It0041.

So can u please suggest some function module.

Former Member
0 Kudos

hai..

HR_INFOTYPE_OPERATION

might be helpfull

Former Member
0 Kudos

I think requirement is not communicated properly. I want the Function module through which i can add some number of days or year to a particular year.

Former Member
0 Kudos

Hai..

where exactly u want to perform..?/ in PA, Time, Payroll..??

Former Member
0 Kudos

I require it in PA.

Former Member
0 Kudos

I require it to configure in PA, in dynamic actions subroutines.