10-17-2006 9:47 PM
Hi ,
I have one question about mass uploading employee data to SAP HR. There are a lot of discussions for the mass uploading in this forum. One of the solutions is about using BDC with the transaction code PA40. My question is how to create employee ID in the BDC. I only know Employee ID can only be created while you perform the PA40 action from the front-end manually. Thanks for the help.
10-17-2006 11:47 PM
One option is to get the next available pern in the number range & pass it to the BDC.. u can use the folloiwng piece to get the next pernr..
data:f_rec type c,"function return code
destin like pernr-pernr,
* Get the next personnel number
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = '01'
object = 'RP_PREL'
importing
number = destin
returncode = f_rec
exceptions
interval_not_found = 1
number_range_not_intern = 3
object_not_found = 2.
~Suresh
10-18-2006 3:17 PM
Hi Suresh
Your answer is very helpful, I have rewarded points. Many thanks.