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: QG - QM: Evaluation of inspection results
Message number: 158
Message text: Impermissible page format
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.
This causes the program to terminate.
The problem can only be rectified by a program change.
Error message extract from SAP system. Copyright SAP SE.
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:
- 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.
- Incompatible Printer Settings: The printer settings may not support the specified page format (e.g., A4, Letter, etc.).
- Form Design Issues: There may be design elements in the form that are not compatible with the defined page format.
- Output Device Configuration: The output device configuration in SAP may not be set up correctly to handle the specified page format.
Solutions:
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.
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.
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.
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.
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.
Consult Documentation:
- Refer to SAP documentation or help resources for specific guidance on page formats and printer settings.
Related Information:
Transaction Codes:
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.
Get instant SAP help. Sign up for our Free Essentials Plan.
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.