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: SG - Global Pool for Cross-Application Developments
Message number: 002
Message text: Bracket ">" missing for bracket "<"
The pointed brackets "<" und ">" refer to reserved words that are
substituted at run time.
An opened bracket was found for which the closed bracket is missing.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Enter the missing bracket ">".
Error message extract from SAP system. Copyright SAP SE.
SG002
- Bracket ">" missing for bracket "<" ?The SAP error message SG002, which states "Bracket '>' missing for bracket '<'," typically occurs in the context of ABAP programming or when dealing with XML data. This error indicates that there is a mismatch in the use of angle brackets, which are commonly used in XML and HTML syntax.
Cause:
- XML/HTML Syntax Error: The error usually arises when there is an improperly formatted XML or HTML string. For example, if you have an opening tag
<tag>
without a corresponding closing tag</tag>
, or if you have nested tags that are not properly closed.- ABAP Code Issues: If you are using ABAP code to generate or manipulate XML data, the error may occur if the code does not correctly handle the opening and closing of tags.
- Data Input Issues: If the data being processed contains malformed XML or HTML, it can lead to this error.
Solution:
- Check XML/HTML Structure: Review the XML or HTML content that is being processed. Ensure that all opening tags have corresponding closing tags and that the structure is valid.
- Validate XML: Use an XML validator tool to check the syntax of your XML data. This can help identify where the mismatched brackets are located.
- Debug ABAP Code: If the error is occurring in ABAP code, debug the code to identify where the XML is being generated or manipulated. Ensure that all tags are properly opened and closed.
- Error Handling: Implement error handling in your ABAP code to catch and manage exceptions related to XML processing. This can help prevent the application from crashing and provide more informative error messages.
- Test with Sample Data: If possible, test your code with known good XML data to ensure that the logic is functioning correctly.
Related Information:
By following these steps, you should be able to identify and resolve the issue causing the SG002 error in your SAP environment.
Get instant SAP help. Sign up for our Free Essentials Plan.
SG001
File name & is unknown
What causes this issue? No entry was found in the conversion table for the logical file name &V1&.System Response The system issues an error...
SFW475
The associated business function set is not selected
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SG003
Bracket ">" missing for bracket "<"
What causes this issue? The pointed brackets "<" and ">" indicate reserved words that are substituted at run-time. A closed...
SG004
& is not a valid reserved word
What causes this issue? With the brackets "<" and ">" you have marked a character string that is not known as a reserved wo...
Click on this link to search all SAP messages.