How To Fix TD798 - Text field contains invalid characters


TD798 - Overview

  • 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

  • Show details Hide details
  • What causes this issue?

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

    System Response

    The symbol can only be included in your text once you have corrected
    this error.

    How to fix 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:
    ,,Your entry,,,,Result
    ,,abcde,,,,,,&'abcde'...
    ,,'abcde,,,,,,&'''abcde'...
    ,,'abcde ',,,,&'abcde '...
    ,,'abc''de ',,,,&'abc''de '...
    ,,'abc'de ',,,,-> error message

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 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

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