How To Fix SABAP_DOC114 - Incorrect syntax for ABAP Doc command '&1 &2'


SABAP_DOC114 - Overview

  • Message type: E = Error

  • Message class: SABAP_DOC - ABAP Doc messages

  • Message number: 114

  • Message text: Incorrect syntax for ABAP Doc command '&1 &2'

  • Show details Hide details
  • What causes this issue?

    A wrong syntax is used for an ABAP-Doc-command to document a parameter
    or exception.
    For methods, events, function modules and form routines you can also
    document parameters and exceptions. The following syntax is used to
    document parameters and exceptions:
    Parameters
    <EX>@parameter <parameter name> | <parameter documentation></>
    Class-based exceptions ,,
    <EX>@raising <exception name> | <exception documentation></>
    Classic exceptions ,,
    <EX>@exception <exception name> | <exception documentation></>
    Example
    <EX>"! This method compares two sources and returns whether they
    "! are identical.
    "!
    "! @parameter source1 | First source code text
    "! @parameter source2 | Second source code text
    "! @parameter ignore_case | X => text will be compared case
    insensitive
    "! @raising cx_invalid source | Is raised if an empty source code text
    is passed
    methods compare
    importing
    source1 type text
    source2 type text
    ignore_case type abap_bool
    returning
    value(result) type abap_bool
    raising
    cx_invalid_source.</>

    System Response

    Syntax check returns a warning.

    How to fix this error?

    Use the correct syntax for ABAP-Doc-commands like @parameter.

    Procedure for System Administrators

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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message SABAP_DOC114 - Incorrect syntax for ABAP Doc command '&1 &2' ?
    The SAP error message SABAP_DOC114 indicates that there is an issue with the syntax of an ABAP documentation command in your code. This error typically arises when the ABAP documentation commands (like * for comments, @ for documentation, etc.) are not used correctly.
    
    Cause: The error is caused by incorrect syntax in the ABAP documentation command. This could be due to: Missing or extra characters in the command. Incorrect placement of the command within the code. Using an unsupported or incorrect command.
    Solution: To resolve the SABAP_DOC114 error, you can follow these steps: Check the Syntax: Review the line of code where the error occurs. Ensure that the ABAP documentation commands are correctly formatted. For example: Ensure that comments start with * and are placed correctly. Ensure that documentation commands like @ are used properly. Refer to Documentation: Consult the ABAP documentation for the correct usage of documentation commands. You can find this in the SAP Help Portal or the ABAP

    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
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant