How To Fix P2849 - Internal error: Day & is a public hol., but no ID has been specified


SAP Error Message - Details

  • Message type: E = Error

  • Message class: P2 - Messages for HR Time Management

  • Message number: 849

  • Message text: Internal error: Day & is a public hol., but no ID has been specified

  • Show details Hide details
  • What causes this issue?

    The function module CHECK_FOR_HOLIDAY denotes a day as
    a public holiday. There is no public holiday
    indicator for this public hoiday, however.

    System Response

    How to fix this error?


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message P2849 - Internal error: Day & is a public hol., but no ID has been specified ?

    The SAP error message P2849, which states "Internal error: Day & is a public holiday, but no ID has been specified," typically occurs in the context of date handling within the SAP system, particularly when dealing with public holidays in scheduling or planning functions.

    Cause:

    This error usually arises when the system is trying to process a date that is recognized as a public holiday, but it cannot find the corresponding holiday ID in the configuration. This can happen due to:

    1. Missing Configuration: The public holiday calendar may not be properly configured in the system.
    2. Incorrect Date Handling: The system may be trying to reference a public holiday without having the necessary identifiers set up.
    3. Custom Code Issues: If there are custom developments or enhancements, they might not be handling public holidays correctly.

    Solution:

    To resolve this error, you can take the following steps:

    1. Check Public Holiday Configuration:

      • Go to the transaction code SCAL (Public Holiday Calendar) in SAP.
      • Ensure that the public holiday calendar is correctly defined and that all relevant public holidays are included.
      • Verify that the holiday IDs are correctly assigned to the relevant dates.
    2. Review Date Settings:

      • Check the date settings in the relevant configuration areas (like work schedules, factory calendars, etc.) to ensure that they are correctly set up to recognize public holidays.
    3. Debugging:

      • If you have access to debugging tools, you can trace the execution of the program that triggers this error to identify where the missing ID is causing the issue.
    4. Consult Documentation:

      • Review SAP documentation or notes related to public holiday handling to ensure that you are following best practices.
    5. SAP Notes:

      • Check the SAP Support Portal for any relevant SAP Notes that might address this specific error. Sometimes, there are patches or updates that can resolve known issues.
    6. Contact SAP Support:

      • If the issue persists after checking the configuration and settings, consider reaching out to SAP Support for further assistance.

    Related Information:

    • Transaction Codes: Familiarize yourself with transaction codes like SCAL for public holiday calendars and SPRO for configuration settings.
    • Documentation: Review SAP Help documentation for details on public holiday handling and configuration.
    • User Forums: Engage with SAP community forums or user groups where similar issues may have been discussed.

    By following these steps, you should be able to identify and resolve the cause of the P2849 error in your SAP 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