Register Login

HR ABAP PA40 create new PERNR

Updated May 18, 2018

Hi,
 
If you record PA40 and use LSMW it will work or Use FM: 'HR_Infotype_operations' for all operations like create, delete.....
 
Number range is filling auto right then why enter Personnel number message come, Please check your number range is external check box click, if so we have to provide Number.
 
Hope it clarifies.


Comments

  • 10 May 2012 7:57 am Shalesh Singh Visen
    We are on BASIS level 702 and HR release 604 level 41.

    Got a requirement to create a program that will do a PA40 new employee using SAP default number range for 0000/0001/0002/0003/0302 for a selected action type and reason.

    I have the action configured, and recorded it using SHDB. Saved recording to a program and tested it. Didn’t go past first screen with message “Enter a personnel number.”

    When I recorded the PA40, I did get the pop-up box for New Employee, but I didn’t see anything in the DBC code that calls it.

    I seem to recall back in 4.6b, that this worked. We were creating non-paid employees from another entity, to have the EE history.

    Google showed similar questions in the past with no real solution.

    I’m thinking about getting/copying/using the NEW_PERNR code from MP50AF00.

    Any suggestions or hints?
  • 11 May 2012 3:41 am Guest
    Cannot use LSMW since this will be in a special program for special use. HR_INFOTYPE_OPERATIONS requires a PERNR and new hires do not have one.



    After looking in OSS, I found SAP’s solution – HR_PAD_HIRE_EMPLOYEE. You pass it the values for p0001 and p0002 and it creates the 0000/0302/0003 and addes the relationship to IT1001! Finally a good, almost simple solution from SAP.

×