SAP Scripts Creating a Window SAP Scripts

How to create a window in SAP scripts?

If you want to create a window on the page after creating pages. As we discussed in previous chapters a single page can have multiple windows. To create a window, you have to click the Windows tab.

Then run the Transaction SE71 and go to Windows push button.
It will show a screen list of windows in a page in the next window.
Here each and every form has one window of type MAIN and it is called as the main window of the form. For SAPscript forms, the main window has the following functions −
  • You use it to control the page break.
  • It contains the text body that can be used for multiple pages.
  • It allows to fix text elements at the upper and lower margins of the allocated page window.
  • The text in the main window can extend over several pages. If the text fills one page, the output continues in the window of the next and subsequent pages. You can create max 99 MAIN window 00-98.
Step 1 − To create a new window, click the Edit option in menu bar → Click on create Element.
It will generate a popup.
Step 2 – Now enter the name of window and short description, the press enter. Click the tick mark to create the Window.
Step 3 − Then click on Page Windows button to place the Window. You will be prompted to know where you want to place that window in the page.
Step 4 – Now, click the Edit option on the menu bar, Edit → Create Element.
If you want to create a new window from the page layout. If you can’t see a Layout option in SE71 Transaction, you have to enable form painter. To enable form painter, go to Settings → Form Painter.
You have to select Graphical Form Painter checkbox option.
Step 5 – After selecting the Graphical Form Painter, the Layout option will be available under Transaction SE71. Then click the Layout to open.
Using Layout, it gives a GUI editor which makes it easier to drag the window position.
By default, you can see the Main Window in the Layout.
Step 6 − To create a new window, you can right-click on Layout → Create Window.
Step 7 − In the next screen, you have to enter the name of the Window.
  • Enter Meaning
  • Left Margin
  • Right Margin
  • step7
Step 8 − To save this window, select the save option. A New window is created with the name Window1.
To see the Text linked with Page window, go to Text element option at the top.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

SAP Scripts Topics