Do you have any question about this error?
Message type: E = Error
Message class: SABAP_DOC - ABAP Doc messages
Message number: 114
Message text: Incorrect syntax for ABAP Doc command '&1 &2'
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.</>
Syntax check returns a warning.
Use the correct syntax for ABAP-Doc-commands like @parameter.
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.
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:
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:
*
and are placed correctly.@
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 programming guidelines.
Correct Placement: Make sure that the documentation commands are placed in appropriate locations in your code. For instance, they should not be placed in the middle of a statement.
Use the ABAP Editor: Use the ABAP Editor (transaction SE38 or SE80) to check for syntax errors. The editor will often highlight syntax issues and provide suggestions for corrections.
Test the Changes: After making corrections, activate the program and test it to ensure that the error is resolved.
By following these steps, you should be able to identify and correct the syntax issue causing the SABAP_DOC114 error.
Get instant SAP help. Start your 7-day free trial now.
SABAP_DOC113
ABAP Doc command '&1' is not valid here
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SABAP_DOC112
Character '&1' must be escaped in ABAP Doc
What causes this issue? ABAP Doc has some reserved characters for its syntax. If you want to use these characters in your documentation you have to e...
SABAP_DOC115
Tag '&1' may not be nested in tag '&2'
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SABAP_DOC116
Tag '&1' is not allowed as top level tag
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.