Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HR - Mass uploading

Former Member
0 Kudos

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.

2 REPLIES 2

suresh_datti
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Suresh

Your answer is very helpful, I have rewarded points. Many thanks.