How To Fix D0704 - Standards violation: Name contains at least one hyphen


D0704 - Overview

  • Message type: E = Error

  • Message class: D0 - Machine-level ABAP/4 Dictionary texts (e.g. debugging)

  • Message number: 704

  • Message text: Standards violation: Name contains at least one hyphen

  • Show details Hide details
  • What causes this issue?

    The object name may not contain any hyphens according to the naming
    convention.

    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?

    Remove the hyphen from the object name. If the hyphen was used on
    purpose to improve readability of the name, replace it with
    an underscore.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message D0704 - Standards violation: Name contains at least one hyphen ?
    The SAP error message D0704, which states "Standards violation: Name contains at least one hyphen," typically occurs when you are trying to create or modify an object (like a variable, function, or class) in ABAP (Advanced Business Application Programming) that includes a hyphen (-) in its name. In ABAP, certain naming conventions are enforced, and the use of hyphens is not allowed in object names.
    
    Cause: The primary cause of this error is the inclusion of a hyphen in the name of an object you are trying to create or modify. This is against the naming conventions defined by SAP for ABAP programming.
    Solution: To resolve this error, you should rename the object to remove any hyphens. Here are some steps you can follow: Identify the Object: Determine which object is causing the error. This could be a variable, function, class, or any other entity in your ABAP code. Rename the Object: Change the name of

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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