Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: ED - ABAP/4 Editor messages
Message number: 191
Message text: You cannot use lines beginning with '*{' or '*}' in modification mode
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.
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.
ED191
- You cannot use lines beginning with '*{' or '*}' in modification mode ?The SAP error message ED191, which states "You cannot use lines beginning with '{' or '}' in modification mode," typically occurs in the context of the SAP ABAP Editor or when working with certain types of code or scripts that involve modifications to existing code.
Cause:
This error arises when you attempt to modify a piece of code that contains lines starting with
*{
or*}
. These lines are often used in SAP to denote comments or special markers in the code, and the ABAP Editor does not allow modifications to these lines in modification mode. This restriction is in place to prevent accidental changes to important comment markers or code structure.Solution:
To resolve this error, you can take the following steps:
Switch to Display Mode: If you are in modification mode, switch to display mode to view the code without making changes. This will allow you to see the lines without triggering the error.
Remove or Comment Out the Lines: If you need to modify the code, consider removing or commenting out the lines that start with
*{
or*}
. However, be cautious with this approach, as these lines may serve a specific purpose in the code.Check for Syntax Errors: Ensure that there are no syntax errors in the code that might be causing the editor to misinterpret the lines.
Use Proper Code Structure: If you are writing new code, ensure that you are following the proper structure and syntax rules of ABAP. Avoid using
*{
or*}
unless you are certain of their purpose.Consult Documentation: If you are unsure about the purpose of these lines or how to handle them, consult the SAP documentation or seek assistance from a colleague or SAP expert.
Related Information:
*
for single-line comments or "
for inline comments. Understanding how to properly comment your code can help avoid issues.By following these steps, you should be able to resolve the ED191 error and continue working with your ABAP code effectively.
Get instant SAP help. Sign up for our Free Essentials Plan.
ED190
The selected line or block cannot be modified
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ED189
Place the cursor on the line you want to modify
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ED192
The selected block contains lines not allowed in modification mode
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ED193
Text 1
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.