SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow

Window MAIN does not fit onto page PAGE (height)

Call transaction code smartforms in order to open SAP Smartforms editor.
Click on Form Attributes node under Global Settings section of related SAP Smartform output.
On the right, switch to Output Options tab.
There you will see Page Format option.

SAP Smart Form Page Format

If you display available formats for Smartform output page format, a list of defined page formats with width and height values will be displayed.

page formats for SAP Smartform output

Although I changed the page format to a larger page layout both in width and height, I got a the below error messages list when I tried to activate the Smartform itself.
It was an interesting error message "Window MAIN does not fit onto page PAGE (height)" because I choose a page layout format which is bigger in width and height.
I increased page width from 293 mm to 297 mm. I also increased page height from 203 mm to 210 mm.

Window MAIN does not fit onto page PAGE (height)

I played around with position of the windows on pages but I got continuing error messages.

At last I found the cause of the error.
Drill through pages under Pages and Windows form section.
Click on the page "Page" you get error messages about. Switch to Output Options tab on the right screen.
There is Print Attributes section where you can select Portrait Format or Landscape Format. Since the invoice output layout is landscape, I tried to choose it since portrait format was selected. When I choose landscape format, the below error message "PAGE FORMAT landscape format not possible"

PAGE FORMAT landscape format not possible

"PAGE FORMAT landscape format not possible" message lead me to the solution of "Window MAIN does not fit onto page PAGE (height)" error messages on SAP Smartform.
Although the width and height information was defined, the portrait format was not defined for the related Page Format that I selected.



SAP HANA and ABAP

Install SAP Free
CRM Companies List
Web Based CRM Software


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.