ABAP Doc comment is in an incorrect position
Message type: E = Error
Message class: SABAP_DOC - ABAP Doc messages
Message number: 103
Message text: ABAP Doc comment is in an incorrect position
What causes this issue?
The ABAP-Doc-comment is located at the wrong position in the source
code.
An ABAP-Doc-comment-block is introduced by the character combination "!.
It has to be located directly in front of a declarative statement (e.g.,
data declaration, method definition, class definition).
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Example<EX>"! This is a documentation for the following constant</>
<EX>constants co_initial_value type i value 0.</>
You can use multiple lines for your documentation to document your
source code elements. In this case you have to add the character
combination "! in front of each line.
Example
<EX>"! This documentation for the following constant is documented</>
<EX>"! in multiple lines.</>
<EX>constants co_initial_value type i value 0.</>
System Response
Syntax check returns a warning.
How to fix this error?
Put the ABAP-Doc-comment at the right position in the source code.
If the comment is not an ABAP-Doc-comment, but a standard comment and
starts with the character combination "!, you can add a space between
the characters " and ! to declare this comment as standard comment.
Procedure for System Administrators
Error message extract from SAP system. Copyright SAP SE.