How To Fix DT117 - Name '&': Underscore not allowed at end


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DT - Table activation (incl. indexes)

  • Message number: 117

  • Message text: Name '&': Underscore not allowed at end

  • Show details Hide details
  • What causes this issue?

    Underscores are not allowed at the end of a table name.
    The names of tables with underscores at the end could no longer be
    uniquely by a corresponding index.
    For the sake of consistency this restriction is also checked for
    structures and views.

    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?

    Use a name without an underscore at the end.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message DT117 - Name '&': Underscore not allowed at end ?

    The SAP error message DT117, which states "Name '&': Underscore not allowed at end," typically occurs when you are trying to define a name (such as a variable, field, or object) that ends with an underscore character (_). In SAP ABAP, certain naming conventions must be followed, and one of those rules is that names cannot end with an underscore.

    Cause:

    The error is triggered when:

    • You attempt to create or reference a name (like a variable, function, or table) that ends with an underscore.
    • The naming convention rules in SAP ABAP are violated.

    Solution:

    To resolve this error, you should:

    1. Identify the Name: Look at the error message to identify the specific name that is causing the issue (the & will be replaced with the actual name).
    2. Modify the Name: Change the name so that it does not end with an underscore. For example, if the name is my_variable_, you can rename it to my_variable or my_variable1.
    3. Check Other Instances: Ensure that there are no other instances in your code or definitions where names end with an underscore.

    Related Information:

    • Naming Conventions: Familiarize yourself with SAP ABAP naming conventions to avoid similar issues in the future. Generally, names should start with a letter and can include letters, numbers, and underscores, but they cannot start or end with an underscore.
    • SAP Documentation: Refer to the official SAP documentation for more details on naming conventions and best practices in ABAP programming.
    • Testing: After making the changes, re-run your program or transaction to ensure that the error is resolved.

    By following these steps, you should be able to fix the DT117 error and adhere to the naming conventions required by SAP ABAP.

    • 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