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

Close

How To Fix QG158 - Impermissible page format


SAP Error Message - Details

  • Message type: E = Error

  • Message class: QG - QM: Evaluation of inspection results

  • Message number: 158

  • Message text: Impermissible page format

  • Show details Hide details
  • What causes this issue?

    In a spool job defined by the function modules OPEN_FORM and CLOSE_FORM,
    only layout sets with identical page formats may be used.
    The new layout set has a page format that differs from the previous
    layout sets used in this spool job.

    System Response

    This causes the program to terminate.

    How to fix this error?

    The problem can only be rectified by a program change.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message QG158 - Impermissible page format ?

    The SAP error message QG158, which states "Impermissible page format," typically occurs in the context of SAPscript or Smart Forms when there is an issue with the page format settings in the form or layout. This error can arise due to various reasons, such as incorrect page size settings, incompatible printer settings, or issues with the form design.

    Causes:

    1. Incorrect Page Size: The page size defined in the SAPscript or Smart Form does not match the printer's capabilities or the specified output format.
    2. Incompatible Printer Settings: The printer settings may not support the specified page format (e.g., A4, Letter, etc.).
    3. Form Design Issues: There may be design elements in the form that are not compatible with the defined page format.
    4. Output Device Configuration: The output device configuration in SAP may not be set up correctly to handle the specified page format.

    Solutions:

    1. Check Page Format Settings:

      • Go to the Smart Form or SAPscript and verify the page format settings. Ensure that the page size is correctly defined (e.g., A4, Letter) and matches the intended output.
    2. Review Printer Settings:

      • Check the printer settings in SAP (transaction SPAD) to ensure that the printer supports the specified page format. You may need to adjust the printer configuration or select a different printer that supports the required format.
    3. Adjust Output Device Configuration:

      • Ensure that the output device configuration is set up correctly. You can do this by checking the device type and ensuring it is compatible with the page format you are using.
    4. Test with Different Formats:

      • If possible, try changing the page format in the Smart Form or SAPscript to a different, commonly supported format to see if the error persists.
    5. Check for Design Issues:

      • Review the design of the form for any elements that may be causing the issue. Ensure that all elements fit within the defined page size and do not exceed the margins.
    6. Consult Documentation:

      • Refer to SAP documentation or help resources for specific guidance on page formats and printer settings.

    Related Information:

    • Transaction Codes:

      • SMARTFORMS: To create or modify Smart Forms.
      • SE71: To create or modify SAPscript forms.
      • SPAD: To manage output devices and printer settings.
    • SAP Notes: Check for any relevant SAP Notes that may address specific issues related to the QG158 error message.

    • Testing: After making changes, always test the output to ensure that the error has been resolved and that the form prints correctly.

    By following these steps, you should be able to identify and resolve the cause of the QG158 error message in SAP.

    • 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:
  • QG157 The printout has been successfully completed
    What causes this issue? The printout of the inspection results has been successfully completed. Lots were found for all selection criteria.System Res...

  • QG156 The layout set printout is not open
    What causes this issue? The current layout set function could not be carried out, since the layout set output has nit yet been initialized in the fun...

  • QG159 No form opened yet
    What causes this issue? When calling up one of the parameters FORM or LANGUAGE only blanks were transferred. A layout set has yet to be selected, who...

  • QG160 Text element does not exist
    What causes this issue? The text element entered in the ELEMENT parameter does not exist in the current layout set window. Possible causes: The eleme...

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