Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WPI020 - Personnel numbers must be transferred to table PERNR_TAB


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WPI - Messages for Travel Management Web-Pl

  • Message number: 020

  • Message text: Personnel numbers must be transferred to table PERNR_TAB

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WPI020 - Personnel numbers must be transferred to table PERNR_TAB ?

    Certainly! Here's detailed information about the SAP error message WPI020: "Personnel numbers must be transferred to table PERNR_TAB":


    Error Message

    WPI020: Personnel numbers must be transferred to table PERNR_TAB


    Cause

    This error occurs in SAP HR (Human Resources) or Payroll processing when the system expects personnel numbers (PERNR) to be passed or transferred into an internal table named PERNR_TAB, but this table is either empty or not properly filled.

    • The program or function module processing the personnel data requires a list of personnel numbers to work on.
    • If the table PERNR_TAB is empty or missing, the system cannot proceed because it does not know which personnel records to process.
    • This often happens in custom reports, payroll schemas, or user exits where personnel numbers must be explicitly passed to the processing logic.
    • It can also occur if the selection screen or data retrieval logic fails to populate the personnel number table.

    When Does It Occur?

    • During payroll runs or personnel data processing.
    • In custom ABAP programs or enhancements where personnel numbers are expected as input.
    • In standard SAP HR reports or function modules that require personnel numbers but receive none.

    Solution

    1. Ensure Personnel Numbers Are Passed Correctly:

      • Check the program or function module call to verify that the personnel numbers are correctly selected and passed into the internal table PERNR_TAB.
      • If you are using a selection screen, make sure the selection criteria are correct and return personnel numbers.
    2. Populate PERNR_TAB Properly:

      • Before the processing logic that triggers this error, ensure that the internal table PERNR_TAB is filled with valid personnel numbers.
      • Example:
        SELECT pernr FROM pa0001 INTO TABLE pernr_tab WHERE <selection criteria>.
        IF sy-subrc <> 0.
          MESSAGE 'No personnel numbers found' TYPE 'E'.
        ENDIF.
    3. Check Custom Code or Enhancements:

      • If this error appears in custom code, debug to see why PERNR_TAB is empty.
      • Make sure the logic to fill PERNR_TAB is executed before the error occurs.
    4. Review Standard SAP Notes:

      • Sometimes SAP releases notes or patches related to HR processing errors. Check SAP Support Portal for any notes related to WPI020.
    5. Testing:

      • Run the program or payroll with a known set of personnel numbers to verify that the error does not occur.
      • Use debugging to trace the population of PERNR_TAB.

    Related Information

    • Table PERNR_TAB: This is typically an internal table used in HR processing to hold personnel numbers.
    • Personnel Number (PERNR): Unique identifier for an employee in SAP HR.
    • Payroll Processing: Payroll programs require personnel numbers to calculate wages, deductions, etc.
    • Function Modules: Some HR function modules require PERNR_TAB as input.
    • Debugging Tips: Set breakpoints before the error message to check the contents of PERNR_TAB.

    Summary

    Aspect Description
    Cause Personnel numbers not transferred or missing in internal table PERNR_TAB.
    Effect Processing cannot continue because no personnel records are identified.
    Solution Ensure PERNR_TAB is properly filled with personnel numbers before processing.
    Check Selection criteria, custom code, and data retrieval logic for personnel numbers.

    If you provide more context (e.g., transaction, program, or scenario), I can help with more specific guidance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker