Message type: E = Error
Message class: SABAP_DOC - ABAP Doc messages
Message number: 106
Message text: ABAP Doc comments behind statements are not allowed
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.
ExampleSyntax check returns a warning.
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.
Error message extract from SAP system. Copyright SAP SE.
SABAP_DOC106
- ABAP Doc comments behind statements are not allowed ?The SAP error message SABAP_DOC106 indicates that there are ABAP documentation comments (using the * syntax) placed directly behind ABAP statements, which is not allowed in the ABAP programming language. This error typically occurs when you try to document your code in a way that is not compliant with the ABAP syntax rules.
Cause: In ABAP, documentation comments must be placed on their own line or must be formatted correctly. The error occurs when you attempt to place a comment directly after a statement on the same line, which is not permitted for documentation comments. Example of the Error: DATA: lv_value TYPE i. " This is a regular comment lv_value = 10. " This is a documentation comment and will cause SABAP_DOC106
Solution: To resolve this error, you need to ensure that your documentation comments are placed correctly. Here are the steps to fix it: Move the Documentation Comment: Place the documentation comment on a separate line before
Get instant SAP help. Sign up for our Free Essentials Plan.
SABAP_DOC105
Wrong position for ABAP Doc comment in a chained statement
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 char...
SABAP_DOC104
ABAP Doc comments must contain documentation
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SABAP_DOC107
'{@' is a reserved string in ABAP Doc
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SABAP_DOC108
Tag '&1' is not expected, because it has not been opened
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.