Do you have any question about this error?
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
The function module CHECK_FOR_HOLIDAY denotes a day as
a public holiday. There is no public holiday
indicator for this public hoiday, however.
Error message extract from SAP system. Copyright SAP SE.
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:
- Missing Configuration: The public holiday calendar may not be properly configured in the system.
- Incorrect Date Handling: The system may be trying to reference a public holiday without having the necessary identifiers set up.
- 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:
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.
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.
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.
Consult Documentation:
- Review SAP documentation or notes related to public holiday handling to ensure that you are following best practices.
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.
Contact SAP Support:
- If the issue persists after checking the configuration and settings, consider reaching out to SAP Support for further assistance.
Related Information:
SCAL
for public holiday calendars and SPRO
for configuration settings.By following these steps, you should be able to identify and resolve the cause of the P2849 error in your SAP system.
Get instant SAP help. Start your 7-day free trial now.
P2848
Absence encompasses planned working time
What causes this issue? The absence you entered is longer than the planned working time specified in the daily work schedule. An absence can only be ...
P2847
Time/interval not within daily work schedule
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
P2850
Internal error while calling up RP-UZSCHNITT
What causes this issue? One or more of the 4 transferred time fields is not numerical (e.g. SPACE).System Response How to fix this error? Error messa...
P2851
No entry in table & for key & &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.