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: TD - SAPscript: Text editor, composer, forms, styles and fonts
Message number: 798
Message text: Text field contains invalid characters
You are trying to enter a prefix or a suffix and have enclosed your
entry in inverted commas in order to be able to display extra spaces
(blanks) following the entry. (Inverted commas that occur within a text
are not automatically doubled when displayed).
The symbol can only be included in your text once you have corrected
this error.
Normally, SAPscript encloses all text entries of this type in inverted
commas for you. Whenever it does this, however, no extra spaces
(blanks) can be displayed at the end of your text. If you want to
display blanks at the end of your text, you must insert inverted commas
preceding the text yourself. You must double all inverted commas that
you insert into the body of your text.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Examples using a prefix:Error message extract from SAP system. Copyright SAP SE.
TD798
- Text field contains invalid characters ?The SAP error message TD798, which states "Text field contains invalid characters," typically occurs when you are trying to enter or process text data that includes characters not allowed by the system. This can happen in various contexts, such as when entering data in a text field, uploading data, or processing documents.
Causes:
- Invalid Characters: The text field may contain special characters, control characters, or characters that are not supported by the SAP system or the specific field.
- Encoding Issues: If the text is being imported from an external source, there may be encoding mismatches (e.g., UTF-8 vs. ASCII).
- Field Length Exceeded: Sometimes, the error can also occur if the text exceeds the maximum length allowed for that field.
- Data Format: The data format may not comply with the expected format for that particular field.
Solutions:
- Check for Invalid Characters: Review the text input for any special or invalid characters. Remove or replace them with valid characters.
- Use Allowed Characters: Ensure that the text only contains characters that are allowed in the specific field. Refer to the SAP documentation for the list of valid characters.
- Encoding Verification: If the data is being imported, check the encoding of the source file. Ensure it matches the expected encoding for SAP.
- Field Length: Verify that the text does not exceed the maximum length allowed for the field. If it does, truncate the text or split it into multiple fields if applicable.
- Data Cleansing: If you are processing bulk data, consider using data cleansing tools or scripts to sanitize the input before it is processed by SAP.
- SAP Notes: Check for any relevant SAP Notes or updates that might address this issue, as there may be patches or recommendations from SAP.
Related Information:
By following these steps, you should be able to identify and resolve the cause of the TD798 error in SAP.
Get instant SAP help. Sign up for our Free Essentials Plan.
TD797
Exponent specification contains invalid characters
What causes this issue? You want to specify an exponent. However, you have used invalid characters.System Response The symbol is not transferred to ...
TD796
Decimal place specification contains invalid characters
What causes this issue? You want to specify the number of decimal places. However, you have used invalid characters.System Response The symbol is no...
TD799
Maximum output length &1 has been exceeded by symbol &&&2&&
What causes this issue? An output length of &V3& was defined for symbol &V2&: <(>&<)>&V2&(&V3&)<(&...
TD800
Control character & is not allowed in the control text
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.