How To Fix EU361 - Code lines longer than the current print format are broken


SAP Error Message - Details

  • Message type: E = Error

  • Message class: EU - Development Environment

  • Message number: 361

  • Message text: Code lines longer than the current print format are broken

  • Show details Hide details
  • What causes this issue?

    You attempted to print a source code whose maximum line width does not
    fit into the current print format.

    System Response

    Code lines which are longer than the print format are automatically
    broken.

    How to fix this error?

    If you want to avoid a line break, choose another print format using
    the printer settings.

    Procedure for System Administrators

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message EU361 - Code lines longer than the current print format are broken ?

    The SAP error message EU361, which states "Code lines longer than the current print format are broken," typically occurs when the length of a line of code or text exceeds the maximum allowed length for the current print format in SAP. This can happen in various contexts, such as when printing reports, forms, or other outputs.

    Cause:

    1. Line Length Exceeded: The primary cause of this error is that the line of code or text exceeds the maximum character limit defined by the print format settings.
    2. Print Format Settings: The print format may be set to a specific width (e.g., 132 characters), and if the output exceeds this width, it will trigger the error.
    3. Output Device Configuration: The configuration of the output device (like printers) may also impose restrictions on line length.

    Solution:

    1. Adjust Print Format:

      • Go to the print layout settings and increase the maximum line length if possible. This can often be done in the SAPscript or Smart Forms configuration.
      • For SAPscript, you can adjust the window settings in the form to accommodate longer lines.
      • For Smart Forms, check the text elements and adjust the width settings accordingly.
    2. Modify Output Device Settings:

      • Check the configuration of the output device in transaction SPAD. Ensure that the device type supports the required line length.
      • If necessary, create or modify an output device with a suitable configuration.
    3. Break Long Lines:

      • If increasing the line length is not feasible, consider modifying the code or text to break long lines into shorter segments. This can be done by inserting line breaks or adjusting the content to fit within the allowed length.
    4. Test Output:

      • After making changes, test the output to ensure that the error no longer occurs and that the output is formatted correctly.

    Related Information:

    • SAPscript and Smart Forms: These are tools used in SAP for designing print layouts. Understanding how to work with these tools can help in resolving formatting issues.
    • Transaction Codes:
      • SPAD: For managing output devices.
      • SE71: For SAPscript form maintenance.
      • SMARTFORMS: For Smart Forms maintenance.
    • Documentation: Refer to SAP Help documentation for detailed guidelines on configuring print formats and output devices.

    By following these steps, you should be able to resolve the EU361 error and ensure that your output is formatted correctly without exceeding line length limitations.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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