Do you have any question about this error?
Message type: E = Error
Message class: FUNC_ADT -
Message number: 028
Message text: Parameter comment blocks are not allowed
You tried to save a comment block that contains parameter declarations
in the source code of a function module.
Example:
<EX>*"------------------------------------------------------------------
----
*"*"Local interface:
*" IMPORTING
*" VALUE(TEXT) LIKE CHAR10
*"----------------------------------------------------------------------
</>
It is not allowed to save a function module containing a comment block
with parameter declarations. This coding might be created by copy and
paste and could lead to the deletion of the mentioned parameters.
Therefore, the changes to the function module are not saved.
Remove the comment block. If you declared parameters, ensure that they
are declared in the function statement. Save the function module, again.
Example:
<EX>FUNCTION MY_FUNCTION_MODULE
IMPORTING
VALUE(TEXT) TYPE CHAR10.</>
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.
FUNC_ADT028
- Parameter comment blocks are not allowed ?The SAP error message FUNC_ADT028: Parameter comment blocks are not allowed typically occurs in the context of ABAP development, particularly when using the ABAP Development Tools (ADT) in Eclipse or similar environments. This error indicates that there is an issue with the way comments are formatted in the parameter section of a function module or method.
Cause:
The error is caused by the presence of comment blocks (multi-line comments) in the parameter definition of a function module or method. In ABAP, comments should be placed outside of the parameter definitions, as the syntax does not allow for comments to be included directly within the parameter list.
Solution:
To resolve this error, you should:
Remove Comment Blocks: Ensure that any comments related to parameters are placed outside the parameter definition. Instead of using multi-line comments (e.g.,
/* comment */
), use single-line comments (" comment
) before the parameter definitions.Reformat the Code: If you have comments that need to explain the parameters, place them above the parameter section. For example:
" This parameter is used for input " It should contain the user ID IMPORTING VALUE(user_id) TYPE string
Check for Other Syntax Issues: Ensure that there are no other syntax errors in your function module or method that could be causing the issue.
Related Information:
By following these steps, you should be able to resolve the FUNC_ADT028 error and successfully define your function module or method parameters without issues.
Get instant SAP help. Start your 7-day free trial now.
FUNC_ADT027
Object type &1 is not supported
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FUNC_ADT026
The function module &1 is not locked, save not possible
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FUNC_ADT100
Serialization Error
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FUNC_ADT101
Error during the serialization of function module &1: &2
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.