How To Fix 5C158 - Choice of date of entry invalid: Only E, K or O allowed.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 5C - HR: Messages for Switzerland

  • Message number: 158

  • Message text: Choice of date of entry invalid: Only E, K or O allowed.

  • 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 5C158 - Choice of date of entry invalid: Only E, K or O allowed. ?

    The SAP error message 5C158 indicates that there is an issue with the choice of the date of entry in a transaction. Specifically, it states that only the values E (Entry Date), K (Posting Date), or O (Document Date) are allowed for the date of entry field. This error typically occurs in the context of financial transactions, such as posting documents or entering data in the system.

    Cause:

    The error is triggered when a user attempts to enter a date of entry that is not one of the allowed values (E, K, or O). This could happen due to:

    • Incorrect input in the date of entry field.
    • A configuration issue where the allowed values have been modified or are not set correctly.
    • A misunderstanding of the required input values by the user.

    Solution:

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

    1. Check Input Values: Ensure that you are entering one of the allowed values:

      • E for Entry Date
      • K for Posting Date
      • O for Document Date
    2. Review Transaction Context: Make sure you are in the correct transaction and that the date of entry field is relevant for the action you are trying to perform.

    3. Consult Documentation: If you are unsure about the context or the required values, refer to the SAP documentation or help resources related to the specific transaction you are using.

    4. Configuration Check: If you have access to configuration settings, check if the allowed values for the date of entry have been modified. This may require assistance from a system administrator or SAP consultant.

    5. User Training: If this error is occurring frequently among users, consider providing additional training or resources to help them understand the correct values to use.

    Related Information:

    • Transaction Codes: This error can occur in various transaction codes related to financial postings, such as FB01 (Post Document), F-02 (General Posting), etc.
    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message.
    • User Roles: Ensure that users have the appropriate roles and permissions to perform the transactions they are attempting.

    If the problem persists after following these steps, it may be beneficial to consult with your SAP support team or a technical consultant for further investigation.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author