cancel
Showing results for 
Search instead for 
Did you mean: 

Mass update of Infotype 0027

Former Member
0 Kudos

Hi, We need to do mass update of Infotype 0027 with Cost centers and Internal Orders alongwith percentages for thousands of employees and that too on a monthly basis. Hence, the experts of HCM is hereby requested to share their experience and expertise how to go about customizing this process so that Users shall able to do this mass update on a monthly basis without any hassle. Trust this helps much! Cheers!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ashok,

Write (or make it written) a program using the function modules in the respective order :

HR_EMPLOYEE_ENQUEUE

HR_INFOTYPE_OPERATION

HR_EMPLOYEE_DEQUEUE

The following is a sample code:


infotypes : 0027.
tables :pernr.

data: return type bapiret1. 
start-of-selection.
get pernr.
rp-provide-from-last p0027 space sy-datum sy-datum.

*locks the personnel
call function 'HR_EMPLOYEE_ENQUEUE'
exporting
number = p0027-pernr
importing
return = return.

call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0027'
number = p0027-pernr
subtype = p0027-subty
objectid = p0027-objps
recordnumber = p0027-seqnr
validityend = p0027-endda
validitybegin = p0027-begda
record = p0027
operation = 'MOD'
*tclas = ''
*nocommit = ' '
importing
return = return.

*unlocks the employee
call function 'HR_EMPLOYEE_DEQUEUE'
exporting
number = p0027-pernr
importing
return = return.
end-of-selection.

Then assign this program to a job (SM37) & make it run each night.

Regards,

Dilek

Edited by: Dilek Ersoz on Oct 9, 2008 10:21 AM

Edited by: Dilek Ersoz on Oct 9, 2008 10:23 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks to all.

sikindar_a
Active Contributor
0 Kudos

i agree with judith try LSMW

Former Member
0 Kudos

Try a BDC/ LSMW that should be easier