How To Fix AD094 - An underscore is not permitted in position 2 or 3


SAP Error Message - Details

  • Message type: E = Error

  • Message class: AD - Data Dictionary application messages

  • Message number: 094

  • Message text: An underscore is not permitted in position 2 or 3

  • Show details Hide details
  • What causes this issue?

    SAP naming conventions reserve the use of underscores in the second and
    third positions for special objects. The object you are editing is not
    one of these types of object.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Correct your entry. The second and third positions of the object name
    may not contain underscores.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message AD094 - An underscore is not permitted in position 2 or 3 ?

    The SAP error message AD094 indicates that there is an issue with the naming convention of an object, typically a variable, field, or identifier, in your ABAP code or configuration. Specifically, the error states that an underscore (_) is not permitted in the second or third position of the name.

    Cause:

    The error is caused by the naming rules in ABAP, which restrict the use of underscores in certain positions within identifiers. According to the naming conventions:

    • The first character of an identifier must be a letter (A-Z, a-z).
    • The second and third characters cannot be underscores.
    • Subsequent characters can include letters, numbers, and underscores.

    For example, the following identifiers would trigger this error:

    • _example (underscore in position 1)
    • a_bexample (underscore in position 2)
    • ab_example (underscore in position 3)

    Solution:

    To resolve this error, you need to modify the identifier that is causing the issue. Here are the steps to fix it:

    1. Identify the Object: Check the error message details to find out which identifier is causing the issue. This could be a variable, field name, or any other identifier in your code.

    2. Rename the Identifier: Change the name of the identifier to comply with the naming conventions. Ensure that:

      • The first character is a letter.
      • The second and third characters are not underscores.
      • The rest of the name can include letters, numbers, and underscores.

      For example, if the identifier is a_bexample, you could rename it to ab_example or a1_example.

    3. Test the Changes: After renaming the identifier, re-run your program or transaction to ensure that the error is resolved.

    Related Information:

    • ABAP Naming Conventions: Familiarize yourself with the naming conventions in ABAP to avoid similar issues in the future. SAP documentation provides guidelines on valid identifier names.
    • Code Review: Conduct a code review to identify any other potential naming issues that may not have triggered errors yet but could lead to problems later.
    • SAP Notes: Check SAP Notes for any updates or specific guidelines related to naming conventions in the version of SAP you are using.

    By following these steps, you should be able to resolve the AD094 error and ensure that your identifiers comply with SAP's naming conventions.

    • 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'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