How To Fix HRPAYBR99165 - SWG code is mandatory for collection 130,155,317,337,608


SAP Error Message - Details

  • Message type: E = Error

  • Message class: HRPAYBR99 - Payroll General Messages

  • Message number: 165

  • Message text: SWG code is mandatory for collection 130,155,317,337,608

  • 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 HRPAYBR99165 - SWG code is mandatory for collection 130,155,317,337,608 ?

    The SAP error message HRPAYBR99165 indicates that the SWG (Social Security Contribution) code is mandatory for specific collections in the Brazilian payroll system. This error typically arises during the payroll processing when the system expects a SWG code for certain collections but does not find it.

    Cause:

    The error is caused by the absence of the required SWG code for the specified collections (130, 155, 317, 337, 608) in the payroll configuration or employee master data. These collections are related to social security contributions, and the SWG code is necessary for the correct calculation and reporting of these contributions.

    Solution:

    To resolve this error, you can follow these steps:

    1. Check Employee Master Data:

      • Go to the employee's master data in the SAP system and verify if the SWG code is correctly maintained.
      • Ensure that the SWG code is assigned to the relevant infotype (usually Infotype 0014 - Recurring Payments/Deductions).
    2. Review Payroll Configuration:

      • Check the payroll configuration for the specific collections mentioned in the error message.
      • Ensure that the SWG codes are correctly defined in the payroll schema and that they are linked to the appropriate wage types.
    3. Maintain SWG Codes:

      • If the SWG code is missing, you may need to maintain it in the system. This can typically be done through transaction codes like PA30 (Maintain HR Master Data) or by using the relevant configuration transaction in the SPRO (SAP Project Reference Object).
    4. Run Payroll Simulation:

      • After making the necessary changes, run a payroll simulation to ensure that the error is resolved and that the SWG codes are now being processed correctly.
    5. Consult Documentation:

      • Refer to SAP documentation or notes related to Brazilian payroll for any specific guidelines or updates regarding SWG codes and collections.
    6. Contact SAP Support:

      • If the issue persists after checking the above points, consider reaching out to SAP support for further assistance.

    Related Information:

    • Infotypes: Familiarize yourself with relevant infotypes related to payroll and social security contributions in Brazil.
    • Wage Types: Understand the wage types associated with the collections mentioned in the error message.
    • Legal Requirements: Stay updated on Brazilian labor laws and regulations regarding social security contributions, as these can affect payroll processing.

    By following these steps, you should be able to resolve the HRPAYBR99165 error and ensure that the SWG codes are correctly processed in your payroll system.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant