on 10-09-2008 9:14 AM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i agree with judith try LSMW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try a BDC/ LSMW that should be easier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.