How To Fix RSWADMDERR2058 - Unterminated Comment in '&1'?


SAP Error Message - Details

  • Message type: E = Error

  • Message class: RSWADMDERR2 - BEx Web applications: Error messages for XML/HTML-Parsing

  • Message number: 058

  • Message text: Unterminated Comment in '&1'?

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message RSWADMDERR2058 - Unterminated Comment in '&1'? ?

    The SAP error message RSWADMDERR2058, which indicates "Unterminated Comment in '&1'", typically occurs during the execution of ABAP programs or when processing certain data in the SAP system. This error suggests that there is a comment in the code or data that has not been properly closed, leading to a syntax error.

    Cause:

    1. Unterminated Comment: The most common cause is that a comment block in the ABAP code is not properly closed. In ABAP, comments can be single-line (using " or *) or multi-line (using /* ... */). If a multi-line comment is opened but not closed, this error will occur.
    2. Data Issues: If the error arises during data processing, it may indicate that a string or text field contains an unclosed comment-like structure.

    Solution:

    1. Check ABAP Code:

      • Review the ABAP code where the error is reported. Look for any multi-line comments that are opened with /* but not closed with */.
      • Ensure that all comments are properly formatted and closed.
    2. Debugging:

      • If the error is not immediately apparent, use the debugger to step through the code and identify where the error occurs.
      • Check the specific line or section of code indicated by the error message (the &1 placeholder will be replaced with the relevant code or data).
    3. Data Validation:

      • If the error occurs during data processing, validate the input data for any unclosed comment-like structures.
      • Ensure that any text fields do not contain characters that could be misinterpreted as comments.
    4. Syntax Check:

      • Perform a syntax check on the ABAP program to identify any other potential issues that may not be directly related to comments but could cause similar errors.

    Related Information:

    • ABAP Documentation: Refer to the official SAP documentation for ABAP programming to understand the correct usage of comments and syntax rules.
    • SAP Notes: Check the SAP Support Portal for any relevant SAP Notes that may address this specific error or provide additional context.
    • Community Forums: Engage with the SAP community forums or Stack Overflow for insights from other developers who may have encountered similar issues.

    By following these steps, you should be able to identify and resolve the cause of the RSWADMDERR2058 error in your SAP environment.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:
  • RSWADMDERR2057 Unexpected in <&2>
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • RSWADMDERR2056 Tag unexpected
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • RSWADMDERR2059 Tag '&1' proprietary attribute value '&2'
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • RSWADMDERR2100 Warning
    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.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker