What is the use of MAIN WINDOW in SCRIPTS
what is the use of MAIN WINDOW in SCRIPTS, y we con't create a script w/o main window.
Title was edited by:
Alvaro Tejada Galindo
Hi
See this
What are the different types of windows in SAP Scripts?
Windows are defined in the Layout sets which define the position and the text to displayed.
The different types of windows are:
MAIN - Main Window
The main window is a continous window which can extend over several pages. If the text in the main window fills up a page, a new page is created.
Only one main window can be defined in the SAP Script whereas upto 100 instances of main window can be created in a page.
VAR - Variable Window
This window can have the variable contents displayed on them. The contents of the window cannot exceed the window size. The content can be formatted for each page.
CONST - Constant Window
The constant window can have a fixed content and is formatted only once.
Main Windows (MAIN)
Each form must have one window of type MAIN. Such a window is called the main window of the form. For SAPscript forms, the main window has a central meaning:
It controls the page break.
It contains the text body that may cover several pages.
It allows to fix text elements at the upper and lower margins of the allocated page window (for example, for column headings).
As soon as a window of type MAIN is full, SAPscript automatically triggers a page break and continues to output the remaining text in the main window of the subsequent page. Page windows of type MAIN have the same width throughout the form. The SAPscript composer thus avoids reformatting of the text after each page break.
Variable Windows (VAR)
The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
Constant Windows (CONST)
Starting with Release 4.0, the system internally processes windows of type CONST similar to windows of type VAR. Therefore, if you create a new window, always use type VAR.
<b><REMOVED BY MODERATOR></b>
Anji
Message was edited by:
Alvaro Tejada Galindo
Similar Messages
-
What is the use of NACE transaction in scripts?
hi
what is the use of NACE transaction in scripts?
byeNACE is the transaction code where you can maintain the output types for the applications...
<b>NACE</b> - Initial Customizing Screen
where your going to attach the layout which u have designed to the particular <b>output type</b> - Specifies the kind of output to be produced.
The output type can specify, for example, a printed form that you need for internal use or a form that you want to send to a customer or vendor (for example, an order confirmation). The output type can also be an internal electronic mail message that you want to send to staff in another department.
<b>print program -</b> If you want to inform a partner about changes to output that was already issued, you enter the name of a program and a routine in the Form routine field.
The routine in the program checks which changes should result in a changed output being sent.
regards -
What is the use of text elements in scripts
pls tell me what is text element?can we use this in any window or only in main window ?
pls explain briefly with some coading .and onbe more question what is the lement that is used in our abap editor<b><a href="http://help.sap.com/saphelp_47x200/helpdata/EN/images/locate.gif">Text Elements of a Form</a></b>
SAPscript calls the individual text components of a form text elements. To achieve good structuring and readability, you assign a fixed name to each text element in the form. The print program then uses these names to access the elements. This name applies also for translated versions of a text element, while the contents of the text elements depend on the language.
Text elements are related to a window, that is, a print program can call for each window only those text elements that exist in this window. They are used in main and other windows.
The variables used within '&...&' are replaced by the system at output time
/E <element name>
UL &fieldnam& text text
Named element are written when driver program use
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'BOOKING'
TYPE = 'BODY'
WINDOW = 'MAIN'
Unnamed element are written once in MAIN windows, and each time in other windos.
Regards -
What is the difference between Constant Window, Variable Window,Main Window
hello all
what is the difference between 1) Constant Window
2) Variable Window
3) Main Window in SAP SCRIPTHi,
Window Types
When defining a form window, you must select a window type for the window.
You can choose between three types:
Constant Windows (CONST)
Variable Windows (VAR)
Main Windows (MAIN)
Constant Windows (CONST)
Starting with Release 4.0, the system internally processes windows of type CONST similar to windows of type VAR.
Therefore, if you create a new window, always use type VAR.
Variable Windows (VAR)
The contents of variable windows is processed again for each page, on which the window appears.
The system outputs only as much text as fits into the window. Text exceeding the window size is truncated;
the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike.
The only difference is that constant windows have the same size throughout the form.
Main Windows (MAIN)
Each form must have one window of type MAIN. Such a window is called the main window of the form.
For SAPscript forms, the main window has a central meaning:
It controls the page break.
It contains the text body that may cover several pages.
It allows to fix text elements at the upper and lower margins of the allocated page window (for example, for column headings).
As soon as a window of type MAIN is full, SAPscript automatically triggers a page break and continues to
output the remaining text in the main window of the subsequent page. Page windows of type MAIN have the same width throughout the form.
The SAPscript composer thus avoids reformatting of the text after each page break.
If a page does not have a main window, the system implicitly processes all other windows of the page and continues with the subsequent page.
This page must not call itself as subsequent page (recursive call), since this would produce an endless loop.
In such a case, SAPscript terminates the output after three subsequent pages.
For printing header lines or totals, the different output areas of the main window are of special importance.
go through this links:
In Scripts Variable window and constant wind difference?
Main Window
Re: Main Window in SAP Script
What is the difference between Constant window and variable window?
Regards
Adil -
What exactly is the diff between main window and variable window
what exactly is the diff between main window and variable window in SAP script?
hi,
MAIN WINDOW :- In a main window you display text and data, which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break.
You can define only have one window in a form as main window.
The main window must have the same width on each page, but can differ in height.
A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
hope this will be useful.
If useful then reward points.
with regards,
Syed -
What is the use of passing String[] args in main() method?
what is the use of passing String[] args in main() method?
Is there any specific use for this ?actually my sir asked me the same question & I gave
the same reply as given by you........but he further
asked what is the use of this also??
ie accepting cmd line args at runtime??is there any
specific purpose ??Apart from the one you just mentioned? No -
What is the use of FOLDER NODE in SMARTFORMS?
what is the use of FOLDER NODE in SMARTFORMS?
please explain.Hi,
By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Reward all helpfull answers
Regards
Omkar -
What is the use of this form?
Hi all,
What is the use of this form in include RV61B901?
How does this code send any information to the program calling it? Is Sy-subrc global so that main program will know the reuslts?
Code:
FORM KOBED_901.
DATA : l_anzpk LIKE likp-anzpk.
SELECT SINGLE anzpk FROM likp
INTO l_anzpk
WHERE vbeln = komkbv2-vbeln.
IF l_anzpk NE 0.
sy-subrc = 4.
exit.
ENDIF.
sy-subrc = 0.
ENDFORM.
Thanks,
Charles.Hello,
This form sets the value of sy-subrc(which is global) based
on the value of l_anzpk.
Regards
Greg Kern -
How to use Two main windows with in a page in script ?
Hi any body explain me...
How to use Two main windows with in a page in script ?
with header data in one main window,
& Item data in other main window.HI..,
u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
Here is the procedure !!
-->Create a page window and assign it to a page.
Choose <b>Edit --> Main windows</b>.
A dialog box appears.
-->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
-->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
-->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
<b>
Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
In label printing, the field Upper margin also varies from main window to main window:
<b>
Upper margin of current main window + Window height + Vertical spacing = Upper margin of next main window</b>
-->Enter a value in the field Start position.
This is a counter. Enter a starting value which is equal to or greater than 1.
-->The main windows are added to the list.
-->Save your form.
reward if it helps u...
sai ramesh -
Footer of the Table in Main Window in Smartforms
Hi,
I have a smartform. In that I have declared a main window. And I want the Footer to appear on each page. So, I have checked both the check boxes in the Footer Event of the Table in Main Window.
1. At page Break
2. At end of table.
But it is comming only on the first and last page.
If I check only 1, it is printing on the first page only.
If I check only 2. it is printing on the last page only.
I want it to be printed on all the pages.
Help needed.
Thanks in advance.
Ishaq.Hi
Instead of using the Main window for footer
Why can't you declare a separate constant window separately apart from MAIN window and use for the footer to print in all pages.
create another window and write all your data in that and see
Since MAIN window overflows as the data grows constantly it is coming only on the first and last pages.
So to appear that on each page a fresh window is useful
Reward points for useful Answers
Regards
Anji -
What is the use of properites file
what is the use of properites file
Hi there
Usally a program has some variables that the user can set.
These variables are then saved in a file.
The Property class can read these files and search for special keys in that file for example
Lets say that the program that you have developed
can change its background color.
the user sets the color to pink
and the program stores the valu in the property file.
then the property file entry could look like this
color = pink
On windows systems this is verry much like the ini files if you are familiar with these. (I think allmost any OS has something similair)
In JDK 1.4 there is a new system for dealing with property files. This new class is storing the attributes directly to the register on the os
/Markus -
Need to print horizontal line at the end of main window in each page.
Hi,
I am printing a smartform with main window having 10 lines in footer. The problem I am facing is when the content extends upto two or more pages, I am not getting the horizontal line at the base of main window. For last page it is fine as it contains footer.
Please suggest how to proceed.
Thanks,
RKUHi,
If you don't have any frame set on your main window:
Go to output options and mark frames, and then go to details and uncheck checkboxes for above, laft and right, leving only below marked.
This will give you a line in the bottom of you main window.
If you dont' want to do this on the main window, can you create a new window placed at the bottom of the page and use this framing technic on that window. But in that case don't forget to mark the "always draw box and shading" checkbox. as this window contains no values, the will not get printed unless you mark this checkbox.
Regards
Åsa Thenstedt -
What is the use of transaction code VF24
what is the use of transaction code VF24. if possible please provide some documentation
Hi,
The main use of VF24 transaction code : edit work list for invoice list.
This enables the user to understand the processes left during the combine processing of invoices.
like which are left for releasing to accounts, which have still pending payment posting, with respect to the invoice list consisting of the combination of invoices.
invoice list is a combination of different invoices with same critierias. so to check and process these invoice lists collectively this function is used.
regards,
siddharth.
regards,
Siddharth. -
What is the use of version attribute in jnlp tag??
Hello,
I want to know what is the use of version attribute in jnlp tag.
For ex:
<jnlp spec="6.0+" codebase="$$codebase" href="$$name" version="1.1">
</jnlp>
In the spec it explains:
In the Jnlp tag:
version = The version of the application being launched, as well as the version of the JNLP file itself.
1. Is this version attribute would work as version attribute in jar tag. Ex: <jar href="application.jar" version="1.1"/> ?
i.e. can we specify different jnlp's with the same name as we do for jar's with the help of version.xml.
Any help is greatly appreciated.
//AnjaliHi Reddy,
If one Info Object depends on another info object we will make that dependent info object as a compounding attribute of main Info object.
Eg: Storage Location – Plant
In above eg there is no meaning of Storage Location without Plant. So, we will make storage location as compounding attribute of Plant.
Regards,
Sreehari. -
What is the use of Module tab in Communication Channel ?
Hi Expertes
can any body tell me the that
What is the use of Module tab in Communication Channel ?
How we can use in the senarios?
Mainly What are the Situvation we can use this tab ?
Thank you
G,Praveen Kumarhi rajesh
Thank You For Fast Responce
Error :
Exception caught by adapter framework: The following configuration errors were detected: - Either dataRec.fieldSeparator or dataRec.fieldLengths must be specified.
Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: The following configuration errors were detected: - Either dataRec.fieldSeparator or dataRec.fieldLengths must be specified : com.sap.aii.af.service.util.configuration.ConfigurationExceptionSet: The following configuration errors were detected: - Either dataRec.fieldSeparator or dataRec.fieldLengths must be specified.
Can you Help me torectifiy the error .
Maybe you are looking for
-
Inserting a page BETWEEN all even (or odd) pages in the doc
Hello, I am working on a post card. The mail merge has already been completed and master "A"'s have been applied to these pages (we'll call this the back side/page). The other side of the postcard has been completed and resides on master "B". (we'll
-
Squidoo not saving on ONE Mac only
Hello, I've started a couple of lens's on Squidoo.com. The problem is that I cannot edit and save my lens on my primary computer - an eMac running OS X 10.4.9 - using Safari, Firefox, Shirra or any other browser. However, I can edit and save it on my
-
Problems with Ant when using JDK1.4
Hi, I am currently trying to convince JDeveloper (9.0.3.10.35) to use jdk1.4 for building and executing my project. Now, using the IDE for building and execution everything seems to work fine after switching to the new J2SE Version in the project set
-
I just purchased Lightroom 5 back on 15th of February, and v6 is now available. Do I understand correctly that I have to buy the new version for $149.00? Free updates are not available/included with the purchase for some time after the purchase?
-
Hi there I recently received a Macbook Pro as a gift .Im not too great with computers but I'm planning to attend workshops. A frend recommended I pick up the book at Costco about the Pro .It gives advice on shortcuts and how to do almost anything on