Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix TD338 - AFM file required for the printer font &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: TD - SAPscript: Text editor, composer, forms, styles and fonts

  • Message number: 338

  • Message text: AFM file required for the printer font &

  • Show details Hide details
  • What causes this issue?

    The specified printer font is incorrectly defined in the SAPscript font
    maintenance: There is no fontmetrics data (AFM file) for the
    proportional printer font.
    SAPscript uses run-time objects, the so-called SAPscript load which
    contains data about fonts, character sets, layout sets, and styles.
    These run-time objects (stored according to client) are automatically
    regenerated if the data base tables on which they are based have
    changed, or the run-time objects do not yet exist. The run-time objects
    are accessed when texts are formatted for output to the printer or
    screen.

    System Response

    The generation of font data for SAPscript had to be terminated.

    How to fix this error?

    In order to calculate the fontmetrics for proportional printer fonts,
    SAPscript requires fontmetrics data (AFM file). This is managed in the
    SAPscript font maintenance.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message TD338 - AFM file required for the printer font & ?

    The SAP error message TD338 indicates that a required AFM (Adobe Font Metrics) file is missing for a specific printer font. This error typically occurs when you are trying to print a document that uses a font for which the system cannot find the corresponding AFM file. The AFM file contains important information about the font metrics, such as character widths and spacing, which are necessary for proper printing.

    Cause:

    1. Missing AFM File: The AFM file for the specified printer font is not available in the SAP system.
    2. Incorrect Font Configuration: The font may not be correctly configured in the SAP system.
    3. Font Not Installed: The required font may not be installed on the printer or the SAP system.

    Solution:

    1. Check AFM File Availability:

      • Verify if the AFM file for the specified font exists in the SAP system. You can check the directory where the font files are stored (usually in the SAP kernel or a specific font directory).
    2. Install Missing AFM File:

      • If the AFM file is missing, you may need to obtain it from the font vendor or create it if you have the necessary font files. Place the AFM file in the appropriate directory.
    3. Configure Fonts in SAP:

      • Use transaction code SPAD (Spool Administration) to check the font configuration.
      • Ensure that the font is correctly defined in the SAP system and that the AFM file is linked to the font.
    4. Check Printer Configuration:

      • Ensure that the printer is correctly configured to use the specified font. You may need to check the printer settings in the SAP system and ensure that the printer can access the required font files.
    5. Use Alternative Fonts:

      • If the required font cannot be found or installed, consider using an alternative font that is available and properly configured in the system.
    6. Consult Documentation:

      • Refer to SAP documentation or support resources for additional guidance on font management and troubleshooting.

    Related Information:

    • Transaction Codes: SPAD (Spool Administration), SE78 (SAP ArchiveLink Administration), and SE11 (Data Dictionary) may be useful for managing fonts and checking configurations.
    • SAP Notes: Check SAP Notes related to font issues and AFM files for specific guidance and updates.
    • Font Installation: Ensure that the necessary fonts are installed on the operating system where the SAP application server is running, as well as on the printer itself.

    By following these steps, you should be able to resolve the TD338 error and ensure that the required AFM file is available for the specified printer font.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant