How To Fix FUNC_ADT028 - Parameter comment blocks are not allowed


SAP Error Message - Details

  • Message type: E = Error

  • Message class: FUNC_ADT -

  • Message number: 028

  • Message text: Parameter comment blocks are not allowed

  • Show details Hide details
  • What causes this issue?

    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
    *"----------------------------------------------------------------------
    </>

    System Response

    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.

    How to fix this error?

    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.</>

    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 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

    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